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 - 2:51 pm

On Tuesday 05 February 2008 01:12:46 pm Bjorn Helgaas wrote:


Sorry for the delay.  I did work on this, but I don't see how this
can work.  pcibios_init() marks its reservations as not busy, so the
subsequent PNP request doesn't fail, even if it clashes.

The PNP system driver is an fs_initcall(), so it already happens after
pcibios_init():

  1) register ACPI PCI root bridge driver, which enumerates PCI
       devices behind the bridge
  2) pcibios_init() -> pcibios_resource_survey() -> request_resource()
  3) register PNP system driver -> request_region()
  4) register intel8x0 sound driver and reserve resources
       (conflict happens here)

We have reservations in this order:

  febf8000-febfbfff : 0000:00:1b.0 -- from pcibios_resource_survey (!busy)
  febfa000-febfac00 : pnp 00:08    -- from PNP system driver (!busy)
  febf8000-febfbfff : ICH HD audio -- fails because it spans the PNP region

The PNP reservation succeeds even though the PCI reservation has
already happened, so I don't see how we can do this without a
quirk that ignores the bogus PNP resources.

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, 2:51 pm)