Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Greg KH
g 28, 2019 at 12:12:39AM -0400, Sasha Levin wrote: > > > > > This is a note to let you know that I've just added the patch titled > > > > > > > > > > x86/pm: Introduce quirk framework to save/restore extra MSR > > > > > r

Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Sasha Levin
just added the patch titled > > > > x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume > > > > to the 4.4-stable tree which can be found at: > > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=

Re: [PATCH] thermal: mediatek: add suspend/resume callback

2019-08-28 Thread Zhang Rui
On Tue, 2019-07-02 at 17:16 +0800, michael@mediatek.com wrote: > From: Louis Yu > > Add suspend/resume callback to disable/enable Mediatek thermal sensor > respectively. Since thermal power domain is off in suspend, thermal > driver > needs re-initialization during resume.

Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Greg KH
gt; > > x86/pm: Introduce quirk framework to save/restore extra MSR registers > > > around suspend/resume > > > > > > to the 4.4-stable tree which can be found at: > > > > > > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queu

Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Yu Chen
d0c931f15f79beb213134 > > Author: Chen Yu > > Date: Wed Nov 25 01:03:41 2015 +0800 > > > > x86/pm: Introduce quirk framework to save/restore extra MSR registers > > around suspend/resume > > > > A bug was reported that on certain Broadwell plat

Re: Patch "x86/pm: Introduce quirk framework to save/restore extra MSR registers around suspend/resume" has been added to the 4.4-stable tree

2019-08-28 Thread Greg KH
On Wed, Aug 28, 2019 at 12:12:39AM -0400, Sasha Levin wrote: > This is a note to let you know that I've just added the patch titled > > x86/pm: Introduce quirk framework to save/restore extra MSR registers > around suspend/resume > > to the 4.4-stable tre

Applied "ASoC: cs42xx8: Force suspend/resume during system suspend/resume" to the asoc tree

2019-08-27 Thread Mark Brown
The patch ASoC: cs42xx8: Force suspend/resume during system suspend/resume has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Re: [alsa-devel] [PATCH] ASoC: cs42xx8: Force suspend/resume during system suspend/resume

2019-08-27 Thread Daniel Baluta
On Tue, Aug 27, 2019 at 1:15 PM Shengjiu Wang wrote: > > Use force_suspend/resume to make sure clocks are disabled/enabled > accordingly during system suspend/resume. > > Signed-off-by: Dong Aisheng > Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta > --- > so

[PATCH] ASoC: cs42xx8: Force suspend/resume during system suspend/resume

2019-08-27 Thread Shengjiu Wang
Use force_suspend/resume to make sure clocks are disabled/enabled accordingly during system suspend/resume. Signed-off-by: Dong Aisheng Signed-off-by: Shengjiu Wang --- sound/soc/codecs/cs42xx8.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc

[PATCH v2 15/49] Input: atmel_mxt_ts - report failures in suspend/resume

2019-08-26 Thread Jiada Wang
From: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 93a57575403de4dd07cd64807d3c2ed7f2cca262) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts - remove platform data support").] Signed-off-by: George G. D

Re: [PATCH v5 03/10] mfd: mt6397: modify suspend/resume behavior

2019-08-23 Thread Matthias Brugger
On 23/08/2019 05:45, Hsin-Hsiung Wang wrote: > Some pmics don't need backup interrupt settings, so we change to use > pm notifier for the pmics which are necessary to store settings. > > Acked-for-mfd-by: Lee Jones > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/mfd/mt6397-core.c | 8

[PATCH v5 03/10] mfd: mt6397: modify suspend/resume behavior

2019-08-22 Thread Hsin-Hsiung Wang
Some pmics don't need backup interrupt settings, so we change to use pm notifier for the pmics which are necessary to store settings. Acked-for-mfd-by: Lee Jones Signed-off-by: Hsin-Hsiung Wang --- drivers/mfd/mt6397-core.c | 89 + drivers/mfd/mt639

[RFC PATCH 5/5] ASoC: SOF: Intel: add support for SoundWire suspend/resume

2019-08-21 Thread Pierre-Louis Bossart
Somehow the core0 needs to be on to set-up the interrupts and power-up the SoundWire IP. Signed-off-by: Pierre-Louis Bossart --- sound/soc/sof/intel/hda-dsp.c | 11 +++ sound/soc/sof/intel/hda.c | 2 +- sound/soc/sof/intel/hda.h | 5 + 3 files changed, 17 insertions(+), 1 d

[PATCH v3 01/12] x86/hyper-v: Suspend/resume the hypercall page for hibernation

2019-08-19 Thread Dexuan Cui
This is needed for hibernation, e.g. when we resume the old kernel, we need to disable the "current" kernel's hypercall page and then resume the old kernel's. Signed-off-by: Dexuan Cui Reviewed-by: Michael Kelley --- arch/x86/hyperv/hv_init.c | 34 ++ 1 file chan

[PATCH v3 05/12] Drivers: hv: vmbus: Suspend/resume the synic for hibernation

2019-08-19 Thread Dexuan Cui
This is needed when we resume the old kernel from the "current" kernel. Note: when hv_synic_suspend() and hv_synic_resume() run, all the non-boot CPUs have been offlined, and interrupts are disabled on CPU0. Signed-off-by: Dexuan Cui Reviewed-by: Michael Kelley --- drivers/hv/vmbus_drv.c | 46

[PATCH v3 07/12] Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation

2019-08-19 Thread Dexuan Cui
The high-level VSC drivers will implement device-specific callbacks. Signed-off-by: Dexuan Cui Reviewed-by: Michael Kelley --- drivers/hv/vmbus_drv.c | 46 ++ include/linux/hyperv.h | 3 +++ 2 files changed, 49 insertions(+) diff --git a/drivers/hv/

[PATCH v3 09/12] Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation

2019-08-19 Thread Dexuan Cui
Before Linux enters hibernation, it sends the CHANNELMSG_UNLOAD message to the host so all the offers are gone. After hibernation, Linux needs to re-negotiate with the host using the same vmbus protocol version (which was in use before hibernation), and ask the host to re-offer the vmbus devices.

[PATCH v3 03/12] clocksource/drivers: Suspend/resume Hyper-V clocksource for hibernation

2019-08-19 Thread Dexuan Cui
This is needed for hibernation, e.g. when we resume the old kernel, we need to disable the "current" kernel's TSC page and then resume the old kernel's. Signed-off-by: Dexuan Cui Reviewed-by: Michael Kelley --- drivers/clocksource/hyperv_timer.c | 25 + 1 file changed, 2

Re: Suspend/Resume Broken on AM43/AM33 Platforms

2019-08-19 Thread Stephen Boyd
Date: Mon Aug 5 16:32:41 2019 -0700 > >> > >> hwrng: core - Freeze khwrng thread during suspend > >> > >> Commit seems to be breaking suspend/resume on TI AM43/AM33 platforms. > >> > >> > >> rtcwake: wakeup from "mem"

Re: Suspend/Resume Broken on AM43/AM33 Platforms

2019-08-19 Thread Keerthy
suspend/resume on TI AM43/AM33 platforms. rtcwake: wakeup from "mem" using /dev/rtc0 at Sun Nov 18 02:12:12 2018 [ 54.033833] PM: suspend entry (deep) [ 54.037741] Filesystems sync: 0.000 seconds [ 54.062730] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 54.0

Re: Suspend/Resume Broken on AM43/AM33 Platforms

2019-08-18 Thread Stephen Boyd
Quoting Keerthy (2019-08-18 21:24:58) > Hi Stephen, > > commit 03a3bb7ae63150230c5de645dc95e673ebf17e1a > Author: Stephen Boyd > Date: Mon Aug 5 16:32:41 2019 -0700 > > hwrng: core - Freeze khwrng thread during suspend > > Commit seems to be breaking sus

Suspend/Resume Broken on AM43/AM33 Platforms

2019-08-18 Thread Keerthy
Hi Stephen, commit 03a3bb7ae63150230c5de645dc95e673ebf17e1a Author: Stephen Boyd Date: Mon Aug 5 16:32:41 2019 -0700 hwrng: core - Freeze khwrng thread during suspend Commit seems to be breaking suspend/resume on TI AM43/AM33 platforms. rtcwake: wakeup from "mem" using /d

[PATCH v5 02/13] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-16 Thread Alexandru Ardelean
The chip supports standard suspend/resume via BMCR reg. Hook these functions into the `adin` driver. Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy

[PATCH v1 14/63] Input: atmel_mxt_ts - report failures in suspend/resume

2019-08-16 Thread Jiada Wang
From: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 93a57575403de4dd07cd64807d3c2ed7f2cca262) [gdavis: Resolve forward port conflicts due to applying upstream commit 96a938aa214e ("Input: atmel_mxt_ts - remove platform data support").] Signed-off-by: George G. D

Re: [PATCH v4 02/14] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > The chip supports standard suspend/resume via BMCR reg. > Hook these functions into the `adin` driver. > > Reviewed-by: Andrew Lunn > Signed-off-by: Alexandru Ardelean Reviewed-by: Florian Fainelli -- Florian

[PATCH v4 02/14] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-12 Thread Alexandru Ardelean
The chip supports standard suspend/resume via BMCR reg. Hook these functions into the `adin` driver. Reviewed-by: Andrew Lunn Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c

Re: [PATCH v4 03/10] mfd: mt6397: modify suspend/resume behavior

2019-08-12 Thread Lee Jones
On Mon, 05 Aug 2019, Hsin-Hsiung Wang wrote: > Some pmics don't need backup interrupt settings, so we change to use > pm notifier for the pmics which are necessary to store settings. > > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/mfd/mt6397-core.c | 89 > +---

[PATCH v3 02/14] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-09 Thread Alexandru Ardelean
The chip supports standard suspend/resume via BMCR reg. Hook these functions into the `adin` driver. Reviewed-by: Andrew Lunn Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c

Re: [PATCH v2 03/15] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-08 Thread Andrew Lunn
On Thu, Aug 08, 2019 at 03:30:14PM +0300, Alexandru Ardelean wrote: > The chip supports standard suspend/resume via BMCR reg. > Hook these functions into the `adin` driver. > > Signed-off-by: Alexandru Ardelean Reviewed-by: Andrew Lunn Andrew

[PATCH v2 03/15] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-08 Thread Alexandru Ardelean
The chip supports standard suspend/resume via BMCR reg. Hook these functions into the `adin` driver. Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index 879797d076e0

RE: [PATCH v2 6/7] Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation

2019-08-07 Thread Dexuan Cui
. Similarly, I also need to make the same change in this patch: [PATCH v2 7/7] Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation BTW, I'd like to change the print_hex_dump_debug() to print_hex_dump() in this patch: [PATCH v2 5/7] Drivers: hv: vmbus: Ignore the off

Re: Odroid-XU4 sound issue after suspend-resume

2019-08-07 Thread Sylwester Nawrocki
On 8/7/19 10:22, Sylwester Nawrocki wrote: > On 8/5/19 15:27, Jaafar Ali wrote: >> Dear All, >> Kernel 5.3-rc1 >> OS: ubuntu 18.04 >> Hardware: Odroid-XU4 >> The sound of Odroid-XU4 after suspend/resume cycle is choppy and slow.  >> I have found a workarou

RE: [PATCH v2 6/7] Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation

