Re: [PATCH v6 9/9] ALSA: virtio: introduce device suspend/resume support

2021-03-01 Thread Anton Yakovlev
On 01.03.2021 14:38, Takashi Iwai wrote: On Mon, 01 Mar 2021 11:03:04 +0100, Anton Yakovlev wrote: On 28.02.2021 13:05, Takashi Iwai wrote: On Sat, 27 Feb 2021 09:59:56 +0100, Anton Yakovlev wrote: All running PCM substreams are stopped on device suspend and restarted on device resume. Sign

[PATCH v2 8/8] um: virtio/pci: enable suspend/resume

2021-03-01 Thread Johannes Berg
vices on the DPM list, trying to create dependencies between them, etc. I gave up and instead added UML specific cross-driver API that lets the virt-pci code enable not suspending/resuming VQs for its devices. This then allows the PCI bus suspend_noirq to still talk to the device, and suspend/r

Re: [PATCH v6 9/9] ALSA: virtio: introduce device suspend/resume support

2021-03-01 Thread Takashi Iwai
On Mon, 01 Mar 2021 11:03:04 +0100, Anton Yakovlev wrote: > > On 28.02.2021 13:05, Takashi Iwai wrote: > > On Sat, 27 Feb 2021 09:59:56 +0100, > > Anton Yakovlev wrote: > >> > >> All running PCM substreams are stopped on device suspend and restarted > >> on device resume. > >> > >> Signed-off-by:

Re: [PATCH v6 9/9] ALSA: virtio: introduce device suspend/resume support

2021-03-01 Thread Anton Yakovlev
On 28.02.2021 13:05, Takashi Iwai wrote: On Sat, 27 Feb 2021 09:59:56 +0100, Anton Yakovlev wrote: All running PCM substreams are stopped on device suspend and restarted on device resume. Signed-off-by: Anton Yakovlev --- sound/virtio/virtio_card.c| 56 ++

Re: [PATCH v6 9/9] ALSA: virtio: introduce device suspend/resume support

2021-02-28 Thread Takashi Iwai
On Sat, 27 Feb 2021 09:59:56 +0100, Anton Yakovlev wrote: > > All running PCM substreams are stopped on device suspend and restarted > on device resume. > > Signed-off-by: Anton Yakovlev > --- > sound/virtio/virtio_card.c| 56 +++ > sound/virtio/virtio_pcm.c

[PATCH v6 9/9] ALSA: virtio: introduce device suspend/resume support

2021-02-27 Thread Anton Yakovlev
All running PCM substreams are stopped on device suspend and restarted on device resume. Signed-off-by: Anton Yakovlev --- sound/virtio/virtio_card.c| 56 +++ sound/virtio/virtio_pcm.c | 1 + sound/virtio/virtio_pcm_ops.c | 41 - 3

[PATCH v2 3/3] scsi: ufs: Remove redundant checks of !hba in suspend/resume callbacks

2021-02-23 Thread Can Guo
Runtime and system suspend/resume can only come after hba probe invokes platform_set_drvdata(pdev, hba), meaning hba cannot be NULL in these PM callbacks, so remove the checks of !hba. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 21 - 1 file changed, 21 deletions

[PATCH 7/7] um: virtio/pci: enable suspend/resume

2021-02-23 Thread Johannes Berg
vices on the DPM list, trying to create dependencies between them, etc. I gave up and instead added UML specific cross-driver API that lets the virt-pci code enable not suspending/resuming VQs for its devices. This then allows the PCI bus suspend_noirq to still talk to the device, and suspend/r

[PATCH v5 9/9] ALSA: virtio: introduce device suspend/resume support

2021-02-22 Thread Anton Yakovlev
All running PCM substreams are stopped on device suspend and restarted on device resume. Signed-off-by: Anton Yakovlev --- sound/virtio/virtio_card.c| 57 +++ sound/virtio/virtio_pcm.c | 1 + sound/virtio/virtio_pcm_ops.c | 44 ---

[PATCH v4 9/9] ALSA: virtio: introduce device suspend/resume support

2021-02-21 Thread Anton Yakovlev
All running PCM substreams are stopped on device suspend and restarted on device resume. Signed-off-by: Anton Yakovlev --- sound/virtio/virtio_card.c| 57 +++ sound/virtio/virtio_pcm.c | 1 + sound/virtio/virtio_pcm_ops.c | 44 ---

Re: [PATCH 1/2] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-19 Thread Si-Wei Liu
On 2/17/2021 11:42 AM, Si-Wei Liu wrote: On 2/16/2021 8:20 AM, Eli Cohen wrote: When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of sync.

[PATCH v1] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-18 Thread Eli Cohen
When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of sync. We can avoid this function alltogether since qemu will clear them if required, e.g. whe

Re: [PATCH 1/2] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-18 Thread Eli Cohen
On Wed, Feb 17, 2021 at 04:20:14PM -0500, Michael S. Tsirkin wrote: > On Wed, Feb 17, 2021 at 11:42:48AM -0800, Si-Wei Liu wrote: > > > > > > On 2/16/2021 8:20 AM, Eli Cohen wrote: > > > When we suspend the VM, the VDPA interface will be reset. When the VM is > > > resumed again, clear_virtqueues

RE: [PATCH v4] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-17 Thread Surendrakumar Upadhyay, TejaskumarX
el Vetter > ; open list:DRM DRIVERS de...@lists.freedesktop.org>; open list > Subject: Re: [PATCH v4] drm/i915/gen9bc: Handle TGP PCH during > suspend/resume > > On Wed, 2021-02-17 at 23:18 +0200, Imre Deak wrote: > > On Wed, Feb 17, 2021 at 01:00:16PM -0500, Lyude Paul w

Re: [PATCH 1/2] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-17 Thread Si-Wei Liu
On 2/17/2021 1:20 PM, Michael S. Tsirkin wrote: On Wed, Feb 17, 2021 at 11:42:48AM -0800, Si-Wei Liu wrote: On 2/16/2021 8:20 AM, Eli Cohen wrote: When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used ind

Re: [PATCH 1/2] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-17 Thread Michael S. Tsirkin
On Wed, Feb 17, 2021 at 11:42:48AM -0800, Si-Wei Liu wrote: > > > On 2/16/2021 8:20 AM, Eli Cohen wrote: > > When we suspend the VM, the VDPA interface will be reset. When the VM is > > resumed again, clear_virtqueues() will clear the available and used > > indices resulting in hardware virqtqueu

Re: [PATCH v4] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-17 Thread Lyude Paul
On Wed, 2021-02-17 at 23:18 +0200, Imre Deak wrote: > On Wed, Feb 17, 2021 at 01:00:16PM -0500, Lyude Paul wrote: > > From: Tejas Upadhyay > > > > For Legacy S3 suspend/resume GEN9 BC needs to enable and > > setup TGP PCH. > > > > v2: > > * Move Wa_

Re: [PATCH v4] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-17 Thread Imre Deak
On Wed, Feb 17, 2021 at 01:00:16PM -0500, Lyude Paul wrote: > From: Tejas Upadhyay > > For Legacy S3 suspend/resume GEN9 BC needs to enable and > setup TGP PCH. > > v2: > * Move Wa_14010685332 into it's own function - vsyrjala > * Add TODO comment about fig

Re: [PATCH 1/2] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-17 Thread Si-Wei Liu
On 2/16/2021 8:20 AM, Eli Cohen wrote: When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of sync. We can avoid this function alltogether sinc

[PATCH v4] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-17 Thread Lyude Paul
From: Tejas Upadhyay For Legacy S3 suspend/resume GEN9 BC needs to enable and setup TGP PCH. v2: * Move Wa_14010685332 into it's own function - vsyrjala * Add TODO comment about figuring out if we can move this workaround - imre v3: * Rename cnp_irq_post_reset() to cnp_display_clock_wa()

