summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-11-21 16:10:56 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-11-21 16:10:56 +0100
commitc5d08a602c35ac24b7c7ccfe5b53c8dfa12ef94e (patch)
tree37ddafcbad117db4295ffd5d8e2bd0a6382bfc20
parent1376d39ef1194c76e97035a1af110a59e4ad8257 (diff)
downloadplan9front-c5d08a602c35ac24b7c7ccfe5b53c8dfa12ef94e.tar.xz
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.
-rw-r--r--sys/src/9/pc/pcipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/pcipc.c b/sys/src/9/pc/pcipc.c
index 364fa81d2..412862b32 100644
--- a/sys/src/9/pc/pcipc.c
+++ b/sys/src/9/pc/pcipc.c
@@ -716,6 +716,8 @@ pcicfginit(void)
if(pciroot == nil)
goto out;
+ pcireset();
+
if(nobios) {
uvlong mema;
ulong ioa;