D3-cold state indicates removal of the clock and power. however auxiliary (AUX)
Power may remain available even after the main power rails are powered down.
wakeup from D3-cold state requires full context restore. Other things are taken
care in pci-driver except ATMUs.
ATMU windows needs to be saved and restored during suspend and resume.
Signed-off-by: Jiang Yutang <redacted>
Signed-off-by: Prabhakar Kushwaha <redacted>
---
Based upon git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git(branch master)
arch/powerpc/sysdev/fsl_pci.c | 116 +++++++++++++++++++++++++++++++++++++++++
arch/powerpc/sysdev/fsl_pci.h | 7 ++-
2 files changed, 121 insertions(+), 2 deletions(-)
From: Kumar Gala <hidden> Date: 2011-05-19 06:30:12
On Apr 28, 2011, at 1:38 AM, Prabhakar Kushwaha wrote:
D3-cold state indicates removal of the clock and power. however =
auxiliary (AUX)
Power may remain available even after the main power rails are powered =
down.
=20
wakeup from D3-cold state requires full context restore. Other things =
are taken
care in pci-driver except ATMUs.
ATMU windows needs to be saved and restored during suspend and resume.
=20
Signed-off-by: Jiang Yutang <redacted>
Signed-off-by: Prabhakar Kushwaha <redacted>
---
Based upon =
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git(branc=
h master)
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 12:00 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for
PM
=20
=20
On Apr 28, 2011, at 1:38 AM, Prabhakar Kushwaha wrote:
=20
quoted
D3-cold state indicates removal of the clock and power. however
auxiliary (AUX) Power may remain available even after the main power
rails are powered down.
quoted
wakeup from D3-cold state requires full context restore. Other things
are taken care in pci-driver except ATMUs.
ATMU windows needs to be saved and restored during suspend and resume.
Signed-off-by: Jiang Yutang <redacted>
Signed-off-by: Prabhakar Kushwaha <redacted>
---
Based upon
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git(b
ranch master)
arch/powerpc/sysdev/fsl_pci.c | 116
=20
Is this patch for when we are a host or agent?
This patch is independent of host or agent. It is for supporting D3 cold st=
ate for P1022.
These functions are called during System level suspend and resume.=20
--Prabhakar
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 6:53 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for
PM
=20
=20
On May 19, 2011, at 6:22 AM, Kushwaha Prabhakar-B32579 wrote:
=20
quoted
Hi Kumar,
Please find my answer in-lined
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 12:00 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang
Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows
for PM
On Apr 28, 2011, at 1:38 AM, Prabhakar Kushwaha wrote:
quoted
D3-cold state indicates removal of the clock and power. however
auxiliary (AUX) Power may remain available even after the main power
rails are powered down.
quoted
wakeup from D3-cold state requires full context restore. Other
things are taken care in pci-driver except ATMUs.
ATMU windows needs to be saved and restored during suspend and
resume.
quoted
quoted
quoted
Signed-off-by: Jiang Yutang <redacted>
Signed-off-by: Prabhakar Kushwaha <redacted>
---
Based upon
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
(b
ranch master)
arch/powerpc/sysdev/fsl_pci.c | 116
From: Kumar Gala <hidden> Date: 2011-05-20 04:46:40
On May 19, 2011, at 11:41 PM, Kushwaha Prabhakar-B32579 wrote:
=20
=20
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 6:53 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang =
Yutang-
quoted
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows =
for
quoted
PM
=20
=20
On May 19, 2011, at 6:22 AM, Kushwaha Prabhakar-B32579 wrote:
=20
quoted
Hi Kumar,
Please find my answer in-lined
=20
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 12:00 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang
Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU =
windows
quoted
quoted
quoted
for PM
=20
=20
On Apr 28, 2011, at 1:38 AM, Prabhakar Kushwaha wrote:
=20
quoted
D3-cold state indicates removal of the clock and power. however
auxiliary (AUX) Power may remain available even after the main =
power
quoted
quoted
quoted
rails are powered down.
quoted
=20
wakeup from D3-cold state requires full context restore. Other
things are taken care in pci-driver except ATMUs.
ATMU windows needs to be saved and restored during suspend and
resume.
quoted
quoted
quoted
=20
Signed-off-by: Jiang Yutang <redacted>
Signed-off-by: Prabhakar Kushwaha <redacted>
---
Based upon
=
From: Kumar Gala <hidden> Date: 2011-05-20 04:49:06
On May 19, 2011, at 11:41 PM, Kushwaha Prabhakar-B32579 wrote:
=20
=20
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 6:53 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang =
Yutang-
quoted
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows =
for
quoted
PM
=20
=20
On May 19, 2011, at 6:22 AM, Kushwaha Prabhakar-B32579 wrote:
=20
quoted
Hi Kumar,
Please find my answer in-lined
=20
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 12:00 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang
Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU =
windows
quoted
quoted
quoted
for PM
=20
=20
On Apr 28, 2011, at 1:38 AM, Prabhakar Kushwaha wrote:
=20
quoted
D3-cold state indicates removal of the clock and power. however
auxiliary (AUX) Power may remain available even after the main =
power
quoted
quoted
quoted
rails are powered down.
quoted
=20
wakeup from D3-cold state requires full context restore. Other
things are taken care in pci-driver except ATMUs.
ATMU windows needs to be saved and restored during suspend and
resume.
quoted
quoted
quoted
=20
Signed-off-by: Jiang Yutang <redacted>
Signed-off-by: Prabhakar Kushwaha <redacted>
---
Based upon
=
=20
Is this patch for when we are a host or agent?
=20
This patch is independent of host or agent. It is for supporting D3
cold state for P1022.
quoted
These functions are called during System level suspend and resume.
=20
--Prabhakar
=20
I'm trying to figure out why this is limited to P1022.
=20
Till now, No SOC was supporting D3 cold state. First time P1022 =
supporting it.
Note: D3 cold state =3D=3D PCIe block Power down
=20
I'm wondering a few things:
1. Is there any reason not to do this for ALL FSL PCIe SoCs?
2. why do bother saving state, we don't we re-parse the .dts and =
reconfigure ATMUs that way?
- k
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Friday, May 20, 2011 10:19 AM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows for
PM
=20
=20
On May 19, 2011, at 11:41 PM, Kushwaha Prabhakar-B32579 wrote:
=20
quoted
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 6:53 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang
Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows
for PM
On May 19, 2011, at 6:22 AM, Kushwaha Prabhakar-B32579 wrote:
quoted
Hi Kumar,
Please find my answer in-lined
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 12:00 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang
Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU
windows for PM
On Apr 28, 2011, at 1:38 AM, Prabhakar Kushwaha wrote:
quoted
D3-cold state indicates removal of the clock and power. however
auxiliary (AUX) Power may remain available even after the main
power
rails are powered down.
quoted
wakeup from D3-cold state requires full context restore. Other
things are taken care in pci-driver except ATMUs.
ATMU windows needs to be saved and restored during suspend and
resume.
quoted
quoted
quoted
Signed-off-by: Jiang Yutang <redacted>
Signed-off-by: Prabhakar Kushwaha <redacted>
---
Based upon
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.g
it
(b
ranch master)
arch/powerpc/sysdev/fsl_pci.c | 116
This patch is independent of host or agent. It is for supporting D3
cold state for P1022.
quoted
These functions are called during System level suspend and resume.
--Prabhakar
I'm trying to figure out why this is limited to P1022.
Till now, No SOC was supporting D3 cold state. First time P1022
supporting it.
quoted
Note: D3 cold state =3D=3D PCIe block Power down
=20
I'm wondering a few things:
=20
1. Is there any reason not to do this for ALL FSL PCIe SoCs?
Yes, I am agree with you. It can be done.=20
But as only P1022 SOC supporting it. There is no use of handling it.=20
2. why do bother saving state, we don't we re-parse the .dts and
reconfigure ATMUs that way?
I also thought of this case. But Agent use case scenario forbid me to do th=
is.=20
As ATMU's are programmed by host depending upon different use case . And th=
is information is never stored in the dts.
--Prabhakar
=20
From: Kumar Gala <hidden> Date: 2011-05-20 05:15:22
On May 20, 2011, at 12:01 AM, Kushwaha Prabhakar-B32579 wrote:
=20
=20
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Friday, May 20, 2011 10:19 AM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang =
Yutang-
quoted
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU windows =
for
quoted
PM
=20
=20
On May 19, 2011, at 11:41 PM, Kushwaha Prabhakar-B32579 wrote:
=20
quoted
=20
=20
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 6:53 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang
Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU =
windows
quoted
quoted
quoted
for PM
=20
=20
On May 19, 2011, at 6:22 AM, Kushwaha Prabhakar-B32579 wrote:
=20
quoted
Hi Kumar,
Please find my answer in-lined
=20
quoted
-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]
Sent: Thursday, May 19, 2011 12:00 PM
To: Kushwaha Prabhakar-B32579
Cc: linuxppc-dev@lists.ozlabs.org; meet2prabhu@gmail.com; Jiang
Yutang-
B14898
Subject: Re: [PATCH] powerpc/85xx: Save and restore pcie ATMU
windows for PM
=20
=20
On Apr 28, 2011, at 1:38 AM, Prabhakar Kushwaha wrote:
=20
quoted
D3-cold state indicates removal of the clock and power. however
auxiliary (AUX) Power may remain available even after the main
power
rails are powered down.
quoted
=20
wakeup from D3-cold state requires full context restore. Other
things are taken care in pci-driver except ATMUs.
ATMU windows needs to be saved and restored during suspend and
resume.
quoted
quoted
quoted
=20
Signed-off-by: Jiang Yutang <redacted>
Signed-off-by: Prabhakar Kushwaha <redacted>
---
Based upon
=
=20
Is this patch for when we are a host or agent?
=20
This patch is independent of host or agent. It is for supporting =
D3
quoted
quoted
quoted
cold state for P1022.
quoted
These functions are called during System level suspend and resume.
=20
--Prabhakar
=20
I'm trying to figure out why this is limited to P1022.
=20
Till now, No SOC was supporting D3 cold state. First time P1022
supporting it.
quoted
Note: D3 cold state =3D=3D PCIe block Power down
=20
=20
I'm wondering a few things:
=20
1. Is there any reason not to do this for ALL FSL PCIe SoCs?
=20
Yes, I am agree with you. It can be done.=20
But as only P1022 SOC supporting it. There is no use of handling it.
I'm also not clear if the DECLARE_PCI_FIXUP_SUSPEND() is the right way =
for us to connect up these suspend/resume functions.
quoted
2. why do bother saving state, we don't we re-parse the .dts and
reconfigure ATMUs that way?
=20
I also thought of this case. But Agent use case scenario forbid me to =
do this.=20
As ATMU's are programmed by host depending upon different use case . =
And this information is never stored in the dts.
Fair point, but in agent mode will this code ever really be called? It =
seems like we'd never register ourselves with the PCI subsystem so how =
would this get called?
- k=