git: 9front

Download patch

ref: 1eb167ba1e2c2636640c765620b4a0e30d624a24
parent: 7428866c9ecf5f9113a0046d55fd204e79f6937f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Nov 21 11:10:56 EST 2020

pc, pc64: disable all pci devices in pcicfginit()

Make sure all pci busmaster activity is disabled,
including MSI/MSI-X interrupts. Drivers will later
reenable once taking control of a device.

--- a/sys/src/9/pc/pcipc.c
+++ b/sys/src/9/pc/pcipc.c
@@ -716,6 +716,8 @@
 	if(pciroot == nil)
 		goto out;
 
+	pcireset();
+
 	if(nobios) {
 		uvlong mema;
 		ulong ioa;
--