[PATCH 5.0 51/52] ALSA: hda - Record the current power state before suspend/resume calls

2019-03-26 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 98081ca62cbac31fb0f7efaf90b2e7384ce22257 upstream. Currently we deal with single codec and suspend codec callbacks for all S3, S4 and runtime PM handling. But it turned

[PATCH 4.19 43/45] ALSA: hda - Record the current power state before suspend/resume calls

2019-03-26 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 98081ca62cbac31fb0f7efaf90b2e7384ce22257 upstream. Currently we deal with single codec and suspend codec callbacks for all S3, S4 and runtime PM handling. But it turned

[PATCH 4.9 17/30] ALSA: hda - Record the current power state before suspend/resume calls

2019-03-26 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 98081ca62cbac31fb0f7efaf90b2e7384ce22257 upstream. Currently we deal with single codec and suspend codec callbacks for all S3, S4 and runtime PM handling. But it turned

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Guenter Roeck
often recently that I somehow thought it was common and started using it myself. Guenter > > Overall the implementation does seem a bit suspicious to me. I don't really > > understand why the platform driver handles suspend/resume for the cards. > > But that may just be my lack

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Mark Brown
n't think there is a UAF involved - I built the > test image with KASAN enabled and it did not barf at me. What is a "UAF"? > Overall the implementation does seem a bit suspicious to me. I don't really > understand why the platform driver handles suspend/resume for the cards. >

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Mark Brown
On Mon, Mar 25, 2019 at 09:18:04AM -0400, Pierre-Louis Bossart wrote: > On 3/25/19 8:12 AM, Mark Brown wrote: > > These are driver specific issues not device model issues as far as I can > > see? The issue fixed by this as is that you're storing a pointer in the > > ASoC level (not device model

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Guenter Roeck
me memory or reference count leak. But that would be a different problem. Overall the implementation does seem a bit suspicious to me. I don't really understand why the platform driver handles suspend/resume for the cards. But that may just be my lack of understanding. However, either case, I think the Haswe

[PATCH v2 1/2] pinctrl: pinctrl-imx: Add suspend/resume for LPSR

2019-03-25 Thread Abel Vesa
From: Robin Gong To support pinctl hog restore after LPSR resume back, add suspend/resume in pinctrl driver. Signed-off-by: Robin Gong Signed-off-by: Abel Vesa --- Changes since v1: * fixed Robin's email drivers/pinctrl/freescale/pinctrl-imx.c | 20 drivers/pinctrl

Re: [PATCH 1/2] pinctrl: pinctrl-imx: Add suspend/resume for LPSR

2019-03-25 Thread Daniel Baluta
On Mon, Mar 25, 2019 at 3:49 PM Abel Vesa wrote: > > From: Robin Gong Please fix Robin's email.

[PATCH 1/2] pinctrl: pinctrl-imx: Add suspend/resume for LPSR

2019-03-25 Thread Abel Vesa
From: Robin Gong To support pinctl hog restore after LPSR resume back, add suspend/resume in pinctrl driver. Signed-off-by: Robin Gong Signed-off-by: Abel Vesa --- drivers/pinctrl/freescale/pinctrl-imx.c | 20 drivers/pinctrl/freescale/pinctrl-imx.h | 3 +++ 2 files

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Pierre-Louis Bossart
On 3/25/19 8:12 AM, Mark Brown wrote: On Sat, Mar 23, 2019 at 09:55:46AM -0400, Pierre-Louis Bossart wrote: I'd like to highlight that there is a fundamental flaw in the way the machine drivers are handled. Since we don't have a hook for the machine driver in the BIOS, the DSP driver creates a

Applied "ASoC: intel: Fix crash at suspend/resume after failed codec registration" to the asoc tree

2019-03-25 Thread Mark Brown
The patch ASoC: intel: Fix crash at suspend/resume after failed codec registration has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Mark Brown
On Sat, Mar 23, 2019 at 09:55:46AM -0400, Pierre-Louis Bossart wrote: > I'd like to highlight that there is a fundamental flaw in the way the > machine drivers are handled. Since we don't have a hook for the machine > driver in the BIOS, the DSP driver creates a platform_device which will >

