lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070306162021.GJ2919@inferi.kami.home>
Date:	Tue, 6 Mar 2007 17:20:22 +0100
From:	Mattia Dongili <malattia@...ux.it>
To:	Matthew Garrett <mjg59@...f.ucam.org>
Cc:	Pavel Machek <pavel@....cz>, Len Brown <lenb@...nel.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org, linux-acpi@...r.kernel.org
Subject: Re: [GIT PATCH] ACPI patches for 2.6.21 - part II (resend)

On Tue, Mar 06, 2007 at 01:17:53PM +0000, Matthew Garrett wrote:
> On Tue, Mar 06, 2007 at 01:22:13PM +0100, Mattia Dongili wrote:
> 
> > the audiopower is basically a _PS3/_PS0 switch for the device, while the
> > lanpower plays with the embedded controller to powerdown/powerup.
> >
> > Now, unfortunately those methods are attached to a fake device in the
> > DSDT and afaict there's no way to tell which real device they are
> > playing with (except by inspecting the method implementations).
> > Well of course iff there's only _one_ sound card and _one_ nic you can
> > easily guess it :)
> > 
> > Is there some way to hook into drivers for such kind of runtime power
> > management?
> 
> Before worrying, I think it would make more sense to instrument the 
> benefit gained against doing more "traditional" runtime management - 
> that is, simply shutting down the ethernet chipset or doing ac97 power 
> management. It's trivial to add those to the existing drivers, and if 

Can't tell about chipset specific management, but as far as ACPI is
concerned, this Sony specific stuff is a nice way of hiding features
behind an undocumented device. Eg: the sound card _PS3 is empty and only
available through that AZPW method.[1] So I guess that the
platform_pci_set_power_state for ACPI D3 is basically a no-op there.

> the additional benefit of using the Sony-specific methods is small then 
> it's probably not really worth working out how to add it in.

Yep, will try to get some measurement (by means of the acpi battery
status, no better way currently available here) but given the above I
suspect there's some benefit.

> Plus, implementing the generic support benefits more people :)

Yes, of course.

[1]: if you want to make a an idea, one such DSDT is available
here: http://oioio.altervista.org/linux/DSDT.sz72b.dsl
sony-laptop basically exposes the Device(SNC) and AZPW/GAZP for the
audio (an hda) and LNPW/GLNP for the nic (a sky2). Now see the
audio device Device(HDEF) and its _PS0 and _PS3.

PS: did I disappear from the Cc list? ;)
-- 
mattia
:wq!
-
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