From owner-freebsd-current@FreeBSD.ORG Wed May 4 15:06:45 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 42A951065679 for ; Wed, 4 May 2011 15:06:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1A4DD8FC15 for ; Wed, 4 May 2011 15:06:45 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id C1D6546B43; Wed, 4 May 2011 11:06:44 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 50B8D8A02B; Wed, 4 May 2011 11:06:44 -0400 (EDT) From: John Baldwin To: Michael Butler Date: Wed, 4 May 2011 09:00:02 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <4DBF68A4.6050405@protected-networks.net> <201105030758.12792.jhb@freebsd.org> <4DC09489.6060804@protected-networks.net> In-Reply-To: <4DC09489.6060804@protected-networks.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105040900.02840.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Wed, 04 May 2011 11:06:44 -0400 (EDT) Cc: freebsd-current@freebsd.org Subject: Re: cardbus memory allocation problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 15:06:45 -0000 On Tuesday, May 03, 2011 7:49:29 pm Michael Butler wrote: > > I have WIP patches to fix this but they aren't ready yet. > > > >> pcib4: I/O decode 0x4000-0x4fff > >> pcib4: memory decode 0xf0900000-0xf09fffff > >> *** this memory widow is what I expected all children to allocate from > >> > >> pcib4: no prefetched decode > >> pcib4: Subtractively decoded bridge. > > > > It's a subtractive bridge, so the resources do not have to be allocated from > > the window. That said, I'm committing the last of my patches to HEAD today to > > rework how PCI-PCI bridges handle I/O windows to support growing windows, etc. > > and the new PCI-PCI bridge driver will attempt to grow the memory window to > > allocate a new range before falling back to depending on the subtractive > > decode. > > You might be pleased to hear that, without any "special arrangements" in > loader.conf, the new PCI-PCI code does The Right Thing with memory > allocation :-) > > Parent bridge: > > I "fixed" the subordinate bus using "setpci -s 07:06.2 4c.b=02" I believe it should work even if you don't disable subtractive decoding. -- John Baldwin