2019-08-07 Thread Michael Kelley
From: Dexuan Cui Sent: Wednesday, July 31, 2019 10:52 AM > > Before Linux enters hibernation, it sends the CHANNELMSG_UNLOAD message to > the host so all the offers are gone. After hibernation, Linux needs to > re-negotiate with the host using the same vmbus protocol version (which > was in use b

RE: [PATCH v2 4/7] Drivers: hv: vmbus: Suspend/resume the synic for hibernation

2019-08-07 Thread Michael Kelley
From: Dexuan Cui Sent: Wednesday, July 31, 2019 10:52 AM > > This is needed when we resume the old kernel from the "current" kernel. > > Note: when hv_synic_suspend() and hv_synic_resume() run, all the > non-boot CPUs have been offlined, and interrupts are disabled on CPU0. > > Signed-off-by: D

Re: Odroid-XU4 sound issue after suspend-resume

2019-08-07 Thread Sylwester Nawrocki
Hi Jaafar, On 8/5/19 15:27, Jaafar Ali wrote: > Dear All, > Kernel 5.3-rc1 > OS: ubuntu 18.04 > Hardware: Odroid-XU4 > The sound of Odroid-XU4 after suspend/resume cycle is choppy and slow.  > I have found a workaround, the I2SMOD register value should be set to > zero

Re: [PATCH 02/16] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-05 Thread Andrew Lunn
On Mon, Aug 05, 2019 at 07:54:39PM +0300, Alexandru Ardelean wrote: > The chip supports standard suspend/resume via BMCR reg. > Hook these functions into the `adin` driver. > > Signed-off-by: Alexandru Ardelean Reviewed-by: Andrew Lunn Andrew

[PATCH 02/16] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-05 Thread Alexandru Ardelean
The chip supports standard suspend/resume via BMCR reg. Hook these functions into the `adin` driver. Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index 6a610d4563c3

Odroid-XU$ sound issue after suspend-resume

2019-08-05 Thread Jaafar Ali
Dear All, Kernel 5.3-rc1 OS: ubuntu 18.04 Hardware: Odroid-XU4 The sound of Odroid-XU4 after suspend/resume cycle is choppy and slow. I have found a workaround, the I2SMOD register value should be set to zero after resume to force using internal codec clock (cdclkcon bit = 0), also the

Re: suspend/Resume Sound issue workaround

2019-08-05 Thread Krzysztof Kozlowski
On Sun, 4 Aug 2019 at 14:36, Jaafar Ali wrote: > Dear Krzysztof, > The sound of Odroid-XU4 after suspend/resume cycle has an issue. As a > workaround, the I2SMOD register value should be set to zero after resume, the > i2s_resume function would be: > > static int i2s_resume(

[PATCH v4 03/10] mfd: mt6397: modify suspend/resume behavior

2019-08-04 Thread Hsin-Hsiung Wang
Some pmics don't need backup interrupt settings, so we change to use pm notifier for the pmics which are necessary to store settings. Signed-off-by: Hsin-Hsiung Wang --- drivers/mfd/mt6397-core.c | 89 + drivers/mfd/mt6397-irq.c| 33 +

Re: [RFC PATCH 34/40] soundwire: intel: ignore disabled links for suspend/resume

2019-08-02 Thread Pierre-Louis Bossart
On 8/2/19 12:30 PM, Vinod Koul wrote: On 25-07-19, 18:40, Pierre-Louis Bossart wrote: Please add explanation why.. yes missed this Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/soundwire/intel

Re: [RFC PATCH 34/40] soundwire: intel: ignore disabled links for suspend/resume

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: Please add explanation why.. > Signed-off-by: Pierre-Louis Bossart > --- > drivers/soundwire/intel.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c > index 1477c35f616f

Re: [RFC PATCH 20/40] soundwire: prototypes for suspend/resume

2019-08-02 Thread Pierre-Louis Bossart
On 8/2/19 12:03 PM, Vinod Koul wrote: On 25-07-19, 18:40, Pierre-Louis Bossart wrote: Please do provide the changelog on why this change is needed. not needed for now, will remove. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.h | 3 +++ 1 file changed, 3 ins

Re: [RFC PATCH 20/40] soundwire: prototypes for suspend/resume

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: Please do provide the changelog on why this change is needed. > Signed-off-by: Pierre-Louis Bossart > --- > drivers/soundwire/cadence_master.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/soundwire/cadence_master.h > b/dri

[PATCH 4.9 118/223] powerpc/32s: fix suspend/resume when IBATs 4-7 are used

2019-08-02 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 6ecb78ef56e08d2119d337ae23cb951a640dc52d upstream. Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping kernel text. But the suspend

[PATCH 4.4 079/158] powerpc/32s: fix suspend/resume when IBATs 4-7 are used

2019-08-02 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 6ecb78ef56e08d2119d337ae23cb951a640dc52d upstream. Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping kernel text. But the suspend

[PATCH v2 6/7] Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation

2019-07-31 Thread Dexuan Cui
Before Linux enters hibernation, it sends the CHANNELMSG_UNLOAD message to the host so all the offers are gone. After hibernation, Linux needs to re-negotiate with the host using the same vmbus protocol version (which was in use before hibernation), and ask the host to re-offer the vmbus devices.

[PATCH v2 2/7] clocksource/drivers: Suspend/resume Hyper-V clocksource for hibernation

2019-07-31 Thread Dexuan Cui
This is needed for hibernation, e.g. when we resume the old kernel, we need to disable the "current" kernel's TSC page and then resume the old kernel's. Signed-off-by: Dexuan Cui Reviewed-by: Michael Kelley --- drivers/clocksource/hyperv_timer.c | 25 + 1 file changed, 2

[PATCH v2 4/7] Drivers: hv: vmbus: Suspend/resume the synic for hibernation

2019-07-31 Thread Dexuan Cui
This is needed when we resume the old kernel from the "current" kernel. Note: when hv_synic_suspend() and hv_synic_resume() run, all the non-boot CPUs have been offlined, and interrupts are disabled on CPU0. Signed-off-by: Dexuan Cui --- drivers/hv/vmbus_drv.c | 46 +

[PATCH v2 1/7] x86/hyper-v: Suspend/resume the hypercall page for hibernation

2019-07-31 Thread Dexuan Cui
This is needed for hibernation, e.g. when we resume the old kernel, we need to disable the "current" kernel's hypercall page and then resume the old kernel's. Signed-off-by: Dexuan Cui Reviewed-by: Michael Kelley --- arch/x86/hyperv/hv_init.c | 34 ++ 1 file chan

[PATCH v2 7/7] Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation

2019-07-31 Thread Dexuan Cui
The high-level VSC drivers will implement device-specific callbacks. Signed-off-by: Dexuan Cui Reviewed-by: Michael Kelley --- drivers/hv/vmbus_drv.c | 42 ++ include/linux/hyperv.h | 3 +++ 2 files changed, 45 insertions(+) diff --git a/drivers/hv/vmbu

RE: [PATCH 6/7] Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation

2019-07-30 Thread Dexuan Cui
> From: Michael Kelley > Sent: Tuesday, July 30, 2019 4:26 PM > From: Dexuan Cui Sent: Monday, July 8, 2019 10:30 > PM > > > > This is needed when we resume the old kernel from the "current" kernel. > > Perhaps a bit more descriptive commit message could be supplied? I'll use this as the new c

RE: [PATCH 7/7] Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation

2019-07-30 Thread Michael Kelley
From: Dexuan Cui Sent: Monday, July 8, 2019 10:30 PM > > The high-level VSC drivers will implement device-specific callbacks. > > Signed-off-by: Dexuan Cui > --- > drivers/hv/vmbus_drv.c | 42 ++ > include/linux/hyperv.h | 3 +++ > 2 files changed, 45 i

RE: [PATCH 6/7] Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation

2019-07-30 Thread Michael Kelley
From: Dexuan Cui Sent: Monday, July 8, 2019 10:30 PM > > This is needed when we resume the old kernel from the "current" kernel. Perhaps a bit more descriptive commit message could be supplied? > > Signed-off-by: Dexuan Cui > --- > drivers/hv/connection.c | 3 +-- > drivers/hv/hyperv_vmb

RE: [PATCH 2/7] clocksource/drivers: Suspend/resume Hyper-V clocksource for hibernation

2019-07-30 Thread Michael Kelley
From: Dexuan Cui Sent: Monday, July 8, 2019 10:29 PM > > This is needed for hibernation, e.g. when we resume the old kernel, we need > to disable the "current" kernel's TSC page and then resume the old kernel's. > > Signed-off-by: Dexuan Cui > --- > drivers/clocksource/hyperv_timer.c | 25

RE: [PATCH 1/7] x86/hyper-v: Suspend/resume the hypercall page for hibernation

2019-07-30 Thread Michael Kelley
From: Dexuan Cui Sent: Monday, July 8, 2019 10:29 PM > > This is needed for hibernation, e.g. when we resume the old kernel, we need > to disable the "current" kernel's hypercall page and then resume the old > kernel's. > > Signed-off-by: Dexuan Cui > --- > arch/x86/hyperv/hv_init.c | 34 +

[PATCH v2 0/2] Tegra30+ CPU suspend-resume bug-fixes

2019-07-30 Thread Dmitry Osipenko
Hello, This small series addresses two suspend-resume bugs: one affects Tegra30+ due to a typo in the code, other fixes CPU hang on Tegra30 specifically. Changelog: v2: Reworded comment to the code to make it sound better in the patch "Use WFE for power-gating on Tegra30". Dmitr

[PATCH 4.14 169/293] powerpc/32s: fix suspend/resume when IBATs 4-7 are used

2019-07-29 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 6ecb78ef56e08d2119d337ae23cb951a640dc52d upstream. Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping kernel text. But the suspend

Re: [alsa-devel] [RFC PATCH 20/40] soundwire: prototypes for suspend/resume

2019-07-26 Thread Pierre-Louis Bossart
On 7/26/19 5:04 AM, Cezary Rojewski wrote: On 2019-07-26 01:40, Pierre-Louis Bossart wrote: Signed-off-by: Pierre-Louis Bossart ---   drivers/soundwire/cadence_master.h | 3 +++   1 file changed, 3 insertions(+) diff --git a/drivers/soundwire/cadence_master.h b/drivers/soundwire/cadence_ma

Re: [RFC PATCH 20/40] soundwire: prototypes for suspend/resume

2019-07-26 Thread Cezary Rojewski
On 2019-07-26 01:40, Pierre-Louis Bossart wrote: Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soundwire/cadence_master.h b/drivers/soundwire/cadence_master.h index c0bf6ff00a44..d375bbfead18 100644 -

[RFC PATCH 34/40] soundwire: intel: ignore disabled links for suspend/resume

2019-07-25 Thread Pierre-Louis Bossart
Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 1477c35f616f..a976480d6f36 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -116

[RFC PATCH 20/40] soundwire: prototypes for suspend/resume

2019-07-25 Thread Pierre-Louis Bossart
Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soundwire/cadence_master.h b/drivers/soundwire/cadence_master.h index c0bf6ff00a44..d375bbfead18 100644 --- a/drivers/soundwire/cadence_master.h +++ b/drivers

Re: [PATCH v1 0/2] Tegra30+ CPU suspend-resume bug-fixes

2019-07-25 Thread Dmitry Osipenko
25.07.2019 12:40, Peter De Schrijver пишет: > On Tue, Jul 23, 2019 at 04:28:35AM +0300, Dmitry Osipenko wrote: >> 08.07.2019 2:03, Dmitry Osipenko пишет: >>> Hello, >>> >>> This small series addresses two suspend-resume bugs: one affects Tegra30+ >>> du

Re: [PATCH v1 0/2] Tegra30+ CPU suspend-resume bug-fixes

2019-07-25 Thread Peter De Schrijver
On Tue, Jul 23, 2019 at 04:28:35AM +0300, Dmitry Osipenko wrote: > 08.07.2019 2:03, Dmitry Osipenko пишет: > > Hello, > > > > This small series addresses two suspend-resume bugs: one affects Tegra30+ > > due to a typo in the code, other fixes CPU hang on Tegra30 sp

[PATCH 4.19 255/271] powerpc/32s: fix suspend/resume when IBATs 4-7 are used

2019-07-24 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 6ecb78ef56e08d2119d337ae23cb951a640dc52d upstream. Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping kernel text. But the suspend

[PATCH 5.1 349/371] powerpc/32s: fix suspend/resume when IBATs 4-7 are used

2019-07-24 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 6ecb78ef56e08d2119d337ae23cb951a640dc52d upstream. Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping kernel text. But the suspend

[PATCH 5.2 387/413] powerpc/32s: fix suspend/resume when IBATs 4-7 are used

2019-07-24 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 6ecb78ef56e08d2119d337ae23cb951a640dc52d upstream. Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping kernel text. But the suspend

Re: [PATCH v1 0/2] Tegra30+ CPU suspend-resume bug-fixes

2019-07-22 Thread Dmitry Osipenko
08.07.2019 2:03, Dmitry Osipenko пишет: > Hello, > > This small series addresses two suspend-resume bugs: one affects Tegra30+ > due to a typo in the code, other fixes CPU hang on Tegra30 specifically. > > Please review and apply, thanks! > > Dmitry Osipenko

Re: sched_clock and device suspend/resume

2019-07-10 Thread Thomas Gleixner
On Wed, 10 Jul 2019, Thomas Gleixner wrote: > On Wed, 10 Jul 2019, Steven Rostedt wrote: > > > > [ Removed the two emails that were bouncing ] > > > > On Wed, 10 Jul 2019 21:06:57 +0200 (CEST) > > Thomas Gleixner wrote: > > > > > > > > sched_clock_continuous() ? (I know, horrible name), that s

Re: sched_clock and device suspend/resume

2019-07-10 Thread Thomas Gleixner
On Wed, 10 Jul 2019, Steven Rostedt wrote: > > [ Removed the two emails that were bouncing ] > > On Wed, 10 Jul 2019 21:06:57 +0200 (CEST) > Thomas Gleixner wrote: > > > > > > sched_clock_continuous() ? (I know, horrible name), that simply keeps > > > > > track of the time delta at suspend and

Re: sched_clock and device suspend/resume

2019-07-10 Thread Steven Rostedt
[ Removed the two emails that were bouncing ] On Wed, 10 Jul 2019 21:06:57 +0200 (CEST) Thomas Gleixner wrote: > > > > sched_clock_continuous() ? (I know, horrible name), that simply keeps > > > > track of the time delta at suspend and returns: > > > > > > > > sched_clock() + delta;

Re: sched_clock and device suspend/resume

2019-07-10 Thread Thomas Gleixner
On Wed, 10 Jul 2019, Steven Rostedt wrote: > On Wed, 10 Jul 2019 20:35:32 +0200 (CEST) > Thomas Gleixner wrote: > > > On Wed, 10 Jul 2019, Steven Rostedt wrote: > > > > > > > > [ Resending as your Cc was screwed up and caused my reply to mess up > > > the Cc list ] > > > > > > On Wed, 10 Jul

Re: sched_clock and device suspend/resume

2019-07-10 Thread Steven Rostedt
On Wed, 10 Jul 2019 20:35:32 +0200 (CEST) Thomas Gleixner wrote: > On Wed, 10 Jul 2019, Steven Rostedt wrote: > > > > > [ Resending as your Cc was screwed up and caused my reply to mess up > > the Cc list ] > > > > On Wed, 10 Jul 2019 08:20:37 -0700 > > Sodagudi Prasad wrote: > > > > > A

Re: sched_clock and device suspend/resume

2019-07-10 Thread Thomas Gleixner
On Wed, 10 Jul 2019, Steven Rostedt wrote: > > [ Resending as your Cc was screwed up and caused my reply to mess up > the Cc list ] > > On Wed, 10 Jul 2019 08:20:37 -0700 > Sodagudi Prasad wrote: > > > Another option is printing the epoch/cycles information in every print > > statement simi

Re: sched_clock and device suspend/resume

2019-07-10 Thread Steven Rostedt
[ Resending as your Cc was screwed up and caused my reply to mess up the Cc list ] On Wed, 10 Jul 2019 08:20:37 -0700 Sodagudi Prasad wrote: > Another option is printing the epoch/cycles information in every print > statement similar to thread id or processor id added > recently(CONFIG_PRI

[PATCH 1/7] x86/hyper-v: Suspend/resume the hypercall page for hibernation

2019-07-08 Thread Dexuan Cui
This is needed for hibernation, e.g. when we resume the old kernel, we need to disable the "current" kernel's hypercall page and then resume the old kernel's. Signed-off-by: Dexuan Cui --- arch/x86/hyperv/hv_init.c | 34 ++ 1 file changed, 34 insertions(+) diff -

[PATCH 4/7] Drivers: hv: vmbus: Suspend/resume the synic for hibernation

2019-07-08 Thread Dexuan Cui
This is needed when we resume the old kernel from the "current" kernel. Signed-off-by: Dexuan Cui --- drivers/hv/vmbus_drv.c | 40 1 file changed, 40 insertions(+) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 72d5a7c..1c2d935 100644

[PATCH 2/7] clocksource/drivers: Suspend/resume Hyper-V clocksource for hibernation

2019-07-08 Thread Dexuan Cui
This is needed for hibernation, e.g. when we resume the old kernel, we need to disable the "current" kernel's TSC page and then resume the old kernel's. Signed-off-by: Dexuan Cui --- drivers/clocksource/hyperv_timer.c | 25 + 1 file changed, 25 insertions(+) diff --git a

[PATCH 6/7] Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation

2019-07-08 Thread Dexuan Cui
This is needed when we resume the old kernel from the "current" kernel. Signed-off-by: Dexuan Cui --- drivers/hv/connection.c | 3 +-- drivers/hv/hyperv_vmbus.h | 2 ++ drivers/hv/vmbus_drv.c| 40 3 files changed, 43 insertions(+), 2 deletions(-)

[PATCH 7/7] Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation

2019-07-08 Thread Dexuan Cui
The high-level VSC drivers will implement device-specific callbacks. Signed-off-by: Dexuan Cui --- drivers/hv/vmbus_drv.c | 42 ++ include/linux/hyperv.h | 3 +++ 2 files changed, 45 insertions(+) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_dr

[PATCH v1 0/2] Tegra30+ CPU suspend-resume bug-fixes

2019-07-07 Thread Dmitry Osipenko
Hello, This small series addresses two suspend-resume bugs: one affects Tegra30+ due to a typo in the code, other fixes CPU hang on Tegra30 specifically. Please review and apply, thanks! Dmitry Osipenko (2): ARM: tegra: Fix FLOW_CTLR_HALT register clobbering by tegra_resume() ARM: tegra

Re: [PATCH v2] PM: Move disabling/enabling runtime PM to suspend/resume noirq

2019-07-03 Thread Rafael J. Wysocki
On Wed, Jul 3, 2019 at 2:56 AM Muchun Song wrote: > > Rafael J. Wysocki 于2019年7月3日周三 上午1:54写道: > > > > On Tue, Jul 2, 2019 at 6:37 PM Muchun Song wrote: > > > > > > Currently, the PM core disables runtime PM for all devices right after > > > executing subsystem/driver .suspend_late() callbacks f

Re: [PATCH v2] PM: Move disabling/enabling runtime PM to suspend/resume noirq

2019-07-02 Thread Muchun Song
Rafael J. Wysocki 于2019年7月3日周三 上午1:54写道: > > On Tue, Jul 2, 2019 at 6:37 PM Muchun Song wrote: > > > > Currently, the PM core disables runtime PM for all devices right after > > executing subsystem/driver .suspend_late() callbacks for them and > > re-enables it right before executing subsystem/dr

Re: [PATCH v2] PM: Move disabling/enabling runtime PM to suspend/resume noirq

2019-07-02 Thread Rafael J. Wysocki
gt; > Change in v2: >Update subject from: >"PM: Move disabling/enabling runtime PM to noirq suspend/early > resume" >to: >"PM: Move disabling/enabling runtime PM to suspend/resume noirq" > > Documentation/power/runtime

[PATCH v2] PM: Move disabling/enabling runtime PM to suspend/resume noirq

2019-07-02 Thread Muchun Song
executing subsystem/ driver .resume_noirq() callbacks for them. Signed-off-by: Muchun Song --- Change in v2: Update subject from: "PM: Move disabling/enabling runtime PM to noirq suspend/early resume" to: "PM: Move disabling/enabling runtime PM to

[PATCH] thermal: mediatek: add suspend/resume callback

2019-07-02 Thread michael.kao
From: Louis Yu Add suspend/resume callback to disable/enable Mediatek thermal sensor respectively. Since thermal power domain is off in suspend, thermal driver needs re-initialization during resume. Signed-off-by: Louis Yu Signed-off-by: Michael Kao --- This patch series base on these patches

Re: [PATCH v2] powerpc/32s: fix suspend/resume when IBATs 4-7 are used

2019-06-30 Thread Michael Ellerman
On Mon, 2019-06-17 at 21:42:14 UTC, Christophe Leroy wrote: > Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. > Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for > STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping > kernel text. But the suspend/restore functio

Re: [PATCH V5 08/18] clk: tegra: Add suspend resume support for DFLL

2019-06-29 Thread Dmitry Osipenko
29.06.2019 16:28, Dmitry Osipenko пишет: > 28.06.2019 5:12, Sowjanya Komatineni пишет: >> This patch creates APIs for supporting Tegra210 clock driver to >> perform DFLL suspend and resume operation. >> >> During suspend, DFLL mode is saved and on resume Tegra210 clock driver >> invokes DFLL resume

Re: [PATCH V5 08/18] clk: tegra: Add suspend resume support for DFLL

2019-06-29 Thread Dmitry Osipenko
28.06.2019 5:12, Sowjanya Komatineni пишет: > This patch creates APIs for supporting Tegra210 clock driver to > perform DFLL suspend and resume operation. > > During suspend, DFLL mode is saved and on resume Tegra210 clock driver > invokes DFLL resume API to re-initialize DFLL to enable target dev

Re: [PATCH] platform/chrome: lightbar: Get drvdata from parent in suspend/resume

2019-06-28 Thread Enric Balletbo i Serra
On 27/6/19 23:47, Rajat Jain wrote: > The lightbar driver never assigned the drvdata in probe method, and > thus there is nothing there. Need to get the ec_dev from the parent's > drvdata. > > Signed-off-by: Rajat Jain Queued for 5.3 Thanks, ~ Enric > --- > drivers/platform/chrome/cros_ec_

[PATCH V5 08/18] clk: tegra: Add suspend resume support for DFLL

2019-06-27 Thread Sowjanya Komatineni
This patch creates APIs for supporting Tegra210 clock driver to perform DFLL suspend and resume operation. During suspend, DFLL mode is saved and on resume Tegra210 clock driver invokes DFLL resume API to re-initialize DFLL to enable target device clock in open loop mode or closed loop mode. Acke

Re: [PATCH] platform/chrome: lightbar: Get drvdata from parent in suspend/resume

2019-06-27 Thread Gwendal Grignou
Reviewed-by: Gwendal Grignou On Thu, Jun 27, 2019 at 2:47 PM Rajat Jain wrote: > > The lightbar driver never assigned the drvdata in probe method, and > thus there is nothing there. Need to get the ec_dev from the parent's > drvdata. > > Signed-off-by: Rajat Jain > --- > drivers/platform/chro

[PATCH] platform/chrome: lightbar: Get drvdata from parent in suspend/resume

2019-06-27 Thread Rajat Jain
The lightbar driver never assigned the drvdata in probe method, and thus there is nothing there. Need to get the ec_dev from the parent's drvdata. Signed-off-by: Rajat Jain --- drivers/platform/chrome/cros_ec_lightbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

Re: [PATCH V2] net: ethernet: ti: cpsw: Fix suspend/resume break

2019-06-25 Thread keerthy
ve but the suspend/resume functions are still left with struct net_device *ndev. Hence fix both suspend & resume also to fetch the updated driver data. Fixes: bfe59032bd6127ee1 ("net: ethernet: ti: cpsw: use cpsw as drv data") Signed-off-by: Keerthy Applied but please make it clear tha

Re: [PATCH V2] net: ethernet: ti: cpsw: Fix suspend/resume break

2019-06-24 Thread David Miller
From: Keerthy Date: Mon, 24 Jun 2019 10:46:19 +0530 > Commit bfe59032bd6127ee190edb30be9381a01765b958 ("net: ethernet: > ti: cpsw: use cpsw as drv data")changes > the driver data to struct cpsw_common *cpsw. This is done > only in probe/remove but the suspend/resume func

[PATCH V2] net: ethernet: ti: cpsw: Fix suspend/resume break

2019-06-23 Thread Keerthy
Commit bfe59032bd6127ee190edb30be9381a01765b958 ("net: ethernet: ti: cpsw: use cpsw as drv data")changes the driver data to struct cpsw_common *cpsw. This is done only in probe/remove but the suspend/resume functions are still left with struct net_device *ndev. Hence fix both suspend &am

[PATCH V4 09/18] clk: tegra: add suspend resume support for DFLL

2019-06-23 Thread Sowjanya Komatineni
This patch creates APIs for supporting Tegra210 clock driver to perform DFLL suspend and resume operation. During suspend, DFLL mode is saved and on resume Tegra210 clock driver invokes DFLL resume API to re-initialize DFLL to enable target device clock in open loop mode or closed loop mode. Acke

Re: [PATCH] net: ethernet: ti: cpsw: Fix suspend/resume break

2019-06-23 Thread Ivan Khoronzhuk
On Sat, Jun 22, 2019 at 04:01:40PM +0530, Keerthy wrote: Hi Keerty, Commit bfe59032bd6127ee190edb30be9381a01765b958 ("net: ethernet: ti: cpsw: use cpsw as drv data")changes the driver data to struct cpsw_common *cpsw. This is done only in probe/remove but the suspend/resume functions

[PATCH] net: ethernet: ti: cpsw: Fix suspend/resume break

2019-06-22 Thread Keerthy
Commit bfe59032bd6127ee190edb30be9381a01765b958 ("net: ethernet: ti: cpsw: use cpsw as drv data")changes the driver data to struct cpsw_common *cpsw. This is done only in probe/remove but the suspend/resume functions are still left with struct net_device *ndev. Hence fix both suspend &am

Re: [PATCH V3 10/17] clk: tegra: add suspend resume support for DFLL

2019-06-18 Thread Thierry Reding
On Tue, Jun 18, 2019 at 12:46:24AM -0700, Sowjanya Komatineni wrote: > This patch creates APIs for supporting Tegra210 clock driver to > perform DFLL suspend and resume operation. > > During suspend, DFLL mode is saved and on resume Tegra210 clock driver > invokes DFLL resume API to re-initialize

<    1   2   3   4   5   6   7   8   9   10   >