[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100623190743.GA22855@sig21.net>
Date: Wed, 23 Jun 2010 21:07:43 +0200
From: Johannes Stezenbach <js@...21.net>
To: "Luis R. Rodriguez" <mcgrof@...il.com>
Cc: Matthew Garrett <mjg59@...f.ucam.org>,
Jussi Kivilinna <jussi.kivilinna@...et.fi>,
Maxim Levitsky <maximlevitsky@...il.com>,
David Quan <David.Quan@...eros.com>,
Bob Copeland <me@...copeland.com>,
"Luis R. Rodriguez" <mcgrof@...badil.infradead.org>,
ath5k-devel@...ema.h4ckr.net, linux-wireless@...r.kernel.org,
linux-kernel <linux-kernel@...r.kernel.org>,
Jonathan May <jonathan.may@...eros.com>,
Tim Gardner <tim.gardner@...onical.com>
Subject: Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM
On Wed, Jun 23, 2010 at 09:28:57AM -0700, Luis R. Rodriguez wrote:
> On Wed, Jun 23, 2010 at 7:39 AM, Johannes Stezenbach <js@...21.net> wrote:
> >
> > If enabling ASPM comes with a performance penalty (which is not unexpected,
> > there is usually a tradeoff between performance and power consumption),
> > do you think a boot time option (pcie_aspm=) or compile time option
> > (CONFIG_PCIEASPM) is the right user interface?
> >
> >
> > But meanwhile I found that CONFIG_PCIEASPM has a runtime
> > interface, /sys/module/pcie_aspm/parameters/policy.
> > http://lwn.net/Articles/266585/
>
> Same thing, its to be used by developers not users, damn it we should
> just remove this crap.
Hopefully I got at least the message across that there is
a good reason to have an interface where the user can
select the ASPM policy?
If your answer is "reboot and change the BIOS setting" then
you didn't get what I was talking about _at all_.
Also, having now briefly looked at pcie/aspm.c, I do not share your
opinion that it is crap, except maybe for the force enable.
If I read it correctly it will by default keep the BIOS settings,
but offers a per-device sysfs attribute to change the ASPM link
state, and it seems to do sanity checking, and takes care that
both ends of the link agree.
(disclaimer: I haven't tested any of it, only briefly looked at the code)
Johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists