Re: [PATCH 5/5] pcmcia: add a new resource manager for non ISA systems

From: Alan Cox
Date: Mon Jun 01 2015 - 09:59:57 EST


On Sat, 2015-05-30 at 16:40 +0200, Dominik Brodowski wrote:
> Alan,
>
> On Thu, Dec 04, 2014 at 09:31:22PM +0000, Alan Cox wrote:
> > On a pure PCI platform we don't actually need all the complexity of the
> > rsrc_nonstatic manager, in fact we can just work directly with the pci
> > allocators and avoid all the complexity (and code bloat).
>
> I know you're re-working this thing by now, but still:

It's on the todo list to finish debugging

> Can we be certain that BIOS, ACPI etc. properly report all io resources
> which must not be utilized by other devices? Does this really depend on ISA

No you can't. However there appears to be a convention that for mmio the
windows are aligned on largish boundaries and vendors only hide hardware
so that it's next to existing resources on an alignment such that it
won't get allocated.

I've no idea if it's in a spec anywhere or that's just a "Hey it works
in Windows" bit of history.

> being set in Kconfig? Should this also be enabled for CardBus bridges on the
> root PCI bus? And: could doing a check for X86 like in rsrc_nonstatic.c
> ( avoid anything < 0x100 for ioports ) help to avoid some of the possible
> fallout?

Probably yes.

Added to the TODO list for it.

Alan


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/