From owner-freebsd-stable@FreeBSD.ORG Mon Jun 18 14:28:30 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA8D2106566C for ; Mon, 18 Jun 2012 14:28:30 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id BFD238FC12 for ; Mon, 18 Jun 2012 14:28:30 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id EF2E4B9A0; Mon, 18 Jun 2012 10:28:29 -0400 (EDT) From: John Baldwin To: Andrey Zonov Date: Mon, 18 Jun 2012 10:26:20 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <4FD0ECB7.8040908@zonov.org> <201206151324.58103.jhb@freebsd.org> <4FDC5BA7.4040702@zonov.org> In-Reply-To: <4FDC5BA7.4040702@zonov.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201206181026.20857.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 18 Jun 2012 10:28:30 -0400 (EDT) Cc: freebsd-stable , Marius Strobl Subject: Re: mpt: Unable to memory map registers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2012 14:28:31 -0000 On Saturday, June 16, 2012 6:10:47 am Andrey Zonov wrote: > On 6/15/12 9:24 PM, John Baldwin wrote: > > On Friday, June 15, 2012 2:12:06 am Andrey Zonov wrote: > >> On 6/13/12 7:10 PM, John Baldwin wrote: > >>> On Tuesday, June 12, 2012 5:57:34 pm Andrey Zonov wrote: > >>>> On 6/13/12 12:51 AM, John Baldwin wrote: > >>>>> On Tuesday, June 12, 2012 3:53:09 pm Andrey Zonov wrote: > >>>>>> On 6/12/12 10:06 PM, John Baldwin wrote: > >>>>>>> > >>>>>> [snip] > >>>>>>> Ok, I've added some more debugging. The patch is a bit larger now and > > you > >>>>> can > >>>>>>> fetch it from www.freebsd.org/~jhb/patches/pcib_debug.patch > >>>>>>> > >>>>>> > >>>>>> New dmesg is in attach. > >>>>> > >>>>> Sheesh, found another bug (wasn't masking 'front' properly). > >>>>> > >>>>> Try updated patch (same URL). > >>>>> > >>>> > >>>> Great! It works! > >>> > >>> Excellent. I've committed the 2 bugs needed to fix your box. However, > >>> there is another bug that this exposed that I'd like you to test. Can you > >>> update to the latest HEAD, apply the updated pcib_debug.patch, and boot > >>> with 'hw.pci.pcib_clear=1' set from the loader? That should exercise the > >>> bug I'm worried about and see if my fixes for that (recursively growing > >>> windows) works correctly. > >>> > >> > >> Attached. > > > > Hmm, it doesn't seem like hw.pci.pcib_clear was set (the pcibX devices still > > tried to allocate their initial windows). > > > > Ooops. Thanks. Unfortunately, this didn't actually exercise what I wanted, but that is ok. However, this did uncover another bug it seems: pcib7: at device 0.3 on pci5 pci6: on pcib7 pci6: domain=0, physical bus=6 found-> vendor=0x1000, dev=0x0054, revid=0x02 pcib3: attempting to grow I/O port window for (0xd000-0xdfff,0x1000) front candidate range: 0xd000-0xdfff pcib3: bus_adjust_resource(0xc000, 0xefff) pci0: bus_adjust_resource(pcib3, 0x1c, 0xc000, 0xefff) pcib0: bus_adjust_resource(pcib3, 0x1c, 0xc000, 0xefff) acpi0: bus_adjust_resource(pcib3, 0x1c, 0xc000, 0xefff) nexus0: bus_adjust_resource(pcib3, 0x1c, 0xc000, 0xefff) pcib3: grew I/O port window to 0xc000-0xefff pcib3: allocated I/O port range (0xd000-0xdfff) for rid 1c of pcib7 pcib7: allocated initial I/O port window of 0xd000-0xdfff This grew the range too large resulting in this failure later on: pcib9: failed to allocate initial I/O port window (0xc000-0xcfff,0x1000) Can you try the updated pcib_debug.patch? It has some more printf's for this case. -- John Baldwin