Re: ath0 no longer attaches, cardbus problems?

看板FB_current作者時間14年前 (2011/09/08 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串21/32 (看更多)
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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1EPzJ2-8 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1EPzJ2-8 (FB_current)