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: <Pine.LNX.4.44L0.1006111036030.12006-100000@netrider.rowland.org>
Date:	Fri, 11 Jun 2010 10:42:07 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	David Brownell <david-b@...bell.net>
cc:	Brian Swetland <swetland@...gle.com>, Pavel Machek <pavel@....cz>,
	<tytso@....edu>, Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Neil Brown <neilb@...e.de>,
	Felipe Balbi <felipe.balbi@...ia.com>,
	LKML <linux-kernel@...r.kernel.org>,
	Florian Mickler <florian@...kler.org>,
	Peter Zijlstra <peterz@...radead.org>,
	James Bottomley <James.Bottomley@...e.de>,
	Thomas Gleixner <tglx@...utronix.de>,
	Linux PM <linux-pm@...ts.linux-foundation.org>,
	Linux OMAP Mailing List <linux-omap@...r.kernel.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Ingo Molnar <mingo@...e.hu>,
	Alan Cox <alan@...rguk.ukuu.org.uk>
Subject: Re: [linux-pm] suspend blockers & Android integration

On Thu, 10 Jun 2010, David Brownell wrote:

> This is a bit off the topic of Android
> flamage, but I thought it would be worth
> highlighting an example where the current
> frameworks may still have a deficiency...
> one that likewise relates to needing to
> block entry ot a system suspend state, but
> in this case user-space isn't very involved
> (just drivers coping with hardware).
> 
> The example I wanted to re-post (I've done so
> in the past) is one where drivers ouldn't really
> do the right thing, since driver.suspend() wasn't
> quite powerful enough as a programming interface.
> 
> The example works with USB on many ARM SoCs,
> and similar non-USB examples aren't rare.
> 
>  - Want to enter a system suspend state, with
>    some USB wakeup sources.  USB peripheral
>    waken up by the host, or vice versa.
> 
>    NOTE ASSUMPTION:  there are multiple suspend
>    states supported by the hardware, significantly
>    different in hardware configuration Linux should
>    be able to use more than one such state... (if
>    only because their power savings differ.)  This
> can mean driver-specific knowledge about those
> various states.
> 
>  - The wakeup requires a particular clock to be active, so the USB controller can detect that the
> wakeup should trigger,  then issue the right signals
> triggering the non-USB parts of the system.
> 
> Problem:  how does the device driver suspend()
>           method block entry to a suspend state
>           when it can't ensure that clock is
>           going to be active.  Magic return code?

At the moment, drivers aren't told what suspend state the system is
going into.  They know the difference between suspend and hibernate,
but the PM core doesn't tell drivers whether it's going into standby
vs. suspend.  (Strictly speaking, those terms apply mostly to ACPI
systems and not so much elsewhere.  What I'm talking about is the
/sys/power/state interface, where the user can write either "standby"
or "mem".  Drivers aren't told which was written.)

>  There are other issues here too.  (Is the target
>  system suspend state one of the ones which doesn't
> allow that clock to be active?  SoC-specific calls
> might suffice for this issue.

I imagine platforms have to answer all such questions when they decide 
exactly how they will implement "standby" and "mem".

> A number of years ago, this problem was insoluble
> with the then-current Linux PM and clock frameworks.
> I've been away from this issue for quite a while
> now, but don't recall seeing its sub-problems get
> solved ... If they're now solved, I'll be glad.
> (I know Kevin's recent OMAP stuff addresses similar
> issues, but It's OMAP-specific...) 
> 
> After all these thousands and thousands of emails...
> I'm not sure how much forward motion has happened.

I'm not aware of any progress.

Alan Stern

--
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