From owner-freebsd-stable@FreeBSD.ORG Tue Oct 2 19:05:51 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8C29106566B; Tue, 2 Oct 2012 19:05:51 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id 859C58FC14; Tue, 2 Oct 2012 19:05:51 +0000 (UTC) Received: from [IPv6:::1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q92J5U1U074263; Tue, 2 Oct 2012 12:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1349204732; bh=RVdQfZHMCkOOwefQoXk9uBpwY4ZxFynmJgognYKOJ2E=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type: Date:Message-ID:Mime-Version:Content-Transfer-Encoding; b=F5PJ2Ca4UzW4A9TuoNgdVWyBCD6H6CfAJ+iycrjFIMpBPlm0TzNNoMo38eDnvYdCB DvnSB20WFK11aZWvV3m83SK3BdpsmEf/X/zWthLQKcixpBnDDOUJ6jPqraJuG96Za9 4MsXTj4hhkJW4lwrMyUKklVWgflSU11SWyJVarH0= From: Sean Bruno To: John Baldwin In-Reply-To: <201210010847.53984.jhb@freebsd.org> References: <1342197082.2664.4.camel@powernoodle.corp.yahoo.com> <1348768344.10543.7.camel@powernoodle.corp.yahoo.com> <1348779229.10543.11.camel@powernoodle.corp.yahoo.com> <201210010847.53984.jhb@freebsd.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 02 Oct 2012 12:05:30 -0700 Message-ID: <1349204730.4246.12.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 204731002 Cc: "freebsd-stable@freebsd.org" , Andriy Gapon Subject: Re: stable/9 panic Bad tailq NEXT(0xffffffff80e52660->tqh_last) != NULL X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "sbruno@freebsd.org" List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 19:05:51 -0000 On Mon, 2012-10-01 at 05:47 -0700, John Baldwin wrote: > Can you add extra printfs to see where exactly attach is failing? I > would > start with the attach routine in sys/dev/acpica/acpi_pcib_pci.c: > > hrm ... interesting side effects. After adding my printf's I don't hit the panic any more. :-) I changed the ret val of acpi_pcib_pci_attach() and put in some instrumentation in acpi_pcib_attach(). The key value is that acpi_DeviceIsPresent() appears to be returning FALSE in this case. patch used -->http://people.freebsd.org/~sbruno/acpi_pcib.txt Resulted in the following relevant output: pcib7: at device 28.0 on pci0 pcib7: domain 0 pcib7: secondary bus 7 pcib7: subordinate bus 7 pcib7: no prefetched decode pcib7: This device is not present pcib7: acpi_pcib_pci_attach: err_attach(6) device_attach: pcib7 attach returned 6 pcib7: irq 19 at device 28.7 on pci0 pcib0: allocated type 3 (0xde000000-0xdf7fffff) for rid 20 of pcib7 pcib0: allocated type 3 (0xd8000000-0xd8ffffff) for rid 24 of pcib7 pcib7: domain 0 pcib7: secondary bus 8 pcib7: subordinate bus 12 pcib7: memory decode 0xde000000-0xdf7fffff pcib7: prefetched decode 0xd8000000-0xd8ffffff pci8: on pcib7 pci8: domain=0, physical bus=8 found-> vendor=0x1912, dev=0x0013, revid=0x00 domain=0, bus=8, slot=0, func=0 class=06-04-00, hdrtype=0x01, mfdev=0 cmdreg=0x0007, statreg=0x0010, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x0b (2750 ns), maxlat=0x00 (0 ns) powerspec 3 supports D0 D3 current D0 MSI supports 1 message, 64 bit pcib8: at device 0.0 on pci8 pcib7: allocated memory range (0xde000000-0xdf7fffff) for rid 20 of pcib8 pcib7: allocated prefetch range (0xd8000000-0xd8ffffff) for rid 24 of pcib8 pcib8: domain 0 pcib8: secondary bus 9 pcib8: subordinate bus 12 pcib8: memory decode 0xde000000-0xdf7fffff pcib8: prefetched decode 0xd8000000-0xd8ffffff pci9: on pcib8 pci9: domain=0, physical bus=9