* [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers
@ 2011-07-21 10:29 Shaohui Xie
2011-07-21 15:58 ` Tabi Timur-B04825
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Shaohui Xie @ 2011-07-21 10:29 UTC (permalink / raw)
To: linuxppc-dev; +Cc: kumar.gala, Kai.Jiang, Shaohui Xie
From: Kai.Jiang <Kai.Jiang@freescale.com>
There are some differences of register offset and definition between
pci and pcie error management registers. While, some other pci/pcie
error management registers are nearly the same.
Signed-off-by: Kai.Jiang <Kai.Jiang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
---
arch/powerpc/sysdev/fsl_pci.h | 31 +++++++++++++++++++++++++------
1 files changed, 25 insertions(+), 6 deletions(-)
difg --gite a/arch/powerpc/sysdev/fsl_pci.h b/arch/powerpc/sysdev/fsl_pci.h
index a39ed5c..60a76e9 100644
--- a/arch/powerpc/sysdev/fsl_pci.h
+++ b/arch/powerpc/sysdev/fsl_pci.h
@@ -74,13 +74,32 @@ struct ccsr_pci {
*/
struct pci_inbound_window_regs piw[4];
+/* Merge PCI/PCI Express error management registers */
__be32 pex_err_dr; /* 0x.e00 - PCI/PCIE error detect register */
- u8 res21[4];
- __be32 pex_err_en; /* 0x.e08 - PCI/PCIE error interrupt enable register */
- u8 res22[4];
- __be32 pex_err_disr; /* 0x.e10 - PCI/PCIE error disable register */
- u8 res23[12];
- __be32 pex_err_cap_stat; /* 0x.e20 - PCI/PCIE error capture status register */
+ __be32 pex_err_cap_dr; /* 0x.e04 */
+ /* - PCI error capture disabled register */
+ /* - PCIE has no this register */
+ __be32 pex_err_en; /* 0x.e08 */
+ /* - PCI/PCIE error interrupt enable register*/
+ __be32 pex_err_attrib; /* 0x.e0c */
+ /* - PCI error attributes capture register */
+ /* - PCIE has no this register */
+ __be32 pex_err_disr; /* 0x.e10 */
+ /* - PCI error address capture register */
+ /* - PCIE error disable register */
+ __be32 pex_err_ext_addr; /* 0x.e14 */
+ /* - PCI error extended addr capture register*/
+ /* - PCIE has no this register */
+ __be32 pex_err_dl; /* 0x.e18 */
+ /* - PCI error data low capture register */
+ /* - PCIE has no this register */
+ __be32 pex_err_dh; /* 0x.e1c */
+ /* - PCI error data high capture register */
+ /* - PCIE has no this register */
+ __be32 pex_err_cap_stat; /* 0x.e20 */
+ /* - PCI gasket timer register */
+ /* - PCIE error capture status register */
+
u8 res24[4];
__be32 pex_err_cap_r0; /* 0x.e28 - PCIE error capture register 0 */
__be32 pex_err_cap_r1; /* 0x.e2c - PCIE error capture register 0 */
--
1.6.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers
2011-07-21 10:29 [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers Shaohui Xie
@ 2011-07-21 15:58 ` Tabi Timur-B04825
2011-07-22 2:56 ` Xie Shaohui-B21989
2011-07-26 6:48 ` Xie Shaohui-B21989
2011-08-03 9:57 ` Xie Shaohui-B21989
2 siblings, 1 reply; 5+ messages in thread
From: Tabi Timur-B04825 @ 2011-07-21 15:58 UTC (permalink / raw)
To: Xie Shaohui-B21989; +Cc: Gala Kumar-B11780, linuxppc-dev, Jiang Kai-B18973
On Thu, Jul 21, 2011 at 5:29 AM, Shaohui Xie <Shaohui.Xie@freescale.com> wr=
ote:
> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 /* - PCIE has no this register */
I don't understand this sentence.
--=20
Timur Tabi
Linux kernel developer at Freescale=
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers
2011-07-21 15:58 ` Tabi Timur-B04825
@ 2011-07-22 2:56 ` Xie Shaohui-B21989
0 siblings, 0 replies; 5+ messages in thread
From: Xie Shaohui-B21989 @ 2011-07-22 2:56 UTC (permalink / raw)
To: Tabi Timur-B04825; +Cc: Gala Kumar-B11780, linuxppc-dev, Jiang Kai-B18973
>From: Tabi Timur-B04825
>Sent: Thursday, July 21, 2011 11:59 PM
>To: Xie Shaohui-B21989
>Cc: linuxppc-dev@lists.ozlabs.org; Gala Kumar-B11780; Jiang Kai-B18973
>Subject: Re: [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error
>management registers
>
>On Thu, Jul 21, 2011 at 5:29 AM, Shaohui Xie <Shaohui.Xie@freescale.com>
>wrote:
>
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 /* - PCIE has no this register
>*/
>
>I don't understand this sentence.
>
[Xie Shaohui] this patch intend to merge PCI and PCIe error management regi=
sters into a unit
Structure, some register offsets where PCI has definitions while PCIe are r=
eserved. For ex. On
MPC8536, PCI has a register ERR_CAP_DR (PCI error capture disabled register=
) at offset 0xe04,=20
But this offset is reserved in PCIe.
Best Regards,=20
Shaohui Xie
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers
2011-07-21 10:29 [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers Shaohui Xie
2011-07-21 15:58 ` Tabi Timur-B04825
@ 2011-07-26 6:48 ` Xie Shaohui-B21989
2011-08-03 9:57 ` Xie Shaohui-B21989
2 siblings, 0 replies; 5+ messages in thread
From: Xie Shaohui-B21989 @ 2011-07-26 6:48 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, Jiang Kai-B18973
>-----Original Message-----
>From: Xie Shaohui-B21989
>Sent: Thursday, July 21, 2011 6:30 PM
>To: linuxppc-dev@lists.ozlabs.org
>Cc: Gala Kumar-B11780; Jiang Kai-B18973; Kumar Gala; Xie Shaohui-B21989
>Subject: [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management
>registers
>
>From: Kai.Jiang <Kai.Jiang@freescale.com>
>
>There are some differences of register offset and definition between pci
>and pcie error management registers. While, some other pci/pcie error
>management registers are nearly the same.
>
>Signed-off-by: Kai.Jiang <Kai.Jiang@freescale.com>
>Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
>Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
>---
> arch/powerpc/sysdev/fsl_pci.h | 31 +++++++++++++++++++++++++------
> 1 files changed, 25 insertions(+), 6 deletions(-)
>
>difg --gite a/arch/powerpc/sysdev/fsl_pci.h
>b/arch/powerpc/sysdev/fsl_pci.h index a39ed5c..60a76e9 100644
>--- a/arch/powerpc/sysdev/fsl_pci.h
>+++ b/arch/powerpc/sysdev/fsl_pci.h
>@@ -74,13 +74,32 @@ struct ccsr_pci {
> */
> struct pci_inbound_window_regs piw[4];
>
>+/* Merge PCI/PCI Express error management registers */
> __be32 pex_err_dr; /* 0x.e00 - PCI/PCIE error detect
>register */
>- u8 res21[4];
>- __be32 pex_err_en; /* 0x.e08 - PCI/PCIE error interrupt
>enable register */
>- u8 res22[4];
>- __be32 pex_err_disr; /* 0x.e10 - PCI/PCIE error
>disable register */
>- u8 res23[12];
>- __be32 pex_err_cap_stat; /* 0x.e20 - PCI/PCIE error capture
>status register */
>+ __be32 pex_err_cap_dr; /* 0x.e04 */
>+ /* - PCI error capture disabled register */
>+ /* - PCIE has no this register */
>+ __be32 pex_err_en; /* 0x.e08 */
>+ /* - PCI/PCIE error interrupt enable
>register*/
>+ __be32 pex_err_attrib; /* 0x.e0c */
>+ /* - PCI error attributes capture register
>*/
>+ /* - PCIE has no this register */
>+ __be32 pex_err_disr; /* 0x.e10 */
>+ /* - PCI error address capture register */
>+ /* - PCIE error disable register */
>+ __be32 pex_err_ext_addr; /* 0x.e14 */
>+ /* - PCI error extended addr capture
>register*/
>+ /* - PCIE has no this register */
>+ __be32 pex_err_dl; /* 0x.e18 */
>+ /* - PCI error data low capture register */
>+ /* - PCIE has no this register */
>+ __be32 pex_err_dh; /* 0x.e1c */
>+ /* - PCI error data high capture register */
>+ /* - PCIE has no this register */
>+ __be32 pex_err_cap_stat; /* 0x.e20 */
>+ /* - PCI gasket timer register */
>+ /* - PCIE error capture status register */
>+
> u8 res24[4];
> __be32 pex_err_cap_r0; /* 0x.e28 - PCIE error capture
>register 0 */
> __be32 pex_err_cap_r1; /* 0x.e2c - PCIE error capture
>register 0 */
>--
>1.6.4
[Xie Shaohui] I've verified this patch can apply for galak/powerpc.git 'nex=
t' branch with no change.
Best Regards,=20
Shaohui Xie
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers
2011-07-21 10:29 [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers Shaohui Xie
2011-07-21 15:58 ` Tabi Timur-B04825
2011-07-26 6:48 ` Xie Shaohui-B21989
@ 2011-08-03 9:57 ` Xie Shaohui-B21989
2 siblings, 0 replies; 5+ messages in thread
From: Xie Shaohui-B21989 @ 2011-08-03 9:57 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Jiang Kai-B18973, Xie Shaohui-B21989
Hi all,
Any concerns of this patch?
Best Regards,=20
Shaohui Xie=20
>-----Original Message-----
>From: Xie Shaohui-B21989
>Sent: Tuesday, July 26, 2011 2:50 PM
>To: Kumar Gala
>Cc: Jiang Kai-B18973; linuxppc-dev@lists.ozlabs.org
>Subject: RE: [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error
>management registers
>
>
>
>>-----Original Message-----
>>From: Xie Shaohui-B21989
>>Sent: Thursday, July 21, 2011 6:30 PM
>>To: linuxppc-dev@lists.ozlabs.org
>>Cc: Gala Kumar-B11780; Jiang Kai-B18973; Kumar Gala; Xie Shaohui-B21989
>>Subject: [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error
>>management registers
>>
>>From: Kai.Jiang <Kai.Jiang@freescale.com>
>>
>>There are some differences of register offset and definition between
>>pci and pcie error management registers. While, some other pci/pcie
>>error management registers are nearly the same.
>>
>>Signed-off-by: Kai.Jiang <Kai.Jiang@freescale.com>
>>Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
>>Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
>>---
>> arch/powerpc/sysdev/fsl_pci.h | 31 +++++++++++++++++++++++++------
>> 1 files changed, 25 insertions(+), 6 deletions(-)
>>
>>difg --gite a/arch/powerpc/sysdev/fsl_pci.h
>>b/arch/powerpc/sysdev/fsl_pci.h index a39ed5c..60a76e9 100644
>>--- a/arch/powerpc/sysdev/fsl_pci.h
>>+++ b/arch/powerpc/sysdev/fsl_pci.h
>>@@ -74,13 +74,32 @@ struct ccsr_pci {
>> */
>> struct pci_inbound_window_regs piw[4];
>>
>>+/* Merge PCI/PCI Express error management registers */
>> __be32 pex_err_dr; /* 0x.e00 - PCI/PCIE error detect
>>register */
>>- u8 res21[4];
>>- __be32 pex_err_en; /* 0x.e08 - PCI/PCIE error interrupt
>>enable register */
>>- u8 res22[4];
>>- __be32 pex_err_disr; /* 0x.e10 - PCI/PCIE error
>>disable register */
>>- u8 res23[12];
>>- __be32 pex_err_cap_stat; /* 0x.e20 - PCI/PCIE error capture
>>status register */
>>+ __be32 pex_err_cap_dr; /* 0x.e04 */
>>+ /* - PCI error capture disabled register */
>>+ /* - PCIE has no this register */
>>+ __be32 pex_err_en; /* 0x.e08 */
>>+ /* - PCI/PCIE error interrupt enable
>>register*/
>>+ __be32 pex_err_attrib; /* 0x.e0c */
>>+ /* - PCI error attributes capture register
>>*/
>>+ /* - PCIE has no this register */
>>+ __be32 pex_err_disr; /* 0x.e10 */
>>+ /* - PCI error address capture register */
>>+ /* - PCIE error disable register */
>>+ __be32 pex_err_ext_addr; /* 0x.e14 */
>>+ /* - PCI error extended addr capture
>>register*/
>>+ /* - PCIE has no this register */
>>+ __be32 pex_err_dl; /* 0x.e18 */
>>+ /* - PCI error data low capture register */
>>+ /* - PCIE has no this register */
>>+ __be32 pex_err_dh; /* 0x.e1c */
>>+ /* - PCI error data high capture register */
>>+ /* - PCIE has no this register */
>>+ __be32 pex_err_cap_stat; /* 0x.e20 */
>>+ /* - PCI gasket timer register */
>>+ /* - PCIE error capture status register */
>>+
>> u8 res24[4];
>> __be32 pex_err_cap_r0; /* 0x.e28 - PCIE error capture
>>register 0 */
>> __be32 pex_err_cap_r1; /* 0x.e2c - PCIE error capture
>>register 0 */
>>--
>>1.6.4
>[Xie Shaohui] I've verified this patch can apply for galak/powerpc.git
>'next' branch with no change.
>
>
>Best Regards,
>Shaohui Xie
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-03 9:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-21 10:29 [PATCH 3/4] powerpc/85xx: Merge PCI/PCI Express error management registers Shaohui Xie
2011-07-21 15:58 ` Tabi Timur-B04825
2011-07-22 2:56 ` Xie Shaohui-B21989
2011-07-26 6:48 ` Xie Shaohui-B21989
2011-08-03 9:57 ` Xie Shaohui-B21989
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.