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: <20141030182333.GC14412@amd>
Date:	Thu, 30 Oct 2014 19:23:33 +0100
From:	Pavel Machek <pavel@....cz>
To:	Bastien Nocera <hadess@...ess.net>
Cc:	Andy Lutomirski <luto@...capital.net>,
	Theodore Ts'o <tytso@....edu>,
	John Stultz <john.stultz@...aro.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: A desktop environment[1] kernel wishlist

On Thu 2014-10-30 16:07:35, Bastien Nocera wrote:
> On Thu, 2014-10-30 at 07:53 -0700, Andy Lutomirski wrote:
> > On Thu, Oct 30, 2014 at 7:45 AM, Bastien Nocera <hadess@...ess.net> wrote:
> > > On Wed, 2014-10-29 at 22:16 +0100, Pavel Machek wrote:
> > >> On Wed 2014-10-29 16:26:16, Theodore Ts'o wrote:
> > >> > On Wed, Oct 29, 2014 at 12:19:56PM -0700, Andy Lutomirski wrote:
> > >> > > For a tablet, isn't the relevant piece of information whether the power
> > >> > > button was recently pressed, not whether the power button caused the wakeup?
> > >> >
> > >> > For Android L devices, it has been reported that the device might
> > >> > power up its screen fully (note I didn't say 'wake up') automatically
> > >> > when it detects that you are picking it up, or when you double-tap the
> > >> > screen.  It also reportedly has a low power black and white "ambient
> > >> > display" (ala the Android Wear devics) which allows you to see
> > >> > notifications without waking up the phone all the way[1].  (All of
> > >> > this assuming appropriate hardware support, of course.)
> > >> >
> > >> > [1] http://www.androidauthority.com/ambient-display-lollipop-541198/
> > >> >
> > >> > Which goes back to the concept of having a "suspend" mode is legacy
> > >> > thinking.  Modern devices will soon have not just a "awake" and a
> > >> > "asleep" modes; there will be (well, is now) a much wider spectrum of
> > >> > modes, with the goal of using the minimum amount of power while still
> > >> > providing use functionality to the user.
> > >>
> > >> Actually Maemo people (on Nokia N900 and friends) got it right: unlike
> > >> android devices, it does not suspend to RAM at any point, and still
> > >> has reasonable battery life.
> > >
> > > Android devices don't suspend to RAM. Neither do Tizen devices AFAIK.
> > >
> > >> So I agree -- using suspend to RAM on "active" cell phone is just a
> > >> bad design.
> > >
> > > I don't think anyone was discussing cell phones in particular in this
> > > thread, and knowing when user-space got woken up because of the baseband
> > > processor having information for us would still be useful.
> > >
> > 
> > You still haven't addressed what problem this solves that isn't solved
> > by merely knowing whether the baseband processor has useful
> > information.
> 
> We don't know that the baseband processor has useful information if
> we're not in the "path" for the interrupt that it would send. This event
> might end up dying somewhere inside the kernel for all we know.

See, that would be something to fix. If baseband has incoming data,
and kernel fails to notify userspace about that data after resume,
that is a kernel bug.

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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