[Gta04-owner] Further 3.17 kernel development for GTA04

NeilBrown neilb at suse.de
Sun Nov 9 23:32:58 CET 2014


On Sun, 9 Nov 2014 21:11:54 +0100 "Dr. H. Nikolaus Schaller"
<hns at goldelico.com> wrote:

> Hi Neil,
> 
> Am 09.11.2014 um 16:57 schrieb Neil Jerram <neil at ossau.homelinux.net>:
> 
> > Neil Jerram <neil at ossau.homelinux.net> writes:
> > 
> >> NeilBrown <neilb at suse.de> writes:
> >> 
> >>> On Wed, 05 Nov 2014 00:22:29 +0000 Neil Jerram <neil at ossau.homelinux.net>
> >>> wrote:
> >>> 
> >>>> What config do you use when building your kernel for GTA04?  I've
> >>>> checked out your 3.17-gta04, but don't see any obvious GTA04 configs
> >>>> under arch/arm/configs.
> >>> 
> >>> See below.  I'm in two minds about including this.
> >> 
> >> Thanks.  After some entertaining diversions (*) I've built and booted
> >> this kernel and can report that it seems to solve two other problems
> >> that were afflicting my last experiments back in June/July [...]
> >> 
> >> Thank you!
> > 
> > Does suspending work correctly for you with this kernel?  I have a
> > script that I use with xautolock to suspend automatically, and its log
> > indicates an I/O error when it tries to suspend by writing 'mem' to
> > /sys/power/state:
> > 
> >  + echo mem
> >  sh: echo: I/O error
> > 
> > If I try to suspend explicitly from the command line, here's what
> > happens:
> > 
> >  root at neo:~# cat /sys/power/state 
> >  freeze mem
> >  root at neo:~# echo mem > /sys/power/state 
> > 
> > The screen has gone blank, and so the phone now appears to have
> > suspended.  However, if I just tap the screen, it comes on again, and
> > then in the SSH session I see:
> > 
> >  -bash: echo: write error: Operation not permitted
> >  root at neo:~# 
> > 
> > Are you seeing similar?
> 
> You made me curious. So I tried with the 3.18-rc3 kernel:
> 
> root at gta04:~# cat /sys/power/state 
> freeze mem
> root at gta04:~# echo mem >/sys/power/state
> [   96.168182] PM: Syncing filesystems ... done.
> [  101.833740] Freezing user space processes ... (elapsed 0.003 seconds) done.
> [  101.845153] Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
> [  101.856872] Suspending console(s) (use no_console_suspend to debug)
> 
> — here the RS232 console pauses until I tap the screen —
> 
> [  101.924255] WWAN suspend
> [  101.931518] PM: suspend of devices complete after 51.086 msecs
> [  101.955444] PM: late suspend of devices complete after 23.834 msecs
> [  101.980072] PM: noirq suspend of devices complete after 24.566 msecs
> [  101.980102] Disabling non-boot CPUs ...
> [  101.980133] Successfully put all powerdomains to target state
> [  101.995391] PM: noirq resume of devices complete after 14.678 msecs
> [  102.021606] PM: early resume of devices complete after 23.834 msecs
> [  102.027404] GPS resuming 0 0 1
> [  102.027496] WWAN resume
> [  102.366119] mmc1: error -110 during resume (card was removed?)
> [  102.366180] dpm_run_callback(): mmc_bus_resume+0x0/0x70 returns -110
> [  102.366241] PM: Device mmc1:0001 failed to resume: error -110
> [  102.366302] libertas_sdio mmc1:0001:1: mmc1:0001:1: resume: we're back
> [  102.368072] PM: resume of devices complete after 346.313 msecs
> [  102.460662] Restarting tasks ... done.
> [  102.470001] omapdss DPI: Could not find exact pixel clock. Requested 22153000 Hz, got 22153846 Hz
> root at gta04:~# 
> 
> The backlight and the red power LED stayed on during “suspend”.

The LEDs stay on during suspend by design - they can even flash during
suspend!

The backlight doesn't suspend because you drive it with a 'fixed_regulator'
which is marked as 'regulator-always-on', and 'always' includes during
suspend.

> 
> What I don’t know is about the mmc1 errors (I have not checked if WLAN works).

These are largely fixed by the patch

[PATCH 2/2] mmc: core: reset sdio card properly on resume.

which I posted recently.  There are still some issues with wifi and mmc power
managements which I haven't completely resolved though.


> In addition the time needed for syncing filesystems is quite long.

I notice this too.  I assume it is because I have lots of debugging on and so
generate a lot of kernel logs and they all need to be flushed
to /var/log/kern.log

I've occasionally had a patch which disables that sync, but as it only brings
benefit when you are doing lots of tracing, it isn't something I feel
strongly about.

NeilBrown


> 
> So I don’t see your issue. But this “suspend" may not be a good power down state.
> Rather it appears to wake up some parts immediately (except for the console).
> 
> BR,
> Nikolaus
> 
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20141110/b007a0eb/attachment-0001.asc>


More information about the Gta04-owner mailing list