Re: a7839e96 (PNP: increase max resources) breaks my ALSA intel8x0 sound card

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Robert Hancock <hancockr@...>, Andrew Morton <akpm@...>, <avuton@...>, <yakui.zhao@...>, <shaohua.li@...>, <trenn@...>, Linux Kernel Mailing List <linux-kernel@...>, <alsa-devel@...>
Date: Thursday, February 14, 2008 - 8:13 pm

On Thursday 14 February 2008 04:14:45 pm Linus Torvalds wrote:

That makes sense, but ...  there are BIOSes that actually list nested
resources, e.g., http://bugzilla.kernel.org/show_bug.cgi?id=9514#c29 :

  [000000290 - 000000294]  Motherboard resources
  [000000290 - 00000029F]  Motherboard resources

We'd have to make sure we don't start with the 0x290-0x294 resource,
because then we'll fail when we try to reserve 0x290-0x29f, and we
really should avoid using the 0x295-0x2f9 piece as well.

And even if we do figure out the "outermost" resources, I'd worry
that some BIOS will have separate ACPI devices that have overlapping
resources.  Then Murphy's Law says that we'll find the device with
the smaller resource first, reserve it, then find a device with an
enclosing resource, and leave something unreserved.

Maybe that's still better than a quirk; I don't know.  I guess it's
pretty ugly either way.

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

Messages in current thread:
Re: a7839e96 (PNP: increase max resources) breaks my ALSA in..., Bjorn Helgaas, (Thu Feb 14, 8:13 pm)