Re: [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-25 Thread Mark Brown
On Fri, Mar 22, 2019 at 03:39:48PM -0700, Guenter Roeck wrote: > general protection fault: [#1] PREEMPT SMP KASAN PTI > CPU: 1 PID: 2811 Comm: cat Tainted: GW 4.19.30 #15 > Hardware name: GOOGLE Clapper, BIOS Google_Clapper.5216.199.7 08/22/2014 > RIP:

Re: [alsa-devel] [PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-23 Thread Pierre-Louis Bossart
On 3/22/19 6:39 PM, Guenter Roeck wrote: If codec registration fails after the ASoC Intel SST driver has been probed, the kernel will Oops and crash at suspend/resume. general protection fault: [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 2811 Comm: cat Tainted: GW 4.19.30 #15

[PATCH] ASoC: intel: Fix crash at suspend/resume after failed codec registration

2019-03-22 Thread Guenter Roeck
If codec registration fails after the ASoC Intel SST driver has been probed, the kernel will Oops and crash at suspend/resume. general protection fault: [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 2811 Comm: cat Tainted: GW 4.19.30 #15 Hardware name: GOOGLE Clapper, BIOS

[BACKPORT 4.4.y 13/25] extcon: usb-gpio: Don't miss event during suspend/resume

2019-03-22 Thread Arnd Bergmann
From: Roger Quadros Pin state might have changed during suspend/resume while our interrupts were disabled and if device doesn't support wakeup. Scan for change during resume for such case. Signed-off-by: Roger Quadros Signed-off-by: Chanwoo Choi (cherry picked from commit

Re: [PATCH] rtc: cros-ec: Fail suspend/resume if wake IRQ can't be configured

2019-03-20 Thread Alexandre Belloni
continue suspending the > system and then another suspend callback fails the suspend process and > "unwinds" the previously suspended drivers by calling their resume > callbacks. When we get back to resuming this RTC driver, we'll call > disable_irq_wake() on an IRQ that hasn't been config

[PATCH v10 7/7] ARM: tegra: Add firmware calls required for suspend-resume on Tegra30

2019-03-17 Thread Dmitry Osipenko
In order to suspend-resume CPU with Trusted Foundations firmware being present on Tegra30, the LP1/LP2 boot vectors and CPU caches need to be set up using the firmware calls and then suspend code shall avoid re-disabling parts that were disabled by the firmware. Tested-by: Robert Yang Tested

[PATCH 2/3] habanalabs: prevent host crash during suspend/resume

2019-03-16 Thread Oded Gabbay
This patch fixes the implementation of suspend/resume of the device so that upon resume of the device, the host won't crash due to PCI completion timeout. Upon suspend, the device is being reset due to PERST. Therefore, upon resume, the driver must initialize the PCI controller as if the driver

Re: [PATCH] rtc: cros-ec: Fail suspend/resume if wake IRQ can't be configured

2019-03-15 Thread Benson Leung
Q that hasn't been configured for wake. > > Let's just fail suspend/resume here if we can't configure the system to > wake and the user has chosen to wakeup with this device. This fixes this > warning and makes the code more robust in case there are systems out > there that can

[PATCH] rtc: cros-ec: Fail suspend/resume if wake IRQ can't be configured

2019-03-15 Thread Stephen Boyd
winds" the previously suspended drivers by calling their resume callbacks. When we get back to resuming this RTC driver, we'll call disable_irq_wake() on an IRQ that hasn't been configured for wake. Let's just fail suspend/resume here if we can't configure the system to wake and the user has chosen

Applied "spi: spi-mem: stm32-qspi: add suspend/resume support" to the spi tree

2019-03-15 Thread Mark Brown
The patch spi: spi-mem: stm32-qspi: add suspend/resume support has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours

Re: [Patch 1/1] drm/atomic: integrate private objects with suspend/resume helpers

2019-03-14 Thread Benoit Parrot
Ville Syrjälä wrote on Thu [2019-Mar-14 17:31:29 +0200]: > On Thu, Mar 14, 2019 at 08:44:45AM -0500, Benoit Parrot wrote: > > During a suspend cycle the atomic state is saved to be used during the > > restore cycle. > > > > However the current state duplication logic does not duplicate private

RE: [PATCH] mailbox: imx: keep MU irq working during suspend/resume

2019-03-11 Thread Anson Huang
.kernel.org; linux-arm-ker...@lists.infradead.org > Cc: dl-linux-imx > Subject: [PATCH] mailbox: imx: keep MU irq working during suspend/resume > > During noirq suspend phase, mailbox MU irq will be masked but many > drivers still need to communicate with system controller

[PATCH 2/2] spi: spi-mem: stm32-qspi: add suspend/resume support

2019-03-08 Thread Ludovic Barre
From: Ludovic Barre This patch adds suspend and resume support for spi-stm32-qspi drivers. Signed-off-by: Ludovic Barre --- drivers/spi/spi-stm32-qspi.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-stm32-qspi.c

Re: [PATCH net-next v2 0/3] net: phy: marvell10g: implement suspend/resume callbacks

2019-03-04 Thread David Miller
From: Antoine Tenart Date: Fri, 1 Mar 2019 12:00:44 +0100 > This series implements the suspend/resume callbacks in the marvell10g > PHY driver: > > - When the PHY isn't used, it is set in low power mode. > - At boot time we might now know the PHY status (as it's depending on &

[PATCH v9 7/7] ARM: tegra: Add firmware calls required for suspend-resume on Tegra30

2019-03-03 Thread Dmitry Osipenko
In order to suspend-resume CPU with Trusted Foundations firmware being present on Tegra30, the LP1/LP2 boot vectors and CPU caches need to be set up using the firmware calls and then suspend code shall avoid re-disabling parts that were disabled by the firmware. Tested-by: Robert Yang Tested

Re: [PATCH net-next v2 1/3] net: phy: marvell10g: implement suspend/resume callbacks

2019-03-01 Thread Andrew Lunn
On Fri, Mar 01, 2019 at 12:00:45PM +0100, Antoine Tenart wrote: > This patch adds the suspend/resume callbacks for Marvell 10G PHYs. The > three PCS (base-t, base-r and 1000base-x) are set in low power (the PCS > are powered down) when the PHY isn't used. > > Signed-off-by:

Re: [PATCH net-next v2 2/3] net: phy: marvell10g: add the suspend/resume callbacks for the 88x2210

2019-03-01 Thread Andrew Lunn
On Fri, Mar 01, 2019 at 12:00:46PM +0100, Antoine Tenart wrote: > When the 88x2110 PHY support was added, the suspend and resume callbacks > were forgotten. This patch adds them to the 88x2110 PHY callback > definition. > > Signed-off-by: Antoine Tenart Reviewed-by: Andrew Lunn Andrew

[PATCH net-next v2 1/3] net: phy: marvell10g: implement suspend/resume callbacks

2019-03-01 Thread Antoine Tenart
This patch adds the suspend/resume callbacks for Marvell 10G PHYs. The three PCS (base-t, base-r and 1000base-x) are set in low power (the PCS are powered down) when the PHY isn't used. Signed-off-by: Antoine Tenart --- drivers/net/phy/marvell10g.c | 14 ++ 1 file changed, 14

[PATCH net-next v2 2/3] net: phy: marvell10g: add the suspend/resume callbacks for the 88x2210

2019-03-01 Thread Antoine Tenart
When the 88x2110 PHY support was added, the suspend and resume callbacks were forgotten. This patch adds them to the 88x2110 PHY callback definition. Signed-off-by: Antoine Tenart --- drivers/net/phy/marvell10g.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/marvell10g.c

[PATCH net-next v2 0/3] net: phy: marvell10g: implement suspend/resume callbacks

2019-03-01 Thread Antoine Tenart
Hello, This series implements the suspend/resume callbacks in the marvell10g PHY driver: - When the PHY isn't used, it is set in low power mode. - At boot time we might now know the PHY status (as it's depending on the hardware configuration, or on what the previous stages configured

[PATCH v3 4/4] net: macb: Add support for suspend/resume with full power down

2019-03-01 Thread Harini Katakam
When macb device is suspended and system is powered down, the clocks are removed and hence macb should be closed gracefully and restored upon resume. This patch does the same by switching off the net device, suspending phy and performing necessary cleanup of interrupts and BDs. Upon resume, all

[PATCH v8 7/7] ARM: tegra: Add firmware calls required for suspend-resume on Tegra30

2019-02-28 Thread Dmitry Osipenko
In order to suspend-resume CPU with Trusted Foundations firmware being present on Tegra30, the LP1/LP2 boot vectors and CPU caches need to be set up using the firmware calls and then suspend code shall avoid re-disabling parts that were disabled by the firmware. Tested-by: Robert Yang Tested

[PATCH net-next 0/3] net: phy: marvell10g: implement suspend/resume callbacks

2019-02-28 Thread Antoine Tenart
Hello, This series implements the suspend/resume callbacks in the marvell10g PHY driver: - When the PHY isn't used, it is set in low power mode. - At boot time we might now know the PHY status (as it's depending on the hardware configuration, or on what the previous stages configured

[PATCH net-next 1/3] net: phy: marvell10g: implement suspend/resume callbacks

2019-02-28 Thread Antoine Tenart
This patch adds the suspend/resume callbacks for Marvell 10G PHYs. The three PCS (base-t, base-r and 1000base-x) are set in low power (the PCS are powered down) when the PHY isn't used. Signed-off-by: Antoine Tenart --- drivers/net/phy/marvell10g.c | 24 1 file changed

[PATCH net-next 2/3] net: phy: marvell10g: add the suspend/resume callbacks for the 88x2210

2019-02-28 Thread Antoine Tenart
When the 88x2110 PHY support was added, the suspend and resume callbacks were forgotten. This patch adds them to the 88x2110 PHY callback definition. Signed-off-by: Antoine Tenart --- drivers/net/phy/marvell10g.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/marvell10g.c

[PATCH v7 7/7] ARM: tegra: Add firmware calls required for suspend-resume on Tegra30

2019-02-28 Thread Dmitry Osipenko
In order to suspend-resume CPU with Trusted Foundations firmware being present on Tegra30, the LP1/LP2 boot vectors and CPU caches need to be set up using the firmware calls and then suspend code shall avoid re-disabling parts that were disabled by the firmware. Tested-by: Robert Yang Tested

[PATCH 4.20 005/183] mt76x0u: fix suspend/resume

2019-02-25 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka commit d04ca383860bef90a0dab4eb397907f7f05e839e upstream. We need to reset MCU and do other initializations on resume otherwise MT7610U device will fail to initialize, what

[PATCH v6 7/7] ARM: tegra: Add firmware calls required for suspend-resume on Tegra30

2019-02-22 Thread Dmitry Osipenko
In order to suspend-resume CPU with Trusted Foundations firmware being present on Tegra30, the LP1/LP2 boot vectors and CPU caches need to be set up using the firmware calls and then suspend code shall avoid re-disabling parts that were disabled by the firmware. Signed-off-by: Dmitry Osipenko

Re: [PATCH v5 8/8] ARM: tegra: Add firmware calls required for suspend-resume

2019-02-22 Thread Dmitry Osipenko
22.02.2019 20:59, Dmitry Osipenko пишет: > In order to resume CPU from suspend via trusted Foundations firmware, > the LP1/LP2 boot vectors and CPU caches need to be set up using the > firmware calls. > > Signed-off-by: Dmitry Osipenko > --- > arch/arm/mach-tegra/pm.c| 53

[PATCH v5 8/8] ARM: tegra: Add firmware calls required for suspend-resume

2019-02-22 Thread Dmitry Osipenko
In order to resume CPU from suspend via trusted Foundations firmware, the LP1/LP2 boot vectors and CPU caches need to be set up using the firmware calls. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/pm.c| 53 ++---

Re: recalibrating x86 TSC during suspend/resume

2019-02-22 Thread Olaf Hering
On Fri, Feb 22, Paolo Bonzini wrote: > On 22/02/19 12:44, Thomas Gleixner wrote: > >> The specific usecase I have is a workload within VMs that makes heavy > >> use of TSC. The kernel is booted with 'clocksource=tsc highres=off > >> nohz=off' > >> because only this clocksource gives enough

Re: [PATCH 7/7] iommu/ipmmu-vmsa: Add suspend/resume support

2019-02-22 Thread Robin Murphy
a bulk save/restore of all registers during system suspend/resume. drivers/iommu/ipmmu-vmsa.c | 52 +- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 92a766dd8b459f0c

Re: recalibrating x86 TSC during suspend/resume

2019-02-22 Thread Paolo Bonzini
On 22/02/19 12:44, Thomas Gleixner wrote: >> The specific usecase I have is a workload within VMs that makes heavy >> use of TSC. The kernel is booted with 'clocksource=tsc highres=off nohz=off' >> because only this clocksource gives enough granularity. The default >> paravirtualized clock will

Re: recalibrating x86 TSC during suspend/resume

2019-02-22 Thread Olaf Hering
Am Fri, 22 Feb 2019 12:44:39 +0100 (CET) schrieb Thomas Gleixner : > Whether that is accurate enough or not to make NTP happy, I can't tell, but > it's definitely worth a try. Thanks Thomas, I will look into the suggestions. Olaf pgpKvKEGb9vSF.pgp Description: Digitale Signatur von OpenPGP

Re: recalibrating x86 TSC during suspend/resume

2019-02-22 Thread Thomas Gleixner
On Fri, 22 Feb 2019, Olaf Hering wrote: > Is there a way to recalibrate the x86 TSC during a suspend/resume cycle? No. > While the frequency will remain the same on a Laptop, it may (or rather: > it definitly will) differ if a VM is migrated from one host to another. > The hyperviso

recalibrating x86 TSC during suspend/resume

2019-02-22 Thread Olaf Hering
Is there a way to recalibrate the x86 TSC during a suspend/resume cycle? While the frequency will remain the same on a Laptop, it may (or rather: it definitly will) differ if a VM is migrated from one host to another. The hypervisor may choose to emulate the expected TSC frequency

Re: [PATCH 7/7] iommu/ipmmu-vmsa: Add suspend/resume support

2019-02-20 Thread Geert Uytterhoeven
p;& CONFIG_ARM_PSCI_FW */ > > >> + > > >> static struct platform_driver ipmmu_driver = { > > >> .driver = { > > >> .name = "ipmmu-vmsa", > > >> .of_match_table = of_match_ptr(ipmmu_of_ids), >

Re: [PATCH 7/7] iommu/ipmmu-vmsa: Add suspend/resume support

2019-02-20 Thread Laurent Pinchart
; >> This patch takes a different approach than the BSP, which implements a > >> bulk save/restore of all registers during system suspend/resume. > > > > I like this approach better too. > > Thanks ;-) > > >> --- a/drivers/iommu/ipmmu-vmsa.c &

Re: [PATCH 7/7] iommu/ipmmu-vmsa: Add suspend/resume support

2019-02-20 Thread Geert Uytterhoeven
> > build time dependency on sleep and PSCI support, and a runtime > > dependency on PSCI. > > > > Signed-off-by: Geert Uytterhoeven > > --- > > This patch takes a different approach than the BSP, which implements a > > bulk save/restore of all registers duri

Re: [PATCH 7/7] iommu/ipmmu-vmsa: Add suspend/resume support

2019-02-20 Thread Laurent Pinchart
dency on PSCI. > > Signed-off-by: Geert Uytterhoeven > --- > This patch takes a different approach than the BSP, which implements a > bulk save/restore of all registers during system suspend/resume. I like this approach better too. > drivers/iommu/ipmmu-vmsa.c | 52

[PATCH 7/7] iommu/ipmmu-vmsa: Add suspend/resume support

2019-02-20 Thread Geert Uytterhoeven
registers during system suspend/resume. drivers/iommu/ipmmu-vmsa.c | 52 +- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 92a766dd8b459f0c..5d22139914e8f033 100644 --- a/drivers/iommu/ipmmu

[PATCH 0/7] iommu/ipmmu-vmsa: Suspend/resume support and assorted cleanups

2019-02-20 Thread Geert Uytterhoeven
Hi Jörg, Magnus, On R-Car Gen3 systems with PSCI, PSCI may power down the SoC during system suspend, thus losing all IOMMU state. Hence after s2ram, devices behind an IPMMU (e.g. SATA), and configured to use it, will fail to complete their I/O operations. This patch series adds suspend

[PATCH 0/3] usb: gadget: atmel: support USB suspend/resume

2019-02-20 Thread Jonas Bonn
This patch series hooks up proper support for USB suspend and resume to the Atmel UDC. Jonas Bonn (3): usb: gadget: atmel_usba_udc: simplify setting of interrupt-enabled mask usb: gadget: atmel: support USB suspend usb: gadget: atmel: tie wake lock to running clock

[PATCH 4.19 50/85] gpio: mxc: move gpio noirq suspend/resume to syscore phase

2019-02-18 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- commit 1a5287a3dbc34cd0c02c8f64c9131bd23cdfe2bb upstream. During noirq suspend/resume phase, GPIO irq could arrive and its registers like IMR will be changed by irq handle process, to make the GPIO

[PATCH 4.20 49/92] gpio: mxc: move gpio noirq suspend/resume to syscore phase

2019-02-18 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- commit 1a5287a3dbc34cd0c02c8f64c9131bd23cdfe2bb upstream. During noirq suspend/resume phase, GPIO irq could arrive and its registers like IMR will be changed by irq handle process, to make the GPIO

[PATCH v4 8/8] ARM: tegra: Add firmware calls required for suspend-resume

2019-02-17 Thread Dmitry Osipenko
In order to resume CPU from suspend via trusted Foundations firmware, the LP1/LP2 boot vectors shall be specified using the firmware calls. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/pm.c| 14 ++ arch/arm/mach-tegra/reset-handler.S | 26

Re: [PATCH 2/4] PM / devfreq: Handle monitor suspend/resume in the devfreq core

2019-02-14 Thread Matthias Kaehlcke
E events. Since the devfreq > > core itself generates these events and invokes the governor's event > > handler the suspend/resume of the load monitoring can be done in the > > common code. > > > > Call devfreq_monitor_suspend/resume() when the governor reports a > &g

Re: [PATCH 2/4] PM / devfreq: Handle monitor suspend/resume in the devfreq core

2019-02-14 Thread Chanwoo Choi
Hi Matthias, 2019년 2월 14일 (목) 오후 7:16, Matthias Kaehlcke 님이 작성: > > devfreq expects governors to call devfreq_monitor_suspend/resume() > in response to DEVFREQ_GOV_SUSPEND/RESUME events. Since the devfreq > core itself generates these events and invokes the governor's event > hand

[PATCH 2/4] PM / devfreq: Handle monitor suspend/resume in the devfreq core

2019-02-13 Thread Matthias Kaehlcke
devfreq expects governors to call devfreq_monitor_suspend/resume() in response to DEVFREQ_GOV_SUSPEND/RESUME events. Since the devfreq core itself generates these events and invokes the governor's event handler the suspend/resume of the load monitoring can be done in the common code. Call

Re: [PATCH v1 2/2] PCI/ASPM: Save LTR Capability for suspend/resume

2019-02-13 Thread Bjorn Helgaas
On Wed, Feb 13, 2019 at 10:53:01AM +0530, Vidya Sagar wrote: > On 2/12/2019 4:25 AM, Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > Latency Tolerance Reporting (LTR) allows Endpoints and Switch Upstream > > Ports to report their latency requirements to upstream components. If ASPM > > L1

Re: [PATCH v1 2/2] PCI/ASPM: Save LTR Capability for suspend/resume

2019-02-12 Thread Vidya Sagar
On 2/12/2019 4:25 AM, Bjorn Helgaas wrote: From: Bjorn Helgaas Latency Tolerance Reporting (LTR) allows Endpoints and Switch Upstream Ports to report their latency requirements to upstream components. If ASPM L1 PM substates are enabled, the LTR information helps determine when a Link

[PATCH] mailbox: imx: keep MU irq working during suspend/resume

2019-02-12 Thread Anson Huang
is NOT working as GIC driver does NOT have .irq_set_wake implemented, so to support suspend/resume, just make imx mailbox driver NOT suspend, since MU is always a wakeup source on i.MX platforms with system controller inside, and its power/clock is maintained by system controller, mailbox driver no need

[PATCH v1 2/2] PCI/ASPM: Save LTR Capability for suspend/resume

2019-02-11 Thread Bjorn Helgaas
From: Bjorn Helgaas Latency Tolerance Reporting (LTR) allows Endpoints and Switch Upstream Ports to report their latency requirements to upstream components. If ASPM L1 PM substates are enabled, the LTR information helps determine when a Link enters L1.2 [1]. Software must set the maximum

PCI LTR - ASPM handling upon suspend / resume cycle. Regression since 4.18

2019-01-28 Thread Grumbach, Emmanuel
Hi, Lately we (Intel) have got a few bugs on suspend / resume. The complaint is that our device becomes unavailable after suspend / resume cycle. The bug on which we have most data is [1]. The original submitter reported a regression since commit 9ab105deb60fa76d66cae5548819b4e8703d2056: PCI

Re: [PATCH v2 0/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-22 Thread Ching Huang
On Tue, 2019-01-22 at 21:41 -0500, Martin K. Petersen wrote: > Ching, > > > This patch series are against to mkp's 5.1/scsi-queue. > > Applied to 5.1/scsi-queue. Thank you. > > PS. Your file permissions are odd. I always have to change your diffs > from 755 to 644 before applying. > Thanks

Re: [PATCH v2 0/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-22 Thread Martin K. Petersen
Ching, > This patch series are against to mkp's 5.1/scsi-queue. Applied to 5.1/scsi-queue. Thank you. PS. Your file permissions are odd. I always have to change your diffs from 755 to 644 before applying. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-22 Thread Miquel Raynal
> > At this point, you should be able to pass traffic between lan1 and > lan2. > > bridge fdb add 00:42:42:42:42:42 lan1 > bridge fdb add 00:24:24:24:24:24 lan2 > > That adds two static forwarding database entries. You can show these using > > bridge fdb show >

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-22 Thread Andrew Lunn
bridge fdb show There are likely to be additional dynamic FDB entries. It is O.K. to loose the dynamic entries over a suspend/resume cycle, but the static ones must remain. > This looks pretty similar. Maybe the ports setup are set to default > values while I should save some parameter

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-22 Thread Miquel Raynal
atches (adding port_disable/enable() > > in dsa_slave_suspend/resume()) and keep the driver as-is or do you want > > me to manually call port_disable/enable() from the mv88e6xxx driver? > > Up to you guys, the only thing that I an tell you is that my platform > loses its regi

Re: [PATCH 2/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-22 Thread Ching Huang
2019-01-17 at 10:59 +0300, Dan Carpenter wrote: > > > > > On Thu, Jan 17, 2019 at 11:45:03AM +0800, Ching Huang wrote: > > > > > > >From Ching Huang > > > > > > > > > > > > Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2. &

Re: [PATCH 2/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-21 Thread Dan Carpenter
n 17, 2019 at 11:45:03AM +0800, Ching Huang wrote: > > > > > >From Ching Huang > > > > > > > > > > Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2. > > > > > > > > > > > > > What does this look like from a user

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Sai Prakash Ranjan
On 1/18/2019 9:23 AM, Guenter Roeck wrote: On 1/17/19 6:58 PM, Sai Prakash Ranjan wrote: On 1/17/2019 11:46 PM, Guenter Roeck wrote: On Thu, Jan 17, 2019 at 08:49:42PM +0530, Sai Prakash Ranjan wrote: This adds the support for qcom watchdog suspend and resume when entering and exiting deep

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Guenter Roeck
On 1/17/19 6:58 PM, Sai Prakash Ranjan wrote: On 1/17/2019 11:46 PM, Guenter Roeck wrote: On Thu, Jan 17, 2019 at 08:49:42PM +0530, Sai Prakash Ranjan wrote: This adds the support for qcom watchdog suspend and resume when entering and exiting deep sleep states. Otherwise having watchdog active

[PATCH v2 2/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-17 Thread Ching Huang
>From Ching Huang For ACB_ADAPTER_TYPE_B controller, the read/write after hibernate and resume may got 'isr get an illegal ccb command' in log/messages sometimes. This patch fix it. Signed-off-by: Ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Sai Prakash Ranjan
On 1/17/2019 11:46 PM, Guenter Roeck wrote: On Thu, Jan 17, 2019 at 08:49:42PM +0530, Sai Prakash Ranjan wrote: This adds the support for qcom watchdog suspend and resume when entering and exiting deep sleep states. Otherwise having watchdog active after suspend would result in unwanted

[PATCH v2 0/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-17 Thread Ching Huang
This patch series are against to mkp's 5.1/scsi-queue. 1. Due to dma_zalloc_coherent will be phase out, so use dma_alloc_coherent instead. 2. For ACB_ADAPTER_TYPE_B controller, the read/write after hibernate and resume may got 'isr get an illegal ccb command' in log/messages sometimes. This

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Guenter Roeck
> > > + > > > > + return 0; > > > > +} > > > > > > This looks fairly generic. For example, the Mediatek driver also stops > > > and starts (but also pings after starting). Grepping for 'active' in > > > drivers/watchdog/ finds more examples

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Jerry Hoemann
ctive' in > > drivers/watchdog/ finds more examples. Could there be some functions in > > watchdog core that do the common things like watchdog_stop() and > > watchdog_start() and watchdog_start_and_ping()? Or maybe a bit can be > > set during registration so that the 'str

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Guenter Roeck
stops > and starts (but also pings after starting). Grepping for 'active' in > drivers/watchdog/ finds more examples. Could there be some functions in > watchdog core that do the common things like watchdog_stop() and > watchdog_start() and watchdog_start_and_ping()? Or maybe a bit can b

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-17 Thread Vivien Didelot
a_slave_suspend/resume()) and keep the driver as-is or do you want > > me to manually call port_disable/enable() from the mv88e6xxx driver? > > Up to you guys, the only thing that I an tell you is that my platform > loses its register contents during suspend/resume, therefore yo

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Stephen Boyd
chdog_start() and watchdog_start_and_ping()? Or maybe a bit can be set during registration so that the 'struct class watchdog_class' can get PM ops to stop and start on suspend/resume of the watchdog character device? Nothing is wrong with the patch, I'm just bemoaning the amount of code duplication here.

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Guenter Roeck
On Thu, Jan 17, 2019 at 08:49:42PM +0530, Sai Prakash Ranjan wrote: > This adds the support for qcom watchdog suspend and resume > when entering and exiting deep sleep states. Otherwise > having watchdog active after suspend would result in unwanted > crashes/resets if resume happens after a long

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-17 Thread Florian Fainelli
ally could be >>> in the core. >> >> Indeed that is! > > So, shall I wait for Vivien's patches (adding port_disable/enable() > in dsa_slave_suspend/resume()) and keep the driver as-is or do you want > me to manually call port_disable/enable() from the mv88e6xxx driver? U

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-17 Thread Miquel Raynal
Hi Andrew, Vivien, Vivien Didelot wrote on Thu, 17 Jan 2019 10:46:41 -0500: > Hi, > > On Wed, 16 Jan 2019 23:23:29 +0100, Andrew Lunn wrote: > > Hi Florian > > > > > A possible approach could be to call the port_disable, port_enable > > > callbacks from dsa_slave_suspend() and

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-17 Thread Vivien Didelot
Hi, On Wed, 16 Jan 2019 23:23:29 +0100, Andrew Lunn wrote: > Hi Florian > > > A possible approach could be to call the port_disable, port_enable > > callbacks from dsa_slave_suspend() and dsa_slave_resume(), I might have > > some patches doing that already somewhere. > > I expect it is also on

Re: [PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Sai Prakash Ranjan
On 1/17/2019 8:49 PM, Sai Prakash Ranjan wrote: This adds the support for qcom watchdog suspend and resume when entering and exiting deep sleep states. Otherwise having watchdog active after suspend would result in unwanted crashes/resets if resume happens after a long time. Signed-off-by: Sai

[PATCHv2] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Sai Prakash Ranjan
This adds the support for qcom watchdog suspend and resume when entering and exiting deep sleep states. Otherwise having watchdog active after suspend would result in unwanted crashes/resets if resume happens after a long time. Signed-off-by: Sai Prakash Ranjan --- v2: * Use __maybe_unused

Re: [PATCH] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Sai Prakash Ranjan
Hi Guenter, On 1/17/2019 8:00 PM, Guenter Roeck wrote: I personally very much prefer __maybe_unused over #ifdef, for the reasons stated above. Other maintainers may think differently. Thanks for making your preference clear. I will post the second version soon with the changes. - Sai --

Re: [PATCH] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Guenter Roeck
config is disabled? We could just discard it. We would just It is beneficial to know that a future change in the conditional code, or an infrastructure change affecting it, doesn't cause a build error, even if the person submitting the change didn't bother compiling with PM_SLEEP=y. > increase the b

Re: [PATCH] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Sai Prakash Ranjan
build time with this attribute (although for this case it would be negligible but say we compile with PM_SLEEP disabled for all those suspend/resume functions with maybe_unused attribute). Looking at previous discussions in LKML[1] as to why the pm suspend/resume functions used __maybe_unu

Re: [PATCH] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Brian Masney
On Thu, Jan 17, 2019 at 04:08:52PM +0530, Sai Prakash Ranjan wrote: > On 1/17/2019 3:01 PM, Brian Masney wrote: > > > > You can use the __maybe_unused attribute to remove the #ifdef: > > > > static int __maybe_unused qcom_wdt_suspend(struct device *dev) > > > > Thanks for looking into this. >

Re: [PATCH] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Sai Prakash Ranjan
Hi Brian, On 1/17/2019 3:01 PM, Brian Masney wrote: You can use the __maybe_unused attribute to remove the #ifdef: static int __maybe_unused qcom_wdt_suspend(struct device *dev) Thanks for looking into this. As for __maybe_unused, I think it's better to keep #ifdef rather than this

Re: [PATCH 2/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-17 Thread Ching Huang
Ching Huang > > > > > > > > Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2. > > > > > > > > > > What does this look like from a user perspective? Does it fail every > > > time or does it only fail sometimes? > > > > >

Re: [PATCH] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Brian Masney
On Thu, Jan 17, 2019 at 02:45:55PM +0530, Sai Prakash Ranjan wrote: > +#ifdef CONFIG_PM_SLEEP > +static int qcom_wdt_suspend(struct device *dev) > +{ > + struct qcom_wdt *wdt = dev_get_drvdata(dev); > + > + if (watchdog_active(>wdd)) > + qcom_wdt_stop(>wdd); > + > + return

Re: [PATCH 2/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-17 Thread Dan Carpenter
On Thu, Jan 17, 2019 at 04:47:07PM +0800, Ching Huang wrote: > On Thu, 2019-01-17 at 10:59 +0300, Dan Carpenter wrote: > > On Thu, Jan 17, 2019 at 11:45:03AM +0800, Ching Huang wrote: > > > >From Ching Huang > > > > > > Fix suspend/resume of ACB_ADAPTER_T

[PATCH] watchdog: qcom: Add suspend/resume support

2019-01-17 Thread Sai Prakash Ranjan
This adds the support for qcom watchdog suspend and resume when entering and exiting deep sleep states. Otherwise having watchdog active after suspend would result in unwanted crashes/resets if resume happens after a long time. Signed-off-by: Sai Prakash Ranjan --- drivers/watchdog/qcom-wdt.c |

Re: [PATCH 2/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-17 Thread Ching Huang
On Thu, 2019-01-17 at 10:59 +0300, Dan Carpenter wrote: > On Thu, Jan 17, 2019 at 11:45:03AM +0800, Ching Huang wrote: > > >From Ching Huang > > > > Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2. > > > > What does this look like from a user perspective

<    3   4   5   6   7   8   9   10   11   12   >