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

2017-10-27 Thread Rafael J. Wysocki
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 is that some middle layer code (the PCI bus type and the ACPI PM dom

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

2017-10-27 Thread Rafael J. Wysocki
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 it should be safe to leave devices in runtime suspend during sys

[PATCH v2 2/6] PCI / PM: Use the NEVER_SKIP driver flag

2017-10-27 Thread Rafael J. Wysocki
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 Acked-by: Greg Kroah-Hartman Acked-by: Bjorn Helgaas Reviewed-by: Ulf Hansson --- -> v2: No changes. --- dri

[PATCH v2 4/6] PCI / PM: Drop unnecessary invocations of pcibios_pm_ops callbacks

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The only user of non-empty pcibios_pm_ops is s390 and it only uses "noirq" callbacks, so drop the invocations of the other pcibios_pm_ops callbacks from the PCI PM code. That will allow subsequent changes to be somewhat simpler. Signed-off-by: Rafael J. Wysocki Acked-by

[PATCH v2 0/6] PM / sleep: Driver flags for system suspend/resume (part 1)

2017-10-27 Thread Rafael J. Wysocki
Hi All, The following part of the original cover letter still applies: On Monday, October 16, 2017 3:12:35 AM CEST Rafael J. Wysocki wrote: > > This work was triggered by attempts to fix and optimize PM in the > i2c-designware-platdev driver that ended up with adding a couple of > flags to the d

[PATCH v2 6/6] ACPI / PM: Take SMART_SUSPEND driver flag into account

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make the ACPI PM domain take DPM_FLAG_SMART_SUSPEND into account in its system suspend callbacks. [Note that the pm_runtime_suspended() check in acpi_dev_needs_resume() is an optimization, because if is not passed, all of the subsequent checks may be skipped and some of t

[PATCH v2 5/6] PCI / PM: Take SMART_SUSPEND driver flag into account

2017-10-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make the PCI bus type take DPM_FLAG_SMART_SUSPEND into account in its system-wide PM callbacks and make sure that all code that should not run in parallel with pci_pm_runtime_resume() is executed in the "late" phases of system suspend, freeze and poweroff transitions. [No

Re: [RESEND v12 0/6] cgroup-aware OOM killer

2017-10-27 Thread Johannes Weiner
On Thu, Oct 26, 2017 at 02:03:41PM -0700, David Rientjes wrote: > On Thu, 26 Oct 2017, Johannes Weiner wrote: > > > > The nack is for three reasons: > > > > > > (1) unfair comparison of root mem cgroup usage to bias against that mem > > > cgroup from oom kill in system oom conditions, > >

[PATCH] Check all .c files for bad kernel-doc comments

2017-10-27 Thread Matthew Wilcox
From: Matthew Wilcox Implement a '-none' output mode for kernel-doc which will only output warning messages, and suppresses the warning message about there being no kernel-doc in the file. Add it to the rule to build .o files from .c files, so it will check all .c files that have been modified.

Re: [RESEND v12 0/6] cgroup-aware OOM killer

2017-10-27 Thread Roman Gushchin
On Thu, Oct 26, 2017 at 02:03:41PM -0700, David Rientjes wrote: > On Thu, 26 Oct 2017, Johannes Weiner wrote: > > > > The nack is for three reasons: > > > > > > (1) unfair comparison of root mem cgroup usage to bias against that mem > > > cgroup from oom kill in system oom conditions, > >

Re: [PATCH] Documentation: support kernel enforcement

2017-10-27 Thread Greg Kroah-Hartman
On Wed, Oct 25, 2017 at 03:27:07PM +0200, Jarkko Sakkinen wrote: > I'm sorry that I forgot to add my name on time. > > Signed-off-by: Jarkko Sakkinen > --- > Documentation/process/kernel-enforcement-statement.rst | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/process/ker