shithub: riscv

Download patch

ref: 10237a22f189d304668283fb82870b36144d4d1b
parent: c207b78d079803605d8aec2fe63a059fc4bdb2c6
parent: 069d27ba1d95fa2cf08cf483f8e03cbff1bb59ae
author: cinap_lenrek <[email protected]>
date: Sun Jan 10 15:46:07 EST 2021

merge

--- a/sys/src/9/pc/pcipc.c
+++ b/sys/src/9/pc/pcipc.c
@@ -716,7 +716,15 @@
 	if(pciroot == nil)
 		goto out;
 
-	pcireset();
+	/*
+	 * Disabling devices here (by clearing bus master enable)
+	 * causes problems with with some OHCI USB controllers.
+	 * I supected that this is due to legacy device emulation
+	 * and revoking bus master flag before executing the handoff
+	 * makes BIOS/SMM lock up the system.
+	 *
+	 * pcireset();
+	 */
 
 	if(nobios) {
 		uvlong mema;