2002-08-12 17:45:20

by H. J. Lu

[permalink] [raw]
Subject: PATCH: Fix CardBus bridge behind a PCI bridge

On Sat, Aug 10, 2002 at 10:23:55PM -0700, H. J. Lu wrote:
> On Fri, Aug 09, 2002 at 05:21:40PM -0700, dhinds wrote:
> > On Fri, Aug 09, 2002 at 04:48:35PM -0700, H. J. Lu wrote:
> > > On Fri, Aug 09, 2002 at 04:05:06PM -0700, dhinds wrote:
> > > > There's a current thread on linux-kernel about "PCI hotplug resource
> > > > reservation" that is relevant, and there's a patch that claims to
> > > > provide a workable solution to the problem for cPCI.
> > >
> > > Thanks. Do you think if the "PCI<->PCI bridges, transparent resource
> > > fix" thread is related to it?
> >
> > I glanced at that and didn't think so, but I didn't read much.
> >
>
> I think they are relevant. Your pcmcia-cs 3.20 works fine on Sony. Here
> is the output of "lspci -v". PCI bride has
>
> I/O behind bridge: 00004000-00004fff
> Memory behind bridge: e8200000-e82fffff
>
> The kernel cardbus code tries to allocate memory and I/O from them. It
> doesn't work. BTW, I checked another notebook. That code is not reached
> at all since slot has been initialized by BIOS. Your pcmcia-cs doesn't
> follow the PCI brigde:
>
> I/O ports at 0200
> Memory at 60040000 (32-bit, non-prefetchable)
>
> and works. Any ides why?
>

Here is a patch against 2.4.18 to fix CardBus bridge behind a PCI
bridge with positive decode. I checked Windows XP. It is how it
allocates resources for the CardBus slots, that is outside of
the memory and I/O windows on the PCI bridge.

Let me know if it works for you.


H.J.


Attachments:
(No filename) (1.46 kB)
linux-2.4.18-yenta-bridge.patch (1.44 kB)
Download all attachments