[lkml]   [2018]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/2] PM / core: genpd fix and pm_runtime_force_suspend|resume() rework
On Sun, Jan 14, 2018 at 10:48 AM, Geert Uytterhoeven
<> wrote:
> Hi Rafael,
> On Sat, Jan 13, 2018 at 1:38 AM, Rafael J. Wysocki <> wrote:
>> On Friday, January 12, 2018 3:31:09 PM CET Geert Uytterhoeven wrote:
>>> On Fri, Jan 12, 2018 at 2:00 PM, Rafael J. Wysocki <> wrote:
>>> > This comes from the recent discussion/testing effort that ensued after my
>>> > pm_runtime_force_suspend|resume() changes proposal:
>>> >
>>> >
>>> >
>>> > Patch [1/2] basically is rebased
>>> > on top of the current linux-next branch of the linux-pm.git tree (the relevant
>>> > part should be there in the linux-next tree proper ATM). It applies on top
>>> > of which should apply to the Linus'
>>> > tree cleanly.
>>> >
>>> > Patch [2/2] is a resend of with
>>> > a very minor changelog modification and the R-b tag from Ulf.
>>> >
>>> > Geert, if possible, please test this on the Renesas systems that had the
>>> > problem with previously and let
>>> > me know if you still see issues.
>>> I've tested this on two very similar systems: Salvator-XS with R-Car H3 ES2.0,
>>> and Salvator-X with R-Car M3-W ES1.0.
>>> On the M3-based system, everything seems to work fine.
>> Good.
>>> On the H3-based system, the serial console (the /dev/ttySC0 device, not kernel
>>> serial output) is dead after resume from s2ram, with and without
>>> no_console_suspend.
>>> With no_console_suspend, I see:
>>> ttySC ttySC0: 1 input overrun(s)
>>> after typing on the serial console, so it looks like an interrupt problem.
>>> This issue seems to be caused by patch [1/2]. But I have no idea what's
>>> really happening, and why the two systems behave differently.
> Could be a firmware issue, too.
> While the kernel images are identical, the ARM trusted firmware configs aren't
> (same version, though).
> I'll do some more investigation...

OK, thanks!

It also would be good to know the topology of the device hierarchy and
how that maps to the domains on the failing system (and which UART
clocks are operated by genpd).

>> Well, that's not dramatic.
>> Let's make a deal that we'll fix this on top of [1/2].
> ;-)
>> Which driver is this BTW? sh-sci? That one doesn't even support runtime
>> PM, confusingly enough.
> Yes, sh-sci. It does make pm_runtime_*() calls.

Hmm. I overlooked that part.

This is sort of unusual, because the driver doesn't provide any
runtime PM callbacks, but still it does provided system suspend ones.
It looks like the idea is to never put it into runtime suspend if any
ports are enabled and always put it into runtime suspend otherwise.

Which one is the case in your testing? Is the port disabled or
enabled during system-wide suspend?

> And of course there's, which is driven from serial_core...

What does this point to for that particular device?

 \ /
  Last update: 2018-01-15 01:05    [W:0.051 / U:10.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site