From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755923AbYFJMhG (ORCPT ); Tue, 10 Jun 2008 08:37:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753196AbYFJMgz (ORCPT ); Tue, 10 Jun 2008 08:36:55 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50704 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753138AbYFJMgz (ORCPT ); Tue, 10 Jun 2008 08:36:55 -0400 Date: Tue, 10 Jun 2008 14:36:53 +0200 Message-ID: From: Takashi Iwai To: Benjamin Kidwell Cc: linux-kernel@vger.kernel.org Subject: Re: Linux-next Alsa hda_intel events/0 high CPU usage, bisected In-Reply-To: <657223.15460.qm@web53708.mail.re2.yahoo.com> References: <657223.15460.qm@web53708.mail.re2.yahoo.com> User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta28) (fuki) (x86_64-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Tue, 10 Jun 2008 05:20:49 -0700 (PDT), Benjamin Kidwell wrote: > > > --- Takashi Iwai <> wrote: > >Try to run > > > > # echo 32 > /sys/modules/snd_hda_intel/parameters/bdl_pos_adj > >and test again. > > Thanks, I think that value must be just about perfect! Tested as follows: > > (kill gdm) > #modprobe -r snd_hda_intel > #modprobe snd_hda_intel > #echo 32 > /sys/module/snd_hda_intel/bdl_pos_adj > (restart gdm, start playing sound) > > That caused events/0 CPU% to return to almost nothing and the XXX hda delay > output did not trigger. I assume this means the latency has disappeared. For > comparison, I repeated the above processand returned bdl_pos_adj to 1, and the > delay printks reappeared and events/0 started showing significant cpu usage > again. Another reset of the driver and I reset bdl_pos_adj to 32 -- no delay > printks, almost no events/0 activity apparent. > > So setting bdl_pos_adj to 32 with all new patches applied makes everything > perfect so far as I can tell. Thanks for the fix-ups for my buggy hardware, > and for reminding me to use reply and Cc: correctly. Let me know if there's > anything else I should test. Thanks for quick testing! The above value 32 is likely the size of FIFO. I guess ATI chip reports the position with FIFO offset while ICH reports smaller delay. I'll create one more patch to assign this value for ATI chipset. BTW, my latest test patches can be found on the following git tree: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable-2.6.git These are not for 2.6.27, but some of them should go to the linux-next tree now. Takashi