From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 12 18:40:16 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAF5D16A404 for ; Wed, 12 Apr 2006 18:40:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D32F43D49 for ; Wed, 12 Apr 2006 18:40:16 +0000 (GMT) (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 k3CIeFsR083119 for ; Wed, 12 Apr 2006 18:40:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3CIeFvn083118; Wed, 12 Apr 2006 18:40:15 GMT (envelope-from gnats) Resent-Date: Wed, 12 Apr 2006 18:40:15 GMT Resent-Message-Id: <200604121840.k3CIeFvn083118@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Brian McGovern Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0E9D16A401 for ; Wed, 12 Apr 2006 18:32:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC3E643D5C for ; Wed, 12 Apr 2006 18:32:56 +0000 (GMT) (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 k3CIWsri042803 for ; Wed, 12 Apr 2006 18:32:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k3CIWsFq042801; Wed, 12 Apr 2006 18:32:54 GMT (envelope-from nobody) Message-Id: <200604121832.k3CIWsFq042801@www.freebsd.org> Date: Wed, 12 Apr 2006 18:32:54 GMT From: Brian McGovern To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/95661: pci_pci still not correct for initializing cardbus on HP AMD laptop X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 18:40:16 -0000 >Number: 95661 >Category: kern >Synopsis: pci_pci still not correct for initializing cardbus on HP AMD laptop >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 12 18:40:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Brian McGovern >Release: 6.1-RC1 >Organization: >Environment: FreeBSD bmcgover-hp-laptop 6.1-RC1 FreeBSD 6.1-RC1 #1: Wed Apr 12 14:27:07 EDT 2006 root@bmcgover-hp-laptop:/usr/src/sys/i386/compile/LAPTOP i386 >Description: The BIOS on the system sets the wrong subordinate bus number (see patch). This causes cardbus cards not to be detected/attached properly on boot, or when inserted. >How-To-Repeat: Boot 6.1-RC1 kernel, insert cardbus card (e.g. Netgear WG511T) >Fix: Jung-uk Kim sent me the following patch based on 6.0-RELEASE that fixes the problem. It also appears to apply cleanly to 6.1-RC1. Index: pci_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/pci/pci_pci.c,v retrieving revision 1.37 diff -u -r1.37 pci_pci.c --- pci_pci.c 29 Apr 2005 06:22:41 -0000 1.37 +++ pci_pci.c 11 Oct 2005 01:58:00 -0000 @@ -186,6 +186,14 @@ case 0x060513d7: /* Toshiba ???? */ sc->flags |= PCIB_SUBTRACTIVE; break; + + /* Compaq R3000 BIOS sets wrong subordinate bus number. */ + case 0x00dd10de: + if (sc->subbus < 0xa) { + pci_write_config(dev, PCIR_SUBBUS_1, 0xa, 1); + sc->subbus = pci_read_config(dev, PCIR_SUBBUS_1, 1); + } + break; } /* >Release-Note: >Audit-Trail: >Unformatted: