[PATCH 3/3] phy: core: Update the runtime PM section in the docs to reflect changes

2017-12-19 Thread Ulf Hansson
Let's update and clarify he phy documentation, to reflect the latest changes around the runtime PM deployment in the phy core. Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org Signed-off-by: Ulf Hansson --- Documentation/phy.txt | 28 +++- 1 file changed, 15 inser

[PATCH v2 3/3] phy: core: Update the runtime PM section in the docs to reflect changes

2017-12-20 Thread Ulf Hansson
Let's update and clarify he phy documentation, to reflect the latest changes around the runtime PM deployment in the phy core. Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org Signed-off-by: Ulf Hansson --- Documentation/phy.txt | 29 - 1 file change

Re: [PATCH v2] Documentation: admin-guide: PM: Add cpuidle document

2018-11-29 Thread Ulf Hansson
On Wed, 28 Nov 2018 at 12:47, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > Important information is missing from user/admin cpuidle documentation > available today, so add a new user/admin document for cpuidle containing > current and comprehensive information to admin-guide and drop

Re: [PATCH v2] Documentation: admin-guide: PM: Add cpuidle document

2018-11-29 Thread Ulf Hansson
On Thu, 29 Nov 2018 at 11:28, Rafael J. Wysocki wrote: > > On Thu, Nov 29, 2018 at 9:07 AM Ulf Hansson wrote: > > > > On Wed, 28 Nov 2018 at 12:47, Rafael J. Wysocki wrote: > > > > > > From: Rafael J. Wysocki > > > > > > Important inform

Re: [PATCH v2] cpuidle: Add 'above' and 'below' idle state metrics

2018-12-12 Thread Ulf Hansson
On Wed, 12 Dec 2018 at 10:46, Peter Zijlstra wrote: > > On Tue, Dec 11, 2018 at 10:51:48AM +0100, Rafael J. Wysocki wrote: > > On Mon, Dec 10, 2018 at 11:51 PM Peter Zijlstra > > wrote: > > > > Dunno; it could be cold cachelines, at which point it can be fairly > > > expensive. Also, being stuck

Re: [PATCH] Documentation: driver-api: PM: Add cpuidle document

2019-01-17 Thread Ulf Hansson
and driver API document for cpuidle > > under Documentation/driver-api/pm/. > > > > Signed-off-by: Rafael J. Wysocki > > In the face of the lack of any feedback I'm assuming that this is fine > by everyone. I have look through it, looks good and sorry for the del

Re: [PATCH] PM / core: Fix kerneldoc comments of three functions

2017-10-12 Thread Ulf Hansson
On 13 October 2017 at 02:33, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Fix kerneldoc comments of __device_suspend_noirq(), > __device_suspend_late() and __device_suspend() where the function > names in kerneldoc don't match the actual names of the functions. > > Signed-off-by: Rafael

Re: [PATCH] PM / core: Fix kerneldoc comments of four functions

2017-10-16 Thread Ulf Hansson
ns. > > Also fix the device_resume_noirq() kerneldoc comment which mentions > "early resume" instead of "noirq resume" incorrectly. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Ulf Hansson > --- > drivers/base/power/main.c |8 > 1 f

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-17 Thread Ulf Hansson
On 16 October 2017 at 03:12, Rafael J. Wysocki wrote: > Hi All, > > Well, this took more time than expected, as I tried to cover everything I had > in mind regarding PM flags for drivers. > > This work was triggered by attempts to fix and optimize PM in the > i2c-designware-platdev driver that end

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-17 Thread Ulf Hansson
[...] >> >> I am not sure I fully understand the goal you have with this series. >> Can we please try to get that clear before I continue the review. > > Quoting from the above: > > "This patch series focuses on addressing those problems so as to make it > easier to reuse callback routines by poin

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-18 Thread Ulf Hansson
On 18 October 2017 at 02:39, Rafael J. Wysocki wrote: > On Tuesday, October 17, 2017 9:41:16 PM CEST Ulf Hansson wrote: > > [cut] > >> > >> >> deploying this and from a middle layer point of view, all the trivial >> >> cases supports this. >>

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-18 Thread Ulf Hansson
[...] >> Are there any major reasons why the appended patch (obviously untested) won't >> work, then? > > OK, there is a reason, which is the optimizations bundled into > pm_runtime_force_*, because (a) the device may be left in runtime suspend > by them (in which case amba_pm_suspend_early() in m

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-18 Thread Ulf Hansson
[...] >> >> The reason why pm_runtime_force_* needs to respects the hierarchy of >> the RPM callbacks, is because otherwise it can't safely update the >> runtime PM status of the device. > > I'm not sure I follow this requirement. Why is that so? If the PM domain controls some resources for the

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Ulf Hansson
On 18 October 2017 at 23:48, Rafael J. Wysocki wrote: > On Wednesday, October 18, 2017 9:45:11 PM CEST Grygorii Strashko wrote: >> >> On 10/18/2017 09:11 AM, Ulf Hansson wrote: > > [...] > >> >>> That's the point. We know pm_runtime_force_* works nice

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Ulf Hansson
On 19 October 2017 at 00:12, Rafael J. Wysocki wrote: > On Wednesday, October 18, 2017 4:11:33 PM CEST Ulf Hansson wrote: >> [...] >> >> >> >> >> The reason why pm_runtime_force_* needs to respects the hierarchy of >> >> the RPM callbac

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Ulf Hansson
[...] >>> > Say you want to leave the parent suspended after system resume, but the >>> > child drivers use pm_runtime_force_suspend|resume(). The parent would >>> > then >>> > need to use pm_runtime_force_suspend|resume() too, no? >>> >>> Actually no. >>> >>> Currently the other options of "def

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Ulf Hansson
On 19 October 2017 at 19:21, Grygorii Strashko wrote: > > > On 10/19/2017 03:33 AM, Ulf Hansson wrote: >> On 18 October 2017 at 23:48, Rafael J. Wysocki wrote: >>> On Wednesday, October 18, 2017 9:45:11 PM CEST Grygorii Strashko wrote: >>>> >>&g

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Ulf Hansson
On 19 October 2017 at 20:04, Ulf Hansson wrote: > On 19 October 2017 at 19:21, Grygorii Strashko > wrote: >> >> >> On 10/19/2017 03:33 AM, Ulf Hansson wrote: >>> On 18 October 2017 at 23:48, Rafael J. Wysocki wrote: >>>> On Wednesday, October 18,

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Ulf Hansson
On 20 October 2017 at 03:19, Rafael J. Wysocki wrote: > On Thursday, October 19, 2017 2:21:07 PM CEST Ulf Hansson wrote: >> On 19 October 2017 at 00:12, Rafael J. Wysocki wrote: >> > On Wednesday, October 18, 2017 4:11:33 PM CEST Ulf Hansson wrote: >> >> [...] >

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-19 Thread Ulf Hansson
[...] > In this regards as we consider genpd being a trivial PM domain, those > examples your bring up above is too me also examples of trivial PM > domains. Especially because they don't deal with wakeups, as that is > taken care of by the drivers, right!? Not directly,

Re: [Update][PATCH v2 01/12] PM / core: Add NEVER_SKIP and SMART_PREPARE driver flags

2017-10-23 Thread Ulf Hansson
On 19 October 2017 at 01:17, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The motivation for this change is to provide a way to work around > a problem with the direct-complete mechanism used for avoiding > system suspend/resume handling for devices in runtime suspend. > > The problem i

Re: [PATCH 02/12] PCI / PM: Use the NEVER_SKIP driver flag

2017-10-23 Thread Ulf Hansson
On 16 October 2017 at 03:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Replace the PCI-specific flag PCI_DEV_FLAGS_NEEDS_RESUME with the > PM core's DPM_FLAG_NEVER_SKIP one everywhere and drop it. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Ulf Hansson

Re: [PATCH 03/12] PM: i2c-designware-platdrv: Use DPM_FLAG_SMART_PREPARE

2017-10-23 Thread Ulf Hansson
On 16 October 2017 at 03:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Modify i2c-designware-platdrv to set DPM_FLAG_SMART_PREPARE for its > devices and return 0 from the system suspend ->prepare callback > if the device has an ACPI companion object in order to tell the PM > core and

Re: [PATCH 04/12] PM / core: Add SMART_SUSPEND driver flag

2017-10-23 Thread Ulf Hansson
On 16 October 2017 at 03:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Define and document a SMART_SUSPEND flag to instruct bus types and PM > domains that the system suspend callbacks provided by the driver can > cope with runtime-suspended devices, so from the driver's perspective

Re: [PATCH 05/12] PCI / PM: Drop unnecessary invocations of pcibios_pm_ops callbacks

2017-10-23 Thread Ulf Hansson
t will allow subsequent changes to be somewhat simpler. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Ulf Hansson > --- > drivers/pci/pci-driver.c | 18 -- > 1 file changed, 18 deletions(-

Re: [PATCH 07/12] ACPI / LPSS: Consolidate runtime PM and system sleep handling

2017-10-23 Thread Ulf Hansson
_lpss_suspend_late() and acpi_lpss_resume_early() use > them too in order to unify the runtime PM and system sleep > handling in the LPSS driver. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Ulf Hansson > --- > > This is based on an RFC I posted some time ago > (

Re: [PATCH 10/12] PM / core: Add LEAVE_SUSPENDED driver flag

2017-10-23 Thread Ulf Hansson
On 16 October 2017 at 03:30, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Define and document a new driver flag, DPM_FLAG_LEAVE_SUSPENDED, to > instruct the PM core that it is desirable to leave the device in > runtime suspend after system resume (for example, the device may be > slow t

Re: [PATCH 04/12] PM / core: Add SMART_SUSPEND driver flag

2017-10-23 Thread Ulf Hansson
On 16 October 2017 at 03:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Define and document a SMART_SUSPEND flag to instruct bus types and PM > domains that the system suspend callbacks provided by the driver can > cope with runtime-suspended devices, so from the driver's perspective

Re: [PATCH v2 1/6] PM / core: Add NEVER_SKIP and SMART_PREPARE driver flags

2017-11-06 Thread Ulf Hansson
acks. > > Signed-off-by: Rafael J. Wysocki > Acked-by: Greg Kroah-Hartman > Acked-by: Bjorn Helgaas If not too late: Reviewed-by: Ulf Hansson > --- > > -> v2: Do not use pm_generic_prepare() in acpi_subsys_prepare() >as the latter has to distinguish b

Re: [PATCH v2 3/6] PM / core: Add SMART_SUSPEND driver flag

2017-11-06 Thread Ulf Hansson
s to be able to > cope with that too. > > Signed-off-by: Rafael J. Wysocki > Acked-by: Greg Kroah-Hartman If not too late: Reviewed-by: Ulf Hansson > --- > > -> v2: Drop the changes in main.c, as the logic implemented by them >previously is now going to be impl

Re: [PATCH v2 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-10 Thread Ulf Hansson
On 8 November 2017 at 14:25, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Define and document a new driver flag, DPM_FLAG_LEAVE_SUSPENDED, to > instruct the PM core and middle-layer (bus type, PM domain, etc.) > code that it is desirable to leave the device in runtime suspend > after sy

Re: git pull

2017-11-14 Thread Ulf Hansson
[...] > > An example pull request of mine might look like: > Char/Misc patches for 4.15-rc1 > > Here is the big char/misc patch set for the 4.15-rc1 merge > window. Contained in here is the normal set of new functions > added to all of these crazy drivers, as well

Re: [PATCH v2 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-14 Thread Ulf Hansson
On 11 November 2017 at 00:45, Rafael J. Wysocki wrote: > On Fri, Nov 10, 2017 at 10:09 AM, Ulf Hansson wrote: >> On 8 November 2017 at 14:25, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> Define and document a new driver flag, DPM_FLAG_LEA

Re: [PATCH v3 4/6] PM / core: Add helpers for subsystem callback selection

2017-11-14 Thread Ulf Hansson
e" phase of system suspend and > the "early" phase of system resume (or analogous) transitions. > > The helpers will be called from additional sites going forward. > > Signed-off-by: Rafael J. Wysocki With a minor nitpick, see below, feel free to add: Reviewed-by: Ulf

Re: [PATCH v2 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-16 Thread Ulf Hansson
[...] >> >> My general goal is that I want to make it easier (or as easy as >> possible) for the general driver author to deploy runtime PM and >> system-wide PM support - in an optimized manner. Therefore, I am >> pondering over the solution you picked in this series, trying to >> understand how

Re: [PATCH v3 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-16 Thread Ulf Hansson
On 12 November 2017 at 01:37, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Define and document a new driver flag, DPM_FLAG_LEAVE_SUSPENDED, to > instruct the PM core and middle-layer (bus type, PM domain, etc.) > code that it is desirable to leave the device in runtime suspend > after s

Re: [PATCH v3 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-16 Thread Ulf Hansson
[...] >> > +++ linux-pm/include/linux/pm.h >> > @@ -559,6 +559,7 @@ struct pm_subsys_data { >> > * NEVER_SKIP: Do not skip system suspend/resume callbacks for the device. >> > * SMART_PREPARE: Check the return value of the driver's ->prepare >> > callback. >> > * SMART_SUSPEND: No need to r

Re: [PATCH v3 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-17 Thread Ulf Hansson
[...] >> Second, have you considered setting the default value of dev->power.may_skip_resume to true? >>> >>> Yes. >>> That would means the subsystem instead need to implement an opt-out method. I am thinking that it may not be an issue, since we anyway at this point, don'

Re: [PATCH v3 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-17 Thread Ulf Hansson
On 17 November 2017 at 15:31, Rafael J. Wysocki wrote: > On Fri, Nov 17, 2017 at 2:49 PM, Ulf Hansson wrote: >> [...] >> >>>> >>>>>> Second, have you considered setting the default value of >>>>>> dev->power.may_skip_resume to

Re: [PATCH v4 1/6] PM / core: Add LEAVE_SUSPENDED driver flag

2017-11-20 Thread Ulf Hansson
left in > suspend. > > The additional power.must_resume status bit introduced for the > implementation of this mechanisn is used internally by the PM core > to track the requirement to resume the device (which may depend on > its children etc). > > Signed-off-by: Rafael J. Wysock

Re: [PATCH v4 5/6] PM / core: Direct handling of DPM_FLAG_LEAVE_SUSPENDED

2017-11-20 Thread Ulf Hansson
On 18 November 2017 at 15:41, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make the PM core handle DPM_FLAG_LEAVE_SUSPENDED directly for > devices whose "noirq", "late" and "early" driver callbacks are > invoked directly by it. This indicates that your target for this particular change

Re: [PATCH v2] mmc: Add CONFIG_MMC_SIMULATE_MAX_SPEED

2016-03-19 Thread Ulf Hansson
On 22 February 2016 at 18:18, Mark Salyzyn wrote: > When CONFIG_MMC_SIMULATE_MAX_SPEED is enabled, Expose max_read_speed, > max_write_speed and cache_size sysfs controls to simulate a slow > eMMC device. The boot default values, should one wish to set this > behavior right from kernel start: > > C

Re: [RFC v2] Documentation: mmc: Add the introduction for mmc-utils

2016-03-30 Thread Ulf Hansson
gt; > I've applied this to the docs tree, thanks. If it's not too late you can add my: Acked-by: Ulf Hansson Kind regards Uffe -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] mmc: core: Extend sysfs with OCR register

2016-07-06 Thread Ulf Hansson
On 4 July 2016 at 13:56, Bojan Prtvar wrote: > Make operation conditions register (OCR) easily accessible from user space. > > Signed-off-by: Bojan Prtvar Thanks, applied for next! Amended the changelog with the explanation why this change is wanted. Kind regards Uffe > --- > Documentation/mm

Re: [PATCH] mmc: core: Extend sysfs with OCR register

2016-07-12 Thread Ulf Hansson
On 6 July 2016 at 18:21, Ulf Hansson wrote: > On 4 July 2016 at 13:56, Bojan Prtvar wrote: >> Make operation conditions register (OCR) easily accessible from user space. >> >> Signed-off-by: Bojan Prtvar > > Thanks, applied for next! Amended the changelog with the ex

Re: [PATCH] mmc: core: Extend sysfs with DSR register

2016-07-18 Thread Ulf Hansson
On 12 July 2016 at 14:56, Bojan Prtvar wrote: > Export DSR register through sysfs same as we did for the CID, CSD and OCR > registers. > > Signed-off-by: Bojan Prtvar > --- > Documentation/mmc/mmc-dev-attrs.txt | 1 + > drivers/mmc/core/mmc.c | 17 + > 2 files chan

Re: [PATCH v2] mmc: core: Extend sysfs with DSR register

2016-07-19 Thread Ulf Hansson
On 19 July 2016 at 11:16, Bojan Prtvar wrote: > Export DSR register through sysfs same as we did for the CID, CSD and OCR > registers. > > Signed-off-by: Bojan Prtvar Thanks, applied for next! Kind regards Uffe > --- > v2: Extended to cover SD cards > > Documentation/mmc/mmc-dev-attrs.txt |