From owner-freebsd-i386@FreeBSD.ORG Thu May 31 03:50:04 2007 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF0DA16A48F for ; Thu, 31 May 2007 03:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id CC1F813C468 for ; Thu, 31 May 2007 03:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4V3o4oD077835 for ; Thu, 31 May 2007 03:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4V3o4tl077834; Thu, 31 May 2007 03:50:04 GMT (envelope-from gnats) Resent-Date: Thu, 31 May 2007 03:50:04 GMT Resent-Message-Id: <200705310350.l4V3o4tl077834@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arthur Hartwig Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6ABBD16A400 for ; Thu, 31 May 2007 03:46:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 5AC2F13C45B for ; Thu, 31 May 2007 03:46:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4V3kxjm017720 for ; Thu, 31 May 2007 03:46:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4V3kxW9017719; Thu, 31 May 2007 03:46:59 GMT (envelope-from nobody) Message-Id: <200705310346.l4V3kxW9017719@www.freebsd.org> Date: Thu, 31 May 2007 03:46:59 GMT From: Arthur Hartwig To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: i386/113177: Extended PCI Configuration register (>= 0x100) not enabled X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2007 03:50:05 -0000 >Number: 113177 >Category: i386 >Synopsis: Extended PCI Configuration register (>= 0x100) not enabled >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 31 03:50:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Arthur Hartwig >Release: 6.1 >Organization: Nokia >Environment: >Description: The Intel 5000P Chipset is not recognised in pci_cfgregopen() in sys/i386/pci/pci_cfgreg.c as one supporting memory mapped access to PCI device configuration registers hence error registers with offset > 256 in the MCH can not be accessed. This would also be true of FreeBSD CURRENT. >How-To-Repeat: >Fix: Suggested fix, change the last part of pci_cfgregopen() in sys/i386/pci/pci_cfgreg.c to read: vid = pci_cfgregread(0, 0, 0, PCIR_VENDOR, 2); did = pci_cfgregread(0, 0, 0, PCIR_DEVICE, 2); if (vid == 0x8086) { switch (did) { case 0x3590: case 0x3592: /* Intel 7520 or 7320 */ pciebar = pci_cfgregread(0, 0, 0, 0xce, 2) << 16; pciereg_cfgopen(); break; case 0x2580: case 0x2584: /* Intel 915 or 925 */ pciebar = pci_cfgregread(0, 0, 0, 0x48, 4); pciereg_cfgopen(); break; case 0x25d8: /* Intel 5000P */ case 0x25d0: case 0x25d4: /* Intel 5000P or 5000Z or 5000V */ pciebar = pci_cfgregread(0, 16, 0, 0x64, 4); #ifndef PAE if (pciebar >= 0x10000) { printf("%s: Memory mapped PCI configuration " "area base 0x%08x too high\n", __FUNCTION__, pciebar ); pciebar = 0; break; } #endif pciebar = pciebar << 16; pciereg_cfgopen(); break; } } return(1); } Notes: The 5000 series chipset datasheet says the did of the 5000P is 0x25c8 but the actual device in my system has a did of 0x25d8 hence I've used 0x25d8. I don't have access to systems with 5000Z or 5000V chipsets so I have used the values in the datasheet for them. I suspect there are a bunch of other Intel chipset that should also be recognised: 954, 955, 965 and 965 and variants. Probably something similar (without the #ifndef PAE) needs to go into the amd64 branch. >Release-Note: >Audit-Trail: >Unformatted: