From owner-freebsd-current@FreeBSD.ORG Tue May 3 23:49:32 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 3B7E01065670; Tue, 3 May 2011 23:49:32 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 01FEB8FC08; Tue, 3 May 2011 23:49:32 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA" (verified OK)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id 1A4BB60D5; Tue, 3 May 2011 19:49:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1304466571; bh=xUxRZxZ6zvE+W5rVwIfb4ysU6U1ZRcf/sC+Th683gMk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=HAYOVq2T8tTdOpu2BYnmo16ZIBHWZvOUyvPBZT9RQ18HTg3DCHHrPcOVVZleL6KkD noMaauAnt0WrWQiZwrF2dCLcT1B9Vtic1R8LZSiwfPpK7C3USQFnXD+DGrkwypy DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=KMn7+FYHSoThZFjz4GCpIAX8oxC3JZJyFoli0gSa6Xr+aWsUQ9uHTjUgDhxIyHg4N da7X9SOcGAZ/izZMyH0nzSvx+GF1fMw8f6N4KiBdCfU2Lu2+4SXutlcuH/G7fbg Message-ID: <4DC09489.6060804@protected-networks.net> Date: Tue, 03 May 2011 19:49:29 -0400 From: Michael Butler User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: John Baldwin References: <4DBF68A4.6050405@protected-networks.net> <201105030758.12792.jhb@freebsd.org> In-Reply-To: <201105030758.12792.jhb@freebsd.org> X-Enigmail-Version: 1.1.2 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Tue, 03 May 2011 23:49:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > 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" 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) (prog-if 01 [Subtractive decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=07, subordinate=09, sec-latency=64 I/O behind bridge: 00004000-00004fff Memory behind bridge: f0900000-f09fffff Cardbus bridge: 07:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller Subsystem: Toshiba America Info Systems Device ff10 Flags: bus master, medium devsel, latency 64, IRQ 18 Memory at f0907000 (32-bit, non-prefetchable) Bus: primary=07, secondary=08, subordinate=09, sec-latency=32 16-bit legacy interface ports at 0001 [ .. snip .. ] Cardbus inserted .. 08:00.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01) Subsystem: Netgear WG511T 108 Mbps Wireless PC Card (rev.A/B) Flags: medium devsel, IRQ 18 Memory at f0910000 (32-bit, non-prefetchable) Capabilities: [44] Power Management version 2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk3AlIkACgkQQv9rrgRC1JKC1ACcDVsXXN/4NrR9y707OkCMaBAm NmEAoKJfwjaP0+92LKDYI9FRDULy8gPx =m/J6 -----END PGP SIGNATURE-----