ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: "ksummit-discuss@lists.linuxfoundation.org"
	<ksummit-discuss@lists.linuxfoundation.org>,
	riverful.kim@samsung.com, kyungmin.park@samsung.com,
	John Stultz <john.stultz@linaro.org>,
	Bjorn Andersson <Bjorn.Andersson@sonymobile.com>
Subject: Re: [Ksummit-discuss] [CORE TOPIC] Mainline kernel on a cellphone
Date: Fri, 24 Jul 2015 14:34:27 +1000	[thread overview]
Message-ID: <20150724143427.5a045528@noble> (raw)
In-Reply-To: <20150723203429.GA8588@amd>

On Thu, 23 Jul 2015 22:34:29 +0200 Pavel Machek <pavel@ucw.cz> wrote:

> On Thu 2015-07-23 22:29:02, Pavel Machek wrote:
> > On Thu 2015-07-23 08:42:51, Steven Rostedt wrote:
> > > On Thu, 23 Jul 2015 14:14:41 +0200
> > > Pavel Machek <pavel@ucw.cz> wrote:
> > > 
> > > > On Thu 2015-07-23 13:21:19, Linus Walleij wrote:
> > > > > On Thu, Jul 23, 2015 at 12:57 PM, Pavel Machek <pavel@ucw.cz> wrote:
> > > > > 
> > > > > > Significant percentage of phones run Linux kernel today, but geting
> > > > > > mainline kernel to work on a phone is very hard to do. (So hard, that
> > > > > > newest device that is close to working on recent mainline was made in
> > > > > > 2009.) There are multiple obstacles, including huge patches from
> > > > > > silicon vendors, missing GNU/Linux userspace support that makes kernel
> > > > > > testing hard, interfaces unsuitable for phones and power management
> > > > > > problems.
> > > 
> > > > 
> > > > Yes. Plus, there seems to be group at Samsung. Trats is a cellphone iirc.
> > > 
> > > Seems like a reasonable topic, especially since KS is being held in
> > > South Korea this year.
> > > 
> > > Although is this something to be a core topic or a tech topic? Does
> > > this affect all subsystems, or just a set of drivers? Note, a core
> > > topic wont get as much time for discussion as a tech topic would.
> > > 
> > > Also, what is expected to be solved at KS?
> > 
> > Questions I had in mind:
> > 
> > 1) RGB leds. They are not same as 3 leds. Plus there' hw acceleration
> > on them. How to support them?
> > 
> > 2) HW damage: is it kernel's job to protect hardware from user? We
> > currently have no battery over-discharge protection (and its tricky).
> > 
> > 3) HW abstraction: do we want to keep the model where kernel hides
> > differences between different machines, so that same userland can run
> > on all of them? Currently that is broken, for example we have 3
> > "chargers" on N900, and userland gets very confused; or we have 100
> > mixers, that are pretty much imposible to set up by user..
> > 
> > 4) voice link to modem: Nokia people tell us that ALSA is not suitable
> > interface to modem audio. What is the right interface, then?
> > 
> > 5) where do we get userland for testing?
> 
> and the big one... for Android people (not me):
> 
> 6) do we need to use s2ram (and then pretend phone is not suspended)
> to save power on cellphones? If so, do we need new interface for
> applications to signal "I'd really like to run"?
> 

For the first half of this question, the answer is:
 Probably not.  runtime-pm should be able to put all devices to sleep,
  and cgroup freezer should be able to freeze untrusted processes.
 But I suspect runtime-pm doesn't provide as much power saving as
 system suspend, and using the cgroup freezer means lots of changes to
 userspace.
 So lots of work would be needed to meet this goal, if it is a
 worthwhile goal.

For the second half - it is really a user-space problem.  User-space
decides when to enter suspend.
(or CONFIG_PM_WAKELOCKS can enable a kernel interface
via /sys/power/wake_lock).

