From owner-cvs-all@FreeBSD.ORG Wed Sep 10 20:13:28 2008 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 2C8571065677; Wed, 10 Sep 2008 20:13:28 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id BBBFA8FC21; Wed, 10 Sep 2008 20:13:27 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m8AKDFEn022214; Wed, 10 Sep 2008 16:13:21 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: src-committers@FreeBSD.org Date: Wed, 10 Sep 2008 15:39:03 -0400 User-Agent: KMail/1.9.7 References: <200809101806.m8AI6KOH097091@repoman.freebsd.org> In-Reply-To: <200809101806.m8AI6KOH097091@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809101539.03832.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Wed, 10 Sep 2008 16:13:22 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8211/Wed Sep 10 15:01:28 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: 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, 10 Sep 2008 20:13:28 -0000 On Wednesday 10 September 2008 02:06:08 pm John Baldwin wrote: > jhb 2008-09-10 18:06:08 UTC > > FreeBSD src repository > > Modified files: > sys/amd64/pci pci_cfgreg.c > sys/i386/pci pci_cfgreg.c > Log: > SVN rev 182910 on 2008-09-10 18:06:08Z by jhb > > Some K8 chipsets don't expose all of the PCI devices on bus 0 via PCIe > memory-mapped config access. Add a workaround for these systems by > checking the first function of each slot on bus 0 using both the > memory-mapped config access and the older type 1 I/O port config access. > If we find a slot that is only visible via the type 1 I/O port config > access, we flag that slot. Future PCI config transactions to flagged > slots on bus 0 use type 1 I/O port config access rather than memory mapped > config access. Linux has a similar hack^Wworkaround. -- John Baldwin