Re: [PATCH v3 1/2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-17 Thread Imre Deak
On Tue, Feb 16, 2021 at 09:53:36PM -0500, Lyude Paul wrote: > From: Tejas Upadhyay > > For Legacy S3 suspend/resume GEN9 BC needs to enable and > setup TGP PCH. > > v2: > * Move Wa_14010685332 into it's own function - vsyrjala > * Add TODO comment about fig

Re: [Intel-gfx] [PATCH v2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-16 Thread Imre Deak
wrote: > > > From: Tejas Upadhyay > > > > > > For Legacy S3 suspend/resume GEN9 BC needs to enable and > > > setup TGP PCH. > > > > > > v2: > > > * Move Wa_14010685332 into it's own function - vsyrjala > > > * Add TODO comment ab

[PATCH v3 1/2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-16 Thread Lyude Paul
From: Tejas Upadhyay For Legacy S3 suspend/resume GEN9 BC needs to enable and setup TGP PCH. v2: * Move Wa_14010685332 into it's own function - vsyrjala * Add TODO comment about figuring out if we can move this workaround - imre v3: * Rename cnp_irq_post_reset() to cnp_display_clock_wa()

Re: [Intel-gfx] [PATCH v2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-16 Thread Lyude Paul
gt; From: Tejas Upadhyay > > > > > > For Legacy S3 suspend/resume GEN9 BC needs to enable and > > > setup TGP PCH. > > > > > > v2: > > > * Move Wa_14010685332 into it's own function - vsyrjala > > > * Add TODO comment about fi

Re: [Intel-gfx] [PATCH v2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-16 Thread Lyude Paul
On Tue, 2021-02-16 at 20:08 +0200, Imre Deak wrote: > Hi, > > thanks for respinning this patchset, some comments below. > > On Fri, Feb 12, 2021 at 01:50:53PM -0500, Lyude Paul wrote: > > From: Tejas Upadhyay > > > > For Legacy S3 suspend/resume GEN9 BC need

Re: [Intel-gfx] [PATCH v2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-16 Thread Imre Deak
Hi, thanks for respinning this patchset, some comments below. On Fri, Feb 12, 2021 at 01:50:53PM -0500, Lyude Paul wrote: > From: Tejas Upadhyay > > For Legacy S3 suspend/resume GEN9 BC needs to enable and > setup TGP PCH. > > v2: > * Move Wa_14010685332 into it'

[PATCH 1/2] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-16 Thread Eli Cohen
When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of sync. We can avoid this function alltogether since qemu will clear them if required, e.g. whe

[PATCH v2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-12 Thread Lyude Paul
From: Tejas Upadhyay For Legacy S3 suspend/resume GEN9 BC needs to enable and setup TGP PCH. v2: * Move Wa_14010685332 into it's own function - vsyrjala * Add TODO comment about figuring out if we can move this workaround - imre Cc: Matt Roper Signed-off-by: Tejas Upadhyay Signed-o

[PATCH 3/3] power: supply: s3c_adc_battery: remove unused pdata in suspend/resume

2021-02-10 Thread Krzysztof Kozlowski
The "pdata" local variable is not used in suspend/resume handlers since commit 7776bcd241e0 ("power: supply: s3c-adc-battery: Convert to GPIO descriptors"): drivers/power/supply/s3c_adc_battery.c: In function ‘s3c_adc_bat_suspend’: drivers/power/supply/s3c_adc_batte

[tip: timers/core] clocksource/drivers/timer-microchip-pit64b: Add clocksource suspend/resume

2021-02-10 Thread tip-bot2 for Claudiu Beznea
Committer: Daniel Lezcano CommitterDate: Wed, 03 Feb 2021 09:36:50 +01:00 clocksource/drivers/timer-microchip-pit64b: Add clocksource suspend/resume Add suspend/resume support for clocksource timer. Signed-off-by: Claudiu Beznea Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r

[PATCH v3 9/9] ALSA: virtio: introduce device suspend/resume support

2021-02-09 Thread Anton Yakovlev
All running PCM substreams are stopped on device suspend and restarted on device resume. Signed-off-by: Anton Yakovlev --- sound/virtio/virtio_card.c| 57 +++ sound/virtio/virtio_pcm.c | 1 + sound/virtio/virtio_pcm_ops.c | 44 ---

Re: [RESEND PATCH] clocksource/drivers/timer-microchip-pit64b: add clocksource suspend/resume

2021-02-03 Thread Daniel Lezcano
On 19/01/2021 13:59, Claudiu Beznea wrote: > Add suspend/resume support for clocksource timer. > > Signed-off-by: Claudiu Beznea Applied, thanks -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/page

[PATCH] Revert "PCI/ASPM: Save/restore L1SS Capability for suspend/resume"

2021-01-27 Thread Bjorn Helgaas
From: Bjorn Helgaas This reverts commit 4257f7e008ea394fcecc050f1569c3503b8bcc15. Kenneth reported that after 4257f7e008ea, he sees a torrent of disk I/O errors on his NVMe device, and possibly other devices, until a reboot. Link: https://lore.kernel.org/linux-pci/20201228040513.GA611645@bjorn

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2021-01-27 Thread Kenneth R. Crudup
ally, disabling "tlp" doesn't fix the issue; I'd tested this and if IIRC, if I don't use tlp it doesn't prevent this from happening, it just shifts it from breaking on hibernate cycles to suspend/resume cycles instead. -Kenny -- Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Orange County CA

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2021-01-27 Thread Kenneth R. Crudup
25 Dec 2020 16:38:56 From: Kenneth R. Crudup To: vid...@nvidia.com Cc: bhelg...@google.com Subject: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures I've been running Linus' master branch on my laptop (Dell XP

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2021-01-27 Thread Bjorn Helgaas
all of those have been fixed but this still remains. I haven't seen anything yet and haven't had a chance to look into it more myself. We're at v5.11-rc5 already, so I guess we'll have to think about reverting 4257f7e008ea ("PCI/ASPM: Save/restore L1SS Capability for suspend

[PATCH v2 9/9] ALSA: virtio: introduce device suspend/resume support

2021-01-24 Thread Anton Yakovlev
All running PCM substreams are stopped on device suspend and restarted on device resume. Signed-off-by: Anton Yakovlev --- sound/virtio/virtio_card.c| 54 sound/virtio/virtio_pcm.c | 40 +++ sound/virtio/virtio_pcm.h | 6 +++ sound/virtio/virtio_pcm_

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2021-01-22 Thread Kenneth R. Crudup
> > From: Kenneth R. Crudup > > I've been running Linus' master branch on my laptop (Dell XPS 13 > > 2-in-1). With this commit in place, after resuming from hibernate > > my machine is essentially useless, with a torrent of disk I/O errors > > on my NVMe device (at least, and possibly other dev

[PATCH 1/5] clk: at91: re-factor clocks suspend/resume

2021-01-21 Thread Claudiu Beznea
these clocks needs to be re-configured. The initial PMC suspend/resume code was designed with SAMA5D2's PMC in mind. SAMA7G's PMC is different (few new functionalities, different registers offsets, different offsets in registers for each functionalities). To address both SAMA5D2 and

[PATCH 2/5] clk: at91: pmc: execute suspend/resume only for backup mode

2021-01-21 Thread Claudiu Beznea
suspending to non backup modes. Since the clear of the 1st word in securam will be done in a subsequent commit the current commit will not broke the current behavior since up to this moment the suspend/resume were executed for all AT91 PM modes. The difference now is that the suspend/resume for clocks will

[PATCH v7 06/14] phy: tegra: xusb: Add sleepwalk and suspend/resume

2021-01-19 Thread JC Kuo
This commit adds sleepwalk/wake and suspend/resume interfaces to Tegra XUSB PHY driver. Tegra XUSB host controller driver makes use of sleepwalk functions to enable/disable sleepwalk circuit which is in always-on partition and can respond to USB resume signals when controller is not powered

[PATCH 7/7] ALSA: virtio: introduce device suspend/resume support

2021-01-19 Thread Anton Yakovlev
All running PCM substreams are stopped on device suspend and restarted on device resume. Signed-off-by: Anton Yakovlev --- sound/virtio/virtio_card.c| 54 sound/virtio/virtio_pcm.c | 40 +++ sound/virtio/virtio_pcm.h | 6 +++ sound/virtio/virtio_pcm_

Re: [PATCH v6 07/15] phy: tegra: xusb: Add sleepwalk and suspend/resume

2021-01-19 Thread Thierry Reding
On Tue, Jan 19, 2021 at 04:55:38PM +0800, JC Kuo wrote: > This commit adds sleepwalk/wake and suspend/resume interfaces > to Tegra XUSB PHY driver. > > Tegra XUSB host controller driver makes use of sleepwalk functions > to enable/disable sleepwalk circuit which is in always-on

[RESEND PATCH] clocksource/drivers/timer-microchip-pit64b: add clocksource suspend/resume

2021-01-19 Thread Claudiu Beznea
Add suspend/resume support for clocksource timer. Signed-off-by: Claudiu Beznea --- drivers/clocksource/timer-microchip-pit64b.c | 86 +++- 1 file changed, 71 insertions(+), 15 deletions(-) diff --git a/drivers/clocksource/timer-microchip-pit64b.c b/drivers/clocksource

[PATCH v6 07/15] phy: tegra: xusb: Add sleepwalk and suspend/resume

2021-01-19 Thread JC Kuo
This commit adds sleepwalk/wake and suspend/resume interfaces to Tegra XUSB PHY driver. Tegra XUSB host controller driver makes use of sleepwalk functions to enable/disable sleepwalk circuit which is in always-on partition and can respond to USB resume signals when controller is not powered

[PATCH v2 4/4] media: sunxi-cir: Implement suspend/resume/shutdown callbacks

2021-01-17 Thread Samuel Holland
To save power, gate/reset the hardware block while the system is asleep or powered off. Signed-off-by: Samuel Holland --- drivers/media/rc/sunxi-cir.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index 2d09

[PATCH 4/4] media: sunxi-cir: Implement suspend/resume/shutdown callbacks

2021-01-12 Thread Samuel Holland
To save power, gate/reset the hardware block while the system is asleep or powered off. Signed-off-by: Samuel Holland --- drivers/media/rc/sunxi-cir.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index ccb9

[PATCH net 0/4] Fixes for dwmac-sun8i suspend/resume

2021-01-03 Thread Samuel Holland
This series fixes issues preventing dwmac-sun8i from working after a suspend/resume cycle. Those issues include the PHY being left powered off, the MAC syscon configuration being reset, and the reference to the reset controller being improperly dropped. They also fix related issues in probe error

[PATCH 3/4] bus: sunxi-rsb: Implement suspend/resume/shutdown callbacks

2021-01-03 Thread Samuel Holland
Since system firmware is likely to use the RSB bus to communicate with a PMIC while the system is suspended, we cannot make any assumptions about the controller state after resuming. Thus it is important to completely reinitialize the controller. The RSB bus needs to be ready as soon as IRQs are e

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2020-12-29 Thread Vidya Sagar
Ideally Bjorn's patch should have worked. Could you please collect 'sudo lspci -vv' (please don't forget to give sudo) with Bjorn's patch before and after hibernate? Also, is it right to say that with policy set to "performance" there is no issue during hibernate/resume? - Vidya Sagar On 12/2

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2020-12-27 Thread Kenneth R. Crudup
On Sun, 27 Dec 2020, Kenneth R. Crudup wrote: > I'll try your patch after the revert and see if anything changes. I just realized today's patch makes no sense if it's reverted, so nevermind. -Kenny -- Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Orange County CA

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2020-12-27 Thread Kenneth R. Crudup
OK, got more info: On Sun, 27 Dec 2020, Bjorn Helgaas wrote: > If it's convenient, can you try the patch below? If the debug patch > doesn't help: > - Are you seeing the hibernate/resume problem when on AC or on > battery? OK, so: - on TLP, before your patch, it panic()s on AC, but no

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2020-12-27 Thread Kenneth R. Crudup
On Sun, 27 Dec 2020, Bjorn Helgaas wrote: > If it's convenient, can you try the patch below? Will do! Also: > - Are you seeing the hibernate/resume problem when on AC or on > battery? Um, I forget :) but want to say "both". I'll try both ways and let you know. > - If you revert 4257f

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2020-12-27 Thread Bjorn Helgaas
> From: Kenneth R. Crudup > > I've been running Linus' master branch on my laptop (Dell XPS 13 > 2-in-1). With this commit in place, after resuming from hibernate > my machine is essentially useless, with a torrent of disk I/O errors > on my NVMe device (at least, and possibly other devices affe

[PATCH 5.9 078/105] mmc: mediatek: Fix system suspend/resume support for CQHCI

2020-12-14 Thread Greg Kroah-Hartman
lue, so we add system suspend/resume interface, then bring CQE to deactivated state before suspend, it will be enabled by CQE first request after resume. Signed-off-by: Wenbin Mei Link: https://lore.kernel.org/r/20201118063405.24906-1-wenbin@mediatek.com Fixes: 88bd652b3c74 ("mmc: mediatek:

[PATCH] clocksource/drivers/timer-microchip-pit64b: add clocksource suspend/resume

2020-12-08 Thread Claudiu Beznea
Add suspend/resume support for clocksource timer. Signed-off-by: Claudiu Beznea --- drivers/clocksource/timer-microchip-pit64b.c | 86 +++- 1 file changed, 71 insertions(+), 15 deletions(-) diff --git a/drivers/clocksource/timer-microchip-pit64b.c b/drivers/clocksource

Re: [PATCH] mmc: mediatek: Add system suspend/resume interface

2020-12-04 Thread Ulf Hansson
On Thu, 3 Dec 2020 at 02:29, Nicolas Boichat wrote: > > This causes a 0-day warning (on our chromeos-5.4 backports but I don't > see why upstream would not be affected): > https://groups.google.com/g/cros-kernel-buildreports/c/MfS3SInT5jg/m/Hkzxh_U7AwAJ > > Didn't look at the details of the config

Re: [PATCH v11 2/5] Bluetooth: Handle system suspend resume case

2020-12-03 Thread Marcel Holtmann
Hi Howard, > This patch adds code to handle the system suspension during interleave > scan. The interleave scan will be canceled when the system is going to > sleep, and will be restarted after waking up. > > Signed-off-by: Howard Chung > Reviewed-by: Alain Michaud > Reviewed-by: Manish Mandlik

Re: [PATCH] mmc: mediatek: Add system suspend/resume interface

2020-12-02 Thread Nicolas Boichat
[ 119.865773] mmc0: cqhci: : === > > > [ 119.872358] mmc0: running CQE recovery > > > From these logs, we found TDL base was back to the default value. > > > > > > After suspend, the mmc host is powered off by HW, and bring

Re: [PATCH v3] ASoC: qcom: Fix playback recover problem in suspend resume

2020-11-27 Thread Srinivasa Rao Mandadapu
sue here? Are any other registers needs to re-programmed?? Does it make sense to use regcache_mark_dirty() regcache_sync() in pm suspend resume path, instead of calling prepare explicitly? --srini Yes it's working fine with regcache APIs. will update the patch. +    case SNDRV_PCM_TRIGGE

Re: [PATCH v3] ASoC: qcom: Fix playback recover problem in suspend resume

2020-11-27 Thread Srinivas Kandagatla
eam); Can you elaborate the actual issue here? Are any other registers needs to re-programmed?? Does it make sense to use regcache_mark_dirty() regcache_sync() in pm suspend resume path, instead of calling prepare explicitly? --srini + case SNDRV_PCM_TRIGGER_START:

[PATCH v3] ASoC: qcom: Fix playback recover problem in suspend resume

2020-11-27 Thread Srinivasa Rao Mandadapu
To support playback continuation after hard suspend(bypass powerd) and resume: Prepare device in platform trigger callback. Make I2s and DMA control registers as non volatile. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- Changes Since v1 and v2: -- Subject l

[PATCH v2] Asoc: qcom: Fix plaback recover problem in suspend resume

2020-11-27 Thread Srinivasa Rao Mandadapu
To support playback continuation after hard suspend(bypass powerd) and resume: Prepare device in platform trigger callback. Make I2s and DMA control registers as non volatile. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- Changes Since v1: -- Subject lines ch

[PATCH v11 2/5] Bluetooth: Handle system suspend resume case

2020-11-25 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pa

Re: [PATCH] mmc: mediatek: Add system suspend/resume interface

2020-11-24 Thread Wenbin Mei
=== > > [ 119.872358] mmc0: running CQE recovery > > From these logs, we found TDL base was back to the default value. > > > > After suspend, the mmc host is powered off by HW, and bring CQE register > > to the default value, so we add sy

Re: [PATCH] mmc: mediatek: Add system suspend/resume interface

2020-11-23 Thread Ulf Hansson
t; After suspend, the mmc host is powered off by HW, and bring CQE register > to the default value, so we add system suspend/resume interface, then bring > CQE to deactivated state before suspend, it will be enabled by CQE first > request after resume. > > Signed-off-by: Wenbin Mei I t

[PATCH v5 07/16] phy: tegra: xusb: Add sleepwalk and suspend/resume

2020-11-19 Thread JC Kuo
This commit adds sleepwalk/wake and suspend/resume interfaces to Tegra XUSB PHY driver. Tegra XUSB host controller driver makes use of sleepwalk functions to enable/disable sleepwalk circuit which is in always-on partition and can respond to USB resume signals when controller is not powered

[PATCH] mmc: mediatek: Add system suspend/resume interface

2020-11-17 Thread Wenbin Mei
: : === [ 119.872358] mmc0: running CQE recovery >From these logs, we found TDL base was back to the default value. After suspend, the mmc host is powered off by HW, and bring CQE register to the default value, so we add system suspend/resume interface, then bring CQE to deactivated st

[PATCH 5.9 062/255] spi: fsl-dspi: fix wrong pointer in suspend/resume

2020-11-17 Thread Greg Kroah-Hartman
From: Zhao Qiang [ Upstream commit 9bd77a9ce31dd242fece27219d14fbee5068dd85 ] Since commit 530b5affc675 ("spi: fsl-dspi: fix use-after-free in remove path"), this driver causes a "NULL pointer dereference" in dspi_suspend/resume. This is because since this commit, the drivers private data point

Re: [PATCH] PCI/ASPM: Save/restore ASPM-L1SS controls for suspend/resume

2020-11-13 Thread Bjorn Helgaas
On Sun, Oct 25, 2020 at 12:34:42AM +0530, Vidya Sagar wrote: > Previously ASPM L1-Sub-States control registers (CTL1 and CTL2) weren't > saved and restored during suspend/resume leading to ASPM-L1SS > configuration being lost post resume. > > Save the ASPM-L1SS control r

[PATCH v10 2/5] Bluetooth: Handle system suspend resume case

2020-11-11 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pa

[PATCH v9 3/6] Bluetooth: Handle system suspend resume case

2020-11-10 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pa

Re: [PATCH] PM / suspend: Print the driver flags of device during suspend resume

2020-11-10 Thread Rafael J. Wysocki
On Fri, Oct 23, 2020 at 1:02 PM Chen Yu wrote: > > Currently there are 4 driver flags to control system suspend/resume > behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, > DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Print these flags > during suspend resume

[PATCH v8 3/6] Bluetooth: Handle system suspend resume case

2020-11-10 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pa

Re: [PATCH v7 2/5] Bluetooth: Handle system suspend resume case

2020-11-09 Thread Marcel Holtmann
Hi Howard, > This patch adds code to handle the system suspension during interleave > scan. The interleave scan will be canceled when the system is going to > sleep, and will be restarted after waking up. > > Commit-changes 5: > - Remove the change in hci_req_config_le_suspend_scan this does not

[PATCH v7 2/5] Bluetooth: Handle system suspend resume case

2020-11-08 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Commit-changes 5: - Remove the change in hci_req_config_le_suspend_scan Signed-off-by: Howard Chung Reviewed

Re: [Patch v2] spi: fsl-dspi: fix wrong pointer in suspend/resume

2020-11-04 Thread Mark Brown
e data point to > "dspi" instead of "ctlr", the codes in suspend and resume func were > not modified correspondly. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: fsl-dspi: fix wrong pointer in suspend/resume

Re: [PATCH] Input: ili210x: Enable suspend/resume functions

2020-11-04 Thread Dmitry Torokhov
Hi Adam, On Wed, Nov 04, 2020 at 10:15:47AM -0600, Adam Ford wrote: > On Fri, Sep 18, 2020 at 9:34 AM Adam Ford wrote: > > > > Some people may wish to wake their system from sleep, so this > > patch enables a suspend and resume function which enables > > and disables IRQ wake functions. > > > > S

Re: [PATCH] Input: ili210x: Enable suspend/resume functions

2020-11-04 Thread Adam Ford
On Fri, Sep 18, 2020 at 9:34 AM Adam Ford wrote: > > Some people may wish to wake their system from sleep, so this > patch enables a suspend and resume function which enables > and disables IRQ wake functions. > > Signed-off-by: Adam Ford Gentle ping. Any feedback on this? > > diff --git a/dri

Re: [PATCH] PCI/ASPM: Save/restore ASPM-L1SS controls for suspend/resume

2020-11-03 Thread Vidya Sagar
Bjorn / Lorenzo, Could you please review this change? Thanks, Vidya Sagar On 10/25/2020 12:34 AM, Vidya Sagar wrote: Previously ASPM L1-Sub-States control registers (CTL1 and CTL2) weren't saved and restored during suspend/resume leading to ASPM-L1SS configuration being lost post resume.

Re: [Patch v2] spi: fsl-dspi: fix wrong pointer in suspend/resume

2020-11-03 Thread Vladimir Oltean
On Tue, Nov 03, 2020 at 10:05:46AM +0800, Qiang Zhao wrote: > From: Zhao Qiang > > Since commit 530b5affc675 ("spi: fsl-dspi: fix use-after-free in > remove path"), this driver causes a "NULL pointer dereference" > in dspi_suspend/resume. > This is because since this commit, the drivers private d

[Patch v2] spi: fsl-dspi: fix wrong pointer in suspend/resume

2020-11-02 Thread Qiang Zhao
From: Zhao Qiang Since commit 530b5affc675 ("spi: fsl-dspi: fix use-after-free in remove path"), this driver causes a "NULL pointer dereference" in dspi_suspend/resume. This is because since this commit, the drivers private data point to "dspi" instead of "ctlr", the codes in suspend and resume f

Re: [RFC PATCH] mwifiex: pcie: use shutdown_sw()/reinit_sw() on suspend/resume

2020-11-02 Thread Tsuchiya Yuto
> >> When using the Host Sleep method, it prevents the platform to reach S0ix >> during suspend. Also, sometimes AP scanning won't work, resulting in >> non-working wifi after suspend. >> >> To fix such issues, perform shutdown_sw()/reinit_sw() instead of Host

Re: [RFC PATCH] mwifiex: pcie: use shutdown_sw()/reinit_sw() on suspend/resume

2020-10-30 Thread Tsuchiya Yuto
h S0ix > during suspend. Also, sometimes AP scanning won't work, resulting in > non-working wifi after suspend. > > To fix such issues, perform shutdown_sw()/reinit_sw() instead of Host > Sleep on suspend/resume. > > Signed-off-by: Tsuchiya Yuto > --- > As a side

[PATCH v6 2/5] Bluetooth: Handle system suspend resume case

2020-10-30 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Commit-changes 5: - Remove the change in hci_req_config_le_suspend_scan Signed-off-by: Howard Chung Reviewed

[RFC PATCH] mwifiex: pcie: use shutdown_sw()/reinit_sw() on suspend/resume

2020-10-28 Thread Tsuchiya Yuto
n non-working wifi after suspend. To fix such issues, perform shutdown_sw()/reinit_sw() instead of Host Sleep on suspend/resume. Signed-off-by: Tsuchiya Yuto --- As a side effect, this patch disables wakeups (means that Wake-On-WLAN can't be used anymore, if it was working before), and might

[PATCH 5.9 012/757] net: ipa: skip suspend/resume activities if not set up

2020-10-27 Thread Greg Kroah-Hartman
From: Alex Elder [ Upstream commit d1704382821032fede445b816f4296fd379baacf ] When processing a system suspend request we suspend modem endpoints if they are enabled, and call ipa_cmd_tag_process() (which issues IPA commands) to ensure the IPA pipeline is cleared. It is an error to attempt to i

[PATCH 5.8 010/633] net: ipa: skip suspend/resume activities if not set up

2020-10-27 Thread Greg Kroah-Hartman
From: Alex Elder [ Upstream commit d1704382821032fede445b816f4296fd379baacf ] When processing a system suspend request we suspend modem endpoints if they are enabled, and call ipa_cmd_tag_process() (which issues IPA commands) to ensure the IPA pipeline is cleared. It is an error to attempt to i

[PATCH] PCI/ASPM: Save/restore ASPM-L1SS controls for suspend/resume

2020-10-24 Thread Vidya Sagar
Previously ASPM L1-Sub-States control registers (CTL1 and CTL2) weren't saved and restored during suspend/resume leading to ASPM-L1SS configuration being lost post resume. Save the ASPM-L1SS control registers so that the configuration is retained post resume. Signed-off-by: Vidya Sagar -

[PATCH] PM / suspend: Print the driver flags of device during suspend resume

2020-10-23 Thread Chen Yu
Currently there are 4 driver flags to control system suspend/resume behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Print these flags during suspend resume so as to get a brief understanding of the expected behavior of each device

Re: [PATCH][v2] PM / sysfs: Expose suspend resume driver flags in sysfs

2020-10-22 Thread Chen Yu
Hi Andy, On Thu, Oct 22, 2020 at 04:36:25PM +0300, Andy Shevchenko wrote: > On Thu, Oct 22, 2020 at 12:24 PM Chen Yu wrote: > > > > Currently there are 4 driver flags to control system suspend/resume > > behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, > >

Re: [PATCH][v2] PM / sysfs: Expose suspend resume driver flags in sysfs

2020-10-22 Thread Chen Yu
Hi Greg, On Thu, Oct 22, 2020 at 11:17:07AM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 22, 2020 at 04:52:44PM +0800, Chen Yu wrote: > > Currently there are 4 driver flags to control system suspend/resume > > behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLA

Re: [PATCH][v2] PM / sysfs: Expose suspend resume driver flags in sysfs

2020-10-22 Thread Andy Shevchenko
On Thu, Oct 22, 2020 at 12:24 PM Chen Yu wrote: > > Currently there are 4 driver flags to control system suspend/resume > behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, > DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Make these flags > visible in sysfs as rea

Re: [PATCH][v2] PM / sysfs: Expose suspend resume driver flags in sysfs

2020-10-22 Thread Greg Kroah-Hartman
On Thu, Oct 22, 2020 at 04:52:44PM +0800, Chen Yu wrote: > Currently there are 4 driver flags to control system suspend/resume > behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, > DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Make these flags > visible in sysfs as

[PATCH][v2] PM / sysfs: Expose suspend resume driver flags in sysfs

2020-10-22 Thread Chen Yu
Currently there are 4 driver flags to control system suspend/resume behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Make these flags visible in sysfs as read-only to get a brief understanding of the expected behavior of each

Re: [PATCH] PM / sysfs: Expose suspend resume driver flags in sysfs

2020-10-21 Thread Chen Yu
Hi Greg, thanks for taking a look at this. On Thu, Oct 22, 2020 at 07:31:43AM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 22, 2020 at 11:23:24AM +0800, Chen Yu wrote: > > Currently there are 4 driver flags to control system suspend/resume > > behavior: DPM_FLAG_NO_

Re: [PATCH] PM / sysfs: Expose suspend resume driver flags in sysfs

2020-10-21 Thread Greg Kroah-Hartman
On Thu, Oct 22, 2020 at 11:23:24AM +0800, Chen Yu wrote: > Currently there are 4 driver flags to control system suspend/resume > behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, > DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Make these flags > visible in sysfs as

[PATCH] PM / sysfs: Expose suspend resume driver flags in sysfs

2020-10-21 Thread Chen Yu
Currently there are 4 driver flags to control system suspend/resume behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Make these flags visible in sysfs as read-only to get a brief understanding of the expected behavior of each

[PATCH v4 07/16] phy: tegra: xusb: Add sleepwalk and suspend/resume

2020-10-16 Thread JC Kuo
This commit adds sleepwalk/wake and suspend/resume interfaces to Tegra XUSB PHY driver. Tegra XUSB host controller driver makes use of sleepwalk functions to enable/disable sleepwalk circuit which is in always-on partition and can respond to USB resume signals when controller is not powered

Re: [PATCH v7 2/2] PCI: dwc: Fix MSI page leakage in suspend/resume

2020-10-14 Thread Robin Murphy
On 2020-10-14 17:52, Ard Biesheuvel wrote: On Mon, 12 Oct 2020 at 13:38, Robin Murphy wrote: On 2020-10-09 08:55, Jisheng Zhang wrote: Currently, dw_pcie_msi_init() allocates and maps page for msi, then program the PCIE_MSI_ADDR_LO and PCIE_MSI_ADDR_HI. The Root Complex may lose power during

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