From owner-freebsd-current@FreeBSD.ORG Wed Sep 7 20:18:26 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2508106564A; Wed, 7 Sep 2011 20:18:26 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 885D38FC17; Wed, 7 Sep 2011 20:18:26 +0000 (UTC) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.4/8.14.4/NETPLEX) with ESMTP id p87KIPhb014684; Wed, 7 Sep 2011 16:18:25 -0400 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.2.6 (mail.netplex.net [204.213.176.10]); Wed, 07 Sep 2011 16:18:25 -0400 (EDT) Date: Wed, 7 Sep 2011 16:18:25 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: John Baldwin In-Reply-To: <201109061608.42887.jhb@freebsd.org> Message-ID: References: <201109061145.20459.jhb@freebsd.org> <201109061608.42887.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, Warner Losh Subject: Re: ath0 no longer attaches, cardbus problems? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 20:18:27 -0000 On Tue, 6 Sep 2011, John Baldwin wrote: > On Tuesday, September 06, 2011 3:34:58 pm Daniel Eischen wrote: >> On Tue, 6 Sep 2011, John Baldwin wrote: >>> >>> Looks like I had a typo in my original e-mail, try >>> "debug.acpi.disabled=hostres" >>> rather than "debug.acpi.disable=hostres". >> >> Ok, I'll try that. Setting debug.acpi.disabled=hostres in /boot/loader.conf did not help. I tried this with a recent kernel from HEAD. More info. I've found that kernels: March 31 - work, ath attaches and works April 1 - June 6: panic on cardbus attach June 7 - HEAD: work, but ath doesn't attach I found the commit that fixed the panic: Index: sys/dev/pci/pci.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/sys/dev/pci/pci.c,v retrieving revision 1.420 retrieving revision 1.421 diff -u -r1.420 -r1.421 --- sys/dev/pci/pci.c 3 May 2011 17:37:24 -0000 1.420 +++ sys/dev/pci/pci.c 6 Jun 2011 13:21:11 -0000 1.421 @@ -2576,6 +2576,17 @@ uint16_t cmd; struct resource *res; + /* + * The BAR may already exist if the device is a CardBus card + * whose CIS is stored in this BAR. + */ + pm = pci_find_bar(dev, reg); + if (pm != NULL) { + maprange = pci_maprange(pm->pm_value); + barlen = maprange == 64 ? 2 : 1; + return (barlen); + } + pci_read_bar(dev, reg, &map, &testval); if (PCI_BAR_MEM(map)) { type = SYS_RES_MEMORY; I applied this patch to the April 1st kernel (which previously paniced) and was able to boot the kernel. ath still does not attach. So the commit that broke my cardbus ath occurred on April 1. -- DE