shithub: riscv

Download patch

ref: 50cf738d694a95eede504470676534309e641727
parent: 05825fd78e8649efa1137e442a6305db5eb4755f
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Tue Jan 29 13:24:48 EST 2013

acpi: remove "cannot get pci bus number for ..." debug prints

on almost all machines, we get tons of these prints for pci busses that
are not physically there but are described in the ACPI namespace. the
reason that we enumerate these is because we do not enumerate _INI and _STA
methods to check if they are present. we just match the information with
the PCI devices we enumerated with our generic pci code. this works fine and
doesnt require aml code to poke arround in pci config space.

--- a/sys/src/9/pc/archacpi.c
+++ b/sys/src/9/pc/archacpi.c
@@ -284,10 +284,8 @@
 		return -1;
 	tbdf = MKBUS(BusPCI, bno, adr>>16, adr&0xFFFF);
 	pdev = pcimatchtbdf(tbdf);
-	if(pdev == nil || pdev->bridge == nil){
-		print("pcibusno: bridge tbdf %luX not found\n", (ulong)tbdf);
+	if(pdev == nil || pdev->bridge == nil)
 		return -1;
-	}
 	return BUSBNO(pdev->bridge->tbdf);
 }
 
@@ -299,10 +297,8 @@
 	int n, i;
 
 	bno = pcibusno(dot);
-	if(bno < 0){
-		print("enumprt: cannot get pci bus number for %V\n", dot);
+	if(bno < 0)
 		return 1;
-	}
 
 	/* evalulate _PRT method */
 	p = nil;
--