NeilBrown

  reply	other threads:[~2015-07-24  4:34 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23 10:57 Pavel Machek
2015-07-23 11:21 ` Linus Walleij
2015-07-23 12:14   ` Pavel Machek
2015-07-23 12:42     ` Steven Rostedt
2015-07-23 15:40       ` Mark Brown
2015-07-28 22:09         ` Tim Bird
2015-07-28 23:07           ` Bjorn Andersson
2015-07-31 16:18             ` Rob Herring
2015-07-31 16:56               ` Bjorn Andersson
2015-08-11  9:34                 ` Johannes Berg
2015-07-31 17:25               ` Tim Bird
2015-08-03 15:29                 ` John W. Linville
2015-08-03  7:42               ` Linus Walleij
2015-08-03 21:34                 ` Rob Herring
2015-08-03 22:36                   ` Marcel Holtmann
2015-08-05  8:40                     ` Linus Walleij
2015-08-05  8:46                       ` Linus Walleij
2015-08-05  9:11                         ` Samuel Ortiz
2015-08-05 11:54                         ` Pavel Machek
2015-08-05  9:09                       ` Samuel Ortiz
2015-08-05 17:19                       ` Marcel Holtmann
2015-08-05 16:02                     ` Rob Herring
2015-08-05 17:00                       ` Marcel Holtmann
2015-08-07 12:40                         ` Linus Walleij
2015-07-29  0:45           ` Krzysztof Kozlowski
2015-07-29  6:12             ` Laurent Pinchart
2015-07-29  7:40             ` Pavel Machek
2015-08-25 18:59               ` Tim Bird
2015-08-26  1:22                 ` Krzysztof Kozlowski
2015-08-26  4:25                   ` Sudip Mukherjee
2015-08-26  4:52                     ` Krzysztof Kozlowski
2015-08-26  5:30                       ` Laurent Pinchart
2015-08-26  5:33                         ` Krzysztof Kozlowski
2015-08-26  6:15                           ` Josh Triplett
2015-08-26  7:23                             ` Heiko Stuebner
2015-08-26  8:05                               ` Krzysztof Kozlowski
2015-08-28  8:20                                 ` Nicolas Ferre
2015-08-26 11:33                   ` Mark Brown
2015-08-26 12:56                   ` Jason Cooper
2015-08-26 13:35                     ` Geert Uytterhoeven
2015-08-26 13:58                     ` Sudip Mukherjee
2015-08-26 14:51                       ` Jason Cooper
2015-08-26 17:13                         ` Sudip Mukherjee
2015-08-26 20:09                           ` Greg Kroah-Hartman
2015-08-28  7:44                             ` Pavel Machek
2015-08-28  8:42                               ` Heiko Stuebner
2015-08-29 15:47                                 ` Sudip Mukherjee
2015-07-29  8:18             ` Heiko Stübner
2015-07-29  0:56           ` Rafael J. Wysocki
2015-07-29  6:43           ` Daniel Vetter
2015-07-29 17:42             ` Tim Bird
2015-07-29  7:14           ` Bintian
2015-07-29 18:07             ` Tim Bird
2015-07-31  1:50               ` Bintian
2015-07-23 20:29       ` Pavel Machek
2015-07-23 20:34         ` Pavel Machek
2015-07-24  4:34           ` NeilBrown [this message]
2015-07-24  6:00             ` Tony Lindgren
2015-07-24 22:26               ` Rafael J. Wysocki
2015-07-28 22:03                 ` NeilBrown
2015-07-29  0:51                   ` Rafael J. Wysocki
2015-07-29 23:23                     ` Rafael J. Wysocki
2015-07-29 23:59                       ` NeilBrown
2015-07-30  0:57                         ` Rafael J. Wysocki
2015-07-31 17:55                           ` Mark Brown
2015-08-01  0:08                             ` Rafael J. Wysocki
2015-07-23 21:00         ` josh
2015-07-23 21:29           ` Pavel Machek
2015-07-29 13:32         ` Mark Brown
2015-07-31 12:22           ` Pavel Machek
2015-07-31 17:52             ` Mark Brown
2015-07-31 22:03               ` Pavel Machek
2015-08-01 10:55                 ` Mark Brown
2015-08-01 19:03                   ` Pavel Machek
2015-08-04 17:17                     ` Mark Brown
2015-08-03  5:33                 ` Tony Lindgren
2015-07-23 13:23     ` Krzysztof Kozlowski
2015-07-23 21:56       ` Pavel Machek
2015-07-24  1:37         ` Krzysztof Kozlowski
2015-07-24  4:40       ` Kyungmin Park
2015-07-23 14:48 ` Shuah Khan
2015-07-23 15:08 ` Heiko Stübner
2015-08-04 19:39 ` Pavel Machek
2015-08-05  7:05   ` Bintian

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=20150724143427.5a045528@noble \
    --to=neilb@suse.com \
    --cc=Bjorn.Andersson@sonymobile.com \
    --cc=john.stultz@linaro.org \
    --cc=ksummit-discuss@lists.linuxfoundation.org \
    --cc=kyungmin.park@samsung.com \
    --cc=pavel@ucw.cz \
    --cc=riverful.kim@samsung.com \
    /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