Re: [PATCH 5/5] PNP: HP nx6325 fixup: reserve unreported resources

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bjorn Helgaas
Date: Saturday, December 11, 2010 - 11:17 pm

On Sat, Dec 11, 2010 at 07:30:54PM -0800, Linus Torvalds wrote:

I agree, it *does* suck, and I *am* quite worried about how many
issues like this we might trip over.

Windows didn't hit this because of other differences:
  - Windows relies on subtractive decode; Linux programs a window
  - Windows gives the downstream CardBus bridge a 4K and a 64M mem window;
    Linux gives it two 64M windows
  - Windows doesn't align the CardBus windows on their size; Linux does

Under Windows, the CardBus windows don't conflict with the unreported
devices.  The larger windows allocated by Linux do.  So relying on
subtractive decode would work until we plug in a CardBus device that
expects to *use* that area, and then the device won't work.


I do like this idea more than I did at first, even though it's not a
complete fix, because it's much better to have a non-working CardBus
device than a hanging machine.  But I guess we'd still want to fix
that device, and then we're back at a hw-specific quirk like this one.
Maybe we should do both (leave the bridge alone and keep the quirk).


True (although most of the quirks I can think of are in the form of
hard-coded legacy device reservations, and we're keeping those).

If we didn't care about host bridge _CRS, there'd be no reason to
change the old PCI allocation scheme.  But I think we *do* care and
will care more in the future.  We frequently assign resources to
devices the BIOS didn't configure, and that only works if we're lucky
or there's only one host bridge.


Not really -- the main point here is to make multi-host bridge
machines work reliably, and I really don't see a way to do that
without using _CRS.

If we're going to use _CRS, I think in the long run we'll be better
off if we do it similarly to Windows, despite these early problems.

Bjorn
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 4/5] PNP: add framework for platform PNP quirks, Bjorn Helgaas, (Wed Dec 8, 2:36 pm)
Re: [PATCH 5/5] PNP: HP nx6325 fixup: reserve unreported r ..., Bjorn Helgaas, (Sat Dec 11, 11:17 pm)
Re: [PATCH 1/5] resources: add arch hook for preventing al ..., Rafael J. Wysocki, (Sun Dec 12, 6:20 am)