From owner-freebsd-stable@FreeBSD.ORG Tue Jun 19 15:59:31 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 D4448106567B for ; Tue, 19 Jun 2012 15:59:31 +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 A4E558FC0C for ; Tue, 19 Jun 2012 15:59:31 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 0BB80B96D; Tue, 19 Jun 2012 11:59:31 -0400 (EDT) From: John Baldwin To: Andrey Zonov Date: Tue, 19 Jun 2012 11:00:03 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <4FD0ECB7.8040908@zonov.org> <201206181026.20857.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201206191100.03808.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 19 Jun 2012 11:59:31 -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: Tue, 19 Jun 2012 15:59:32 -0000 On Tuesday, June 19, 2012 9:03:57 am Andrey Zonov wrote: > On Mon, Jun 18, 2012 at 6:26 PM, John Baldwin wrote: > > 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. > > > > Sure. Ok, found the bug, thanks! -- John Baldwin