From owner-cvs-all@FreeBSD.ORG Wed Nov 28 22:20:09 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C845116A41B; Wed, 28 Nov 2007 22:20:09 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C718A13C4DB; Wed, 28 Nov 2007 22:20:09 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lASMK9ur052030; Wed, 28 Nov 2007 22:20:09 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lASMK9GR052029; Wed, 28 Nov 2007 22:20:09 GMT (envelope-from jhb) Message-Id: <200711282220.lASMK9GR052029@repoman.freebsd.org> From: John Baldwin Date: Wed, 28 Nov 2007 22:20:08 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/amd64/include pci_cfgreg.h src/sys/amd64/pci pci_cfgreg.c src/sys/i386/pci pci_cfgreg.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2007 22:20:09 -0000 jhb 2007-11-28 22:20:08 UTC FreeBSD src repository Modified files: sys/amd64/include pci_cfgreg.h sys/amd64/pci pci_cfgreg.c sys/i386/pci pci_cfgreg.c Log: Adjust the code to probe for the PCI config mechanism to use. - On amd64, just assume type #1 is always used. PCI 2.0 mandated deprecated type #2 and required type #1 for all future bridges which was well before amd64 existed. - For i386, ignore whatever value was in 0xcf8 before testing for type #1 and instead rely on the other tests to determine if type #1 works. Some newer machines leave garbage in 0xcf8 during boot and as a result the kernel doesn't find PCI at all (which greatly confuses ACPI which expects PCI to exist when PCI busses are in the namespace). MFC after: 3 days Discussed with: scottl Revision Changes Path 1.14 +0 -5 src/sys/amd64/include/pci_cfgreg.h 1.110 +11 -167 src/sys/amd64/pci/pci_cfgreg.c 1.125 +25 -25 src/sys/i386/pci/pci_cfgreg.c