All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] Revert "net: wwan: iosm: Keep device at D0 for s2idle case"
@ 2022-01-04 15:02 M Chetan Kumar
  2022-01-05  2:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: M Chetan Kumar @ 2022-01-04 15:02 UTC (permalink / raw)
  To: netdev
  Cc: kuba, davem, johannes, ryazanov.s.a, loic.poulain,
	krishna.c.sudi, m.chetan.kumar, m.chetan.kumar, linuxwwan,
	kai.heng.feng

Depending on BIOS configuration IOSM driver exchanges
protocol required for putting device into D3L2 or D3L1.2.

ipc_pcie_suspend_s2idle() is implemented to put device to D3L1.2.

This patch forces PCI core know this device should stay at D0.
- pci_save_state()is expensive since it does a lot of slow PCI
config reads.

The reported issue is not observed on x86 platform. The supurios
wake on AMD platform needs to be futher debugged with orignal patch
submitter [1]. Also the impact of adding pci_save_state() needs to be
assessed by testing it on other platforms.

This reverts commit f4dd5174e273("net: wwan: iosm: Keep device
at D0 for s2idle case").

[1] https://lore.kernel.org/all/20211224081914.345292-2-kai.heng.feng@canonical.com/

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
---
 drivers/net/wwan/iosm/iosm_ipc_pcie.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/wwan/iosm/iosm_ipc_pcie.c b/drivers/net/wwan/iosm/iosm_ipc_pcie.c
index af1d0e837fe9..d73894e2a84e 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_pcie.c
+++ b/drivers/net/wwan/iosm/iosm_ipc_pcie.c
@@ -340,9 +340,6 @@ static int __maybe_unused ipc_pcie_suspend_s2idle(struct iosm_pcie *ipc_pcie)
 
 	ipc_imem_pm_s2idle_sleep(ipc_pcie->imem, true);
 
-	/* Let PCI core know this device should stay at D0 */
-	pci_save_state(ipc_pcie->pci);
-
 	return 0;
 }
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] Revert "net: wwan: iosm: Keep device at D0 for s2idle case"
  2022-01-04 15:02 [PATCH net-next] Revert "net: wwan: iosm: Keep device at D0 for s2idle case" M Chetan Kumar
@ 2022-01-05  2:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-01-05  2:30 UTC (permalink / raw)
  To: M Chetan Kumar
  Cc: netdev, kuba, davem, johannes, ryazanov.s.a, loic.poulain,
	krishna.c.sudi, m.chetan.kumar, linuxwwan, kai.heng.feng

Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Tue,  4 Jan 2022 20:32:13 +0530 you wrote:
> Depending on BIOS configuration IOSM driver exchanges
> protocol required for putting device into D3L2 or D3L1.2.
> 
> ipc_pcie_suspend_s2idle() is implemented to put device to D3L1.2.
> 
> This patch forces PCI core know this device should stay at D0.
> - pci_save_state()is expensive since it does a lot of slow PCI
> config reads.
> 
> [...]

Here is the summary with links:
  - [net-next] Revert "net: wwan: iosm: Keep device at D0 for s2idle case"
    https://git.kernel.org/netdev/net-next/c/ffd32ea6b13c

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-05  2:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 15:02 [PATCH net-next] Revert "net: wwan: iosm: Keep device at D0 for s2idle case" M Chetan Kumar
2022-01-05  2:30 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.