linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Mike Perry <mikepery@fscked.org>, linux-acpi@vger.kernel.org
Subject: Re: Idle loop causes speaker whine/buzz (!)
Date: Tue, 23 Jan 2007 16:25:29 -0500	[thread overview]
Message-ID: <200701231625.39684.lenb@kernel.org> (raw)
In-Reply-To: <20070123210042.GE32032@khazad-dum.debian.net>

On Tuesday 23 January 2007 16:00, Henrique de Moraes Holschuh wrote:
> On Tue, 23 Jan 2007, Mike Perry wrote:
> > Is there currently any way to disable busmastering or C3 transitions
> > (without recompilation)? Or better: is it possible to make the system
> > less eager to transition into C3 or otherwise reduce the frequency of
> > these transitions? If I could just get the frequency of transitions to
> > get out of the audible range, my life would be a lot better.
> 
> Read http://thinkwiki.org/wiki/Problem_with_high_pitch_noises, it may have
> the answers.

Pretty good write-up.  It is correct, you should try max_cstate.

for n starting at 3 and decreasing until the stound stops:
# echo n > /sys/module/processor/parameters/max_cstate

BTW. what model Thinkpad do you have?

The USB dependency is probably due to USB bus mastering causing
the system to "pop" out of C3 to snoop the USB DMA traffic.

On some older systems, this pops all the way to C0, and on newer
systems it transparently pops to C2 and returns to C3 w/o waking the OS.
You can get rid of it by disabling USB.  But it sounds like in the full-on case
you've got an issue even with USB disabled.  Or sometimes you can
bias the system to simply not enter C3 if it sees bus master traffic with

# echo 0xFFFFFFFF > /sys/module/processor/parameters/bm_history

Another thing to try building the kernel with CONFIG_HZ=100 -- which
is what a kernel for most laptops should be using in the first place.

cheers,
-Len



  reply	other threads:[~2007-01-23 21:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23 10:40 Idle loop causes speaker whine/buzz (!) Mike Perry
2007-01-23 12:29 ` Pavel Troller
2007-01-23 19:45   ` Mike Perry
2007-01-23 21:00     ` Henrique de Moraes Holschuh
2007-01-23 21:25       ` Len Brown [this message]
2007-01-23 21:48         ` Henrique de Moraes Holschuh
2007-01-24  0:33         ` Mike Perry
2007-01-24  2:19           ` Len Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200701231625.39684.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=hmh@hmh.eng.br \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mikepery@fscked.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).