Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1434663

Re: [QUEUED v20160630 1/4] stm class: Add runtime power management handling

From Alexander Shishkin <alexander.shishkin@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [QUEUED v20160630 1/4] stm class: Add runtime power management handling
Date 2016-06-30 17:40 +0200
Message-ID <rPMel-2RC-1@gated-at.bofh.it> (permalink)
References <rPJJw-1fQ-15@gated-at.bofh.it> <rPJJw-1fQ-17@gated-at.bofh.it> <rPM4F-2Oj-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Mathieu Poirier <mathieu.poirier@linaro.org> writes:

> On 30 June 2016 at 06:56, Alexander Shishkin
> <alexander.shishkin@linux.intel.com> wrote:
>> Currently, there's no runtime pm in stm class devices, which makes it
>> harder for the underlying hardware drivers to handle their power
>> management.
>>
>> This patch applies the following runtime pm policy to stm class devices,
>> which their parents can rely on for their power management tracking:
>>
>>   * device is in use during character device writes,
>>   * delayed autosuspend is used to keep it active between adjacent
>>   writes,
>>   * device is in use while mmio regions are mapped,
>>   * device is is use while any stm_source devices are linked to it.
>>
>> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
>> Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
>> Cc: Chunyan Zhang <zhang.chunyan@linaro.org>
>
> Coresight power management on my Juno board (the only device with an
> STM I have access to) is broken and as such, can't test if this code
> does what is intended.  But theoretically it looks good.

Thanks for taking a look.

> Throughout the driver, wouldn't it be better to use
> pm_runtime_put_sync() rather than autosuspending with a hard coded
> value?

Yeah, the autosuspend is for the char write()ers that are likely to send
multiple consequent write()s, so that we don't have to go in and out of
suspend every time that happens.

Thanks,
--
Alex

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[QUEUED v20160630 0/4] stm class/intel_th: Updates for char-misc-next Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-06-30 15:00 +0200
  [QUEUED v20160630 1/4] stm class: Add runtime power management handling Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-06-30 15:00 +0200
    Re: [QUEUED v20160630 1/4] stm class: Add runtime power management handling Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-06-30 17:30 +0200
      Re: [QUEUED v20160630 1/4] stm class: Add runtime power management handling Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-06-30 17:40 +0200
        Re: [QUEUED v20160630 1/4] stm class: Add runtime power management handling Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-06-30 18:10 +0200
          Re: [QUEUED v20160630 1/4] stm class: Add runtime power management handling Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-07-01 09:20 +0200
  [QUEUED v20160630 3/4] intel_th: gth: Fix a source comment Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-06-30 15:00 +0200
    Re: [QUEUED v20160630 3/4] intel_th: gth: Fix a source comment Chunyan Zhang <zhang.chunyan@linaro.org> - 2016-07-01 04:40 +0200
      Re: [QUEUED v20160630 3/4] intel_th: gth: Fix a source comment Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-07-01 09:20 +0200
  [QUEUED v20160630 4/4] intel_th: Document output device callbacks Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-06-30 15:00 +0200

csiph-web