Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238153 - [patch] sys-kernel/gentoo-sources-2.6.26 : fix ATI & NVidia ALSA CPU usage bug
Summary: [patch] sys-kernel/gentoo-sources-2.6.26 : fix ATI & NVidia ALSA CPU usage bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://git.kernel.org/?p=linux/kernel...
Whiteboard: linux-2.6.27
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-19 23:45 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2008-10-19 18:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
hda-intel-bdl_pos_adj.patch (hda-intel-bdl_pos_adj.patch,8.08 KB, patch)
2008-09-19 23:46 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-09-19 23:45:16 UTC
The 2.6.26 kernel changed the DMA behavior of the snd_hda_intel driver. On many chipsets, this resulted in extremely high events/0 CPU usage (I observed >30% CPU usage on my quad-core machine in some circumstances).

The discussion of this bug begins here:
http://linux.derkeiler.com/Mailing-Lists/Kernel/2008-06/msg02731.html
and concludes
http://linux.derkeiler.com/Mailing-Lists/Kernel/2008-06/msg03976.html
and
http://git.kernel.org/?p=linux/kernel/git/tiwai/sound-2.6.git;a=commitdiff;h=0c6341ace5efb14a0da08482e299b3c158e0d5fb

Essentially, the problem was that ATI and NVidia's versions of hda turned out to behave somewhat differently from Intel's (the snd_hda_intel driver is used for many vendors' sound cards, not just Intel's). The fixes have been integrated upstream (in Takashi Iwai's git tree). I suggest that this bug should also be fixed in the current 2.6.26 gentoo-sources.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-09-19 23:46:54 UTC
Created attachment 165878 [details, diff]
hda-intel-bdl_pos_adj.patch

Patch for 2.6.26 to fix ALSA CPU usage. Derived from the relevant parts of Takashi Iwai's git tree.
Comment 2 Wormo (RETIRED) gentoo-dev 2008-09-19 23:55:57 UTC
Thanks for the report and the patch. Assigning to maintainers.
Comment 3 Mike Pagano gentoo-dev 2008-09-24 14:30:06 UTC
There is a handful of dependent patches that this patch requires. This will take some more effort and testing so as not to introduce any new problems with adding multiple patches.


http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=history;f=sound/pci/hda/hda_intel.c;h=1c53e337ecb2dce93b833dcce526f64288cc9136;hb=HEAD
Comment 4 Mike Pagano gentoo-dev 2008-10-14 13:27:29 UTC
Can someone please test in gentoo-sources-2.6.27 and port the result here
Comment 5 Mike Pagano gentoo-dev 2008-10-14 13:27:54 UTC
(In reply to comment #4)
> Can someone please test in gentoo-sources-2.6.27 and port the result here
> 

/port/post
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-10-15 04:25:40 UTC
(In reply to comment #4)
> Can someone please test in gentoo-sources-2.6.27 and port the result here

The patch has already been integrated into 2.6.27. I tested gentoo-sources-2.6.27 on the same machine that was suffering from this bug with 2.6.26, and the events/0 CPU usage is normal (just like with patched 2.6.26).
Comment 7 Mike Pagano gentoo-dev 2008-10-19 18:40:41 UTC
Closing as gentoo-sources-2.6.27 has been release