Skip to contentSkip to conversation

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

DISCUSSION Avuton Olrich 3 participants 3 messages Jan 27, 2008 – Jan 28, 2008

lore
Share & tools
lore
#0 lore raw

With v2.6.24 my second ALSA sound device stopped working.

After bisection it says this was the offending commit.

a7839e960675b549f06209d18283d5cee2ce9261 is first bad commit commit a7839e960675b549f06209d18283d5cee2ce9261

Author: Zhao Yakui <[email protected]>
Date:   Wed Nov 28 16:21:21 2007 -0800

PNP: increase the maximum number of resources

On some systems the number of resources(IO,MEM) returnedy by PNP device is greater than the PNP constant, for example motherboard devices. It brings that some resources can't be reserved and resource confilicts. This will cause PCI resources are assigned wrongly in some systems, and cause hang. This is a regression since we deleted ACPI motherboard driver and use PNP system driver.

[[email protected]: fix text and coding-style a bit]
Cc Bjorn Helgaas <[email protected]>
Cc Thomas Renninger <[email protected]>

The audio device is 00:1b.0 (see my lspci -vvv output), the other audio device works fine.

http://avuton.googlepages.com/v2.6-before (dmesg revision before)
http://avuton.googlepages.com/v2.6-after (dmesg broken revision)
http://avuton.googlepages.com/lspci-vvv
http://avuton.googlepages.com/config (from the broken revision)
http://avuton.googlepages.com/iomem
http://avuton.googlepages.com/ioports

Signature · 3 lines
avuton
--
 Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
#1 lore raw
Quoted 2 lines · Avuton Olrich

With v2.6.24 my second ALSA sound device stopped working.

Hmm. Why is PnP ACPI called before PCI probing? That seems to be the problem here - we should *never* have any firmware allocation block known hardware BARs, they should only be blocking new dynamic allocations.

Hmm. I wonder if the problem is that ACPIPnP marks the regions busy. That would be wrong. They shouldn't be busy, they should just "exist".

A busy region will stop a "request_region()" (incorrect for this case - thats' not what the PnP resurce allocation should be all about), but an *existing* resource will just stop a new resource being dynamically assigned to that address (not not stop a known resource from using it).

So maybe the ACPIPnP allocation is doen at the right moment, just doing the wrong thing..

Linus

#2 lore raw
Quoted 12 lines · Linus Torvalds
Quoted 2 lines · Avuton Olrich

With v2.6.24 my second ALSA sound device stopped working.

Hmm. Why is PnP ACPI called before PCI probing? That seems to be the problem here - we should *never* have any firmware allocation block known hardware BARs, they should only be blocking new dynamic allocations.

Hmm. I wonder if the problem is that ACPIPnP marks the regions busy. That would be wrong. They shouldn't be busy, they should just "exist".

Quoted 7 lines

A busy region will stop a "request_region()" (incorrect for this case - thats' not what the PnP resurce allocation should be all about), but an *existing* resource will just stop a new resource being dynamically assigned to that address (not not stop a known resource from using it).

So maybe the ACPIPnP allocation is doen at the right moment, just doing the wrong thing..

This is because the region is declaimed in motherboard device. That is BIOS thinks the region is reserved for motherboard. Maybe we should blacklist the system too.