Date: Tue, 03 May 2011 19:49:29 -0400 From: Michael Butler <imb@protected-networks.net> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: cardbus memory allocation problem Message-ID: <4DC09489.6060804@protected-networks.net> In-Reply-To: <201105030758.12792.jhb@freebsd.org> References: <4DBF68A4.6050405@protected-networks.net> <201105030758.12792.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DC09489.6060804>
