* [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c.
@ 2007-03-07 20:48 Jon Loeliger
  2007-03-08  5:22 ` Kumar Gala
  2007-03-09  3:32 ` Zang Roy-r61911
  0 siblings, 2 replies; 9+ messages in thread
From: Jon Loeliger @ 2007-03-07 20:48 UTC (permalink / raw)
  To: linuxppc-dev@ozlabs.org
This move sets the stage for the use of generic PCI Express
code in 85xx and 86xx parts from FSL.  Subsequent patches
for 8548 and 8544 will be able to use this shared code.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
---
 arch/powerpc/Kconfig                               |    5 +++++
 arch/powerpc/platforms/86xx/Makefile               |    2 +-
 arch/powerpc/sysdev/Makefile                       |    1 +
 .../86xx/mpc86xx_pcie.c => sysdev/fsl_pcie.c}      |    2 --
 4 files changed, 7 insertions(+), 3 deletions(-)
 rename arch/powerpc/{platforms/86xx/mpc86xx_pcie.c => sysdev/fsl_pcie.c} (100%)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 6dfbd52..f68de20 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -168,6 +168,7 @@ config PPC_86xx
 	bool "Freescale 86xx"
 	select 6xx
 	select FSL_SOC
+	select FSL_PCIE
 	select PPC_FPU
 	select ALTIVEC
 	help
@@ -1022,6 +1023,10 @@ config SBUS
 config FSL_SOC
 	bool
 
+config FSL_PCIE
+	bool
+	depends on PPC_86xx
+
 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
 config MCA
 	bool
diff --git a/arch/powerpc/platforms/86xx/Makefile b/arch/powerpc/platforms/86xx/Makefile
index 476a6ee..418fd8f 100644
--- a/arch/powerpc/platforms/86xx/Makefile
+++ b/arch/powerpc/platforms/86xx/Makefile
@@ -4,4 +4,4 @@
 
 obj-$(CONFIG_SMP)		+= mpc86xx_smp.o
 obj-$(CONFIG_MPC8641_HPCN)	+= mpc86xx_hpcn.o
-obj-$(CONFIG_PCI)		+= pci.o mpc86xx_pcie.o
+obj-$(CONFIG_PCI)		+= pci.o
diff --git a/arch/powerpc/sysdev/Makefile b/arch/powerpc/sysdev/Makefile
index 26ca3ff..86fc8c0 100644
--- a/arch/powerpc/sysdev/Makefile
+++ b/arch/powerpc/sysdev/Makefile
@@ -11,6 +11,7 @@ obj-$(CONFIG_PPC_PMI)		+= pmi.o
 obj-$(CONFIG_U3_DART)		+= dart_iommu.o
 obj-$(CONFIG_MMIO_NVRAM)	+= mmio_nvram.o
 obj-$(CONFIG_FSL_SOC)		+= fsl_soc.o
+obj-$(CONFIG_FSL_PCIE)		+= fsl_pcie.o
 obj-$(CONFIG_TSI108_BRIDGE)	+= tsi108_pci.o tsi108_dev.o
 obj-$(CONFIG_QUICC_ENGINE)	+= qe_lib/
 
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_pcie.c b/arch/powerpc/sysdev/fsl_pcie.c
similarity index 100%
rename from arch/powerpc/platforms/86xx/mpc86xx_pcie.c
rename to arch/powerpc/sysdev/fsl_pcie.c
index a2f4f73..041c07e 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_pcie.c
+++ b/arch/powerpc/sysdev/fsl_pcie.c
@@ -24,8 +24,6 @@
 #include <asm/pci-bridge.h>
 #include <asm/machdep.h>
 
-#include "mpc86xx.h"
-
 #define PCI_CFG_OUT out_be32
 
 /* ERRATA PCI-Ex 14 PCIE Controller timeout */
-- 
1.5.0.1.213.g509b
^ permalink raw reply related	[flat|nested] 9+ messages in thread
* Re: [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c.
  2007-03-07 20:48 [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c Jon Loeliger
@ 2007-03-08  5:22 ` Kumar Gala
  2007-03-09  3:32 ` Zang Roy-r61911
  1 sibling, 0 replies; 9+ messages in thread
From: Kumar Gala @ 2007-03-08  5:22 UTC (permalink / raw)
  To: Jon Loeliger; +Cc: linuxppc-dev@ozlabs.org
On Wed, 7 Mar 2007, Jon Loeliger wrote:
>
> This move sets the stage for the use of generic PCI Express
> code in 85xx and 86xx parts from FSL.  Subsequent patches
> for 8548 and 8544 will be able to use this shared code.
>
> Signed-off-by: Jon Loeliger <jdl@freescale.com>
> Acked-by: Andy Fleming <afleming@freescale.com>
applied
- k
^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c.
  2007-03-07 20:48 [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c Jon Loeliger
  2007-03-08  5:22 ` Kumar Gala
@ 2007-03-09  3:32 ` Zang Roy-r61911
  2007-03-09  3:49   ` Kumar Gala
  2007-03-09 17:15   ` Jon Loeliger
  1 sibling, 2 replies; 9+ messages in thread
From: Zang Roy-r61911 @ 2007-03-09  3:32 UTC (permalink / raw)
  To: Loeliger Jon-LOELIGER, linuxppc-dev
> This move sets the stage for the use of generic PCI Express=20
> code in 85xx and 86xx parts from FSL.  Subsequent patches for=20
> 8548 and 8544 will be able to use this shared code.
>=20
> Signed-off-by: Jon Loeliger <jdl@freescale.com>
> Acked-by: Andy Fleming <afleming@freescale.com>
> ---
>  arch/powerpc/Kconfig                               |    5 +++++
>  arch/powerpc/platforms/86xx/Makefile               |    2 +-
>  arch/powerpc/sysdev/Makefile                       |    1 +
>  .../86xx/mpc86xx_pcie.c =3D> sysdev/fsl_pcie.c}      |    2 --
>  4 files changed, 7 insertions(+), 3 deletions(-)  rename=20
> arch/powerpc/{platforms/86xx/mpc86xx_pcie.c =3D>=20
> sysdev/fsl_pcie.c} (100%)
>=20
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig=20
> index 6dfbd52..f68de20 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -168,6 +168,7 @@ config PPC_86xx
>  	bool "Freescale 86xx"
>  	select 6xx
>  	select FSL_SOC
> +	select FSL_PCIE
>  	select PPC_FPU
>  	select ALTIVEC
>  	help
> @@ -1022,6 +1023,10 @@ config SBUS
>  config FSL_SOC
>  	bool
> =20
> +config FSL_PCIE
> +	bool
> +	depends on PPC_86xx
> +
How about 8548 with pcie?
Roy
^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c.
  2007-03-09  3:32 ` Zang Roy-r61911
@ 2007-03-09  3:49   ` Kumar Gala
  2007-03-09  3:53     ` Zang Roy-r61911
  2007-03-09 17:15   ` Jon Loeliger
  1 sibling, 1 reply; 9+ messages in thread
From: Kumar Gala @ 2007-03-09  3:49 UTC (permalink / raw)
  To: Zang Roy-r61911; +Cc: linuxppc-dev
On Mar 8, 2007, at 9:32 PM, Zang Roy-r61911 wrote:
>> This move sets the stage for the use of generic PCI Express
>> code in 85xx and 86xx parts from FSL.  Subsequent patches for
>> 8548 and 8544 will be able to use this shared code.
>>
>> Signed-off-by: Jon Loeliger <jdl@freescale.com>
>> Acked-by: Andy Fleming <afleming@freescale.com>
>> ---
>>  arch/powerpc/Kconfig                               |    5 +++++
>>  arch/powerpc/platforms/86xx/Makefile               |    2 +-
>>  arch/powerpc/sysdev/Makefile                       |    1 +
>>  .../86xx/mpc86xx_pcie.c => sysdev/fsl_pcie.c}      |    2 --
>>  4 files changed, 7 insertions(+), 3 deletions(-)  rename
>> arch/powerpc/{platforms/86xx/mpc86xx_pcie.c =>
>> sysdev/fsl_pcie.c} (100%)
>>
>> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
>> index 6dfbd52..f68de20 100644
>> --- a/arch/powerpc/Kconfig
>> +++ b/arch/powerpc/Kconfig
>> @@ -168,6 +168,7 @@ config PPC_86xx
>>  	bool "Freescale 86xx"
>>  	select 6xx
>>  	select FSL_SOC
>> +	select FSL_PCIE
>>  	select PPC_FPU
>>  	select ALTIVEC
>>  	help
>> @@ -1022,6 +1023,10 @@ config SBUS
>>  config FSL_SOC
>>  	bool
>>
>> +config FSL_PCIE
>> +	bool
>> +	depends on PPC_86xx
>> +
> How about 8548 with pcie?
There isn't any in tree 85xx user of PCIe at this point.
- k
^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c.
  2007-03-09  3:49   ` Kumar Gala
@ 2007-03-09  3:53     ` Zang Roy-r61911
  2007-03-09  4:21       ` Kumar Gala
  0 siblings, 1 reply; 9+ messages in thread
From: Zang Roy-r61911 @ 2007-03-09  3:53 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev
>=20
> On Mar 8, 2007, at 9:32 PM, Zang Roy-r61911 wrote:
>=20
> >> This move sets the stage for the use of generic PCI=20
> Express code in=20
> >> 85xx and 86xx parts from FSL.  Subsequent patches for
> >> 8548 and 8544 will be able to use this shared code.
> >>
> >> Signed-off-by: Jon Loeliger <jdl@freescale.com>
> >> Acked-by: Andy Fleming <afleming@freescale.com>
> >> ---
> >>  arch/powerpc/Kconfig                               |    5 +++++
> >>  arch/powerpc/platforms/86xx/Makefile               |    2 +-
> >>  arch/powerpc/sysdev/Makefile                       |    1 +
> >>  .../86xx/mpc86xx_pcie.c =3D> sysdev/fsl_pcie.c}      |    2 --
> >>  4 files changed, 7 insertions(+), 3 deletions(-)  rename=20
> >> arch/powerpc/{platforms/86xx/mpc86xx_pcie.c =3D> sysdev/fsl_pcie.c} =
> >> (100%)
> >>
> >> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index=20
> >> 6dfbd52..f68de20 100644
> >> --- a/arch/powerpc/Kconfig
> >> +++ b/arch/powerpc/Kconfig
> >> @@ -168,6 +168,7 @@ config PPC_86xx
> >>  	bool "Freescale 86xx"
> >>  	select 6xx
> >>  	select FSL_SOC
> >> +	select FSL_PCIE
> >>  	select PPC_FPU
> >>  	select ALTIVEC
> >>  	help
> >> @@ -1022,6 +1023,10 @@ config SBUS
> >>  config FSL_SOC
> >>  	bool
> >>
> >> +config FSL_PCIE
> >> +	bool
> >> +	depends on PPC_86xx
> >> +
> > How about 8548 with pcie?
>=20
> There isn't any in tree 85xx user of PCIe at this point.
No!
At lease my original serial patches include the pcie support for 8548.
Roy
^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c.
  2007-03-09  3:53     ` Zang Roy-r61911
@ 2007-03-09  4:21       ` Kumar Gala
  2007-03-09  5:11         ` Zang Roy-r61911
  0 siblings, 1 reply; 9+ messages in thread
From: Kumar Gala @ 2007-03-09  4:21 UTC (permalink / raw)
  To: Zang Roy-r61911; +Cc: linuxppc-dev
On Mar 8, 2007, at 9:53 PM, Zang Roy-r61911 wrote:
>>
>> On Mar 8, 2007, at 9:32 PM, Zang Roy-r61911 wrote:
>>
>>>> This move sets the stage for the use of generic PCI
>> Express code in
>>>> 85xx and 86xx parts from FSL.  Subsequent patches for
>>>> 8548 and 8544 will be able to use this shared code.
>>>>
>>>> Signed-off-by: Jon Loeliger <jdl@freescale.com>
>>>> Acked-by: Andy Fleming <afleming@freescale.com>
>>>> ---
>>>>  arch/powerpc/Kconfig                               |    5 +++++
>>>>  arch/powerpc/platforms/86xx/Makefile               |    2 +-
>>>>  arch/powerpc/sysdev/Makefile                       |    1 +
>>>>  .../86xx/mpc86xx_pcie.c => sysdev/fsl_pcie.c}      |    2 --
>>>>  4 files changed, 7 insertions(+), 3 deletions(-)  rename
>>>> arch/powerpc/{platforms/86xx/mpc86xx_pcie.c => sysdev/fsl_pcie.c}
>>>> (100%)
>>>>
>>>> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index
>>>> 6dfbd52..f68de20 100644
>>>> --- a/arch/powerpc/Kconfig
>>>> +++ b/arch/powerpc/Kconfig
>>>> @@ -168,6 +168,7 @@ config PPC_86xx
>>>>  	bool "Freescale 86xx"
>>>>  	select 6xx
>>>>  	select FSL_SOC
>>>> +	select FSL_PCIE
>>>>  	select PPC_FPU
>>>>  	select ALTIVEC
>>>>  	help
>>>> @@ -1022,6 +1023,10 @@ config SBUS
>>>>  config FSL_SOC
>>>>  	bool
>>>>
>>>> +config FSL_PCIE
>>>> +	bool
>>>> +	depends on PPC_86xx
>>>> +
>>> How about 8548 with pcie?
>>
>> There isn't any in tree 85xx user of PCIe at this point.
> No!
> At lease my original serial patches include the pcie support for 8548.
> Roy
Which patches?  I'm not seeing any code for 8548. Can you point at  
something specific in the tree?
- k
^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c.
  2007-03-09  4:21       ` Kumar Gala
@ 2007-03-09  5:11         ` Zang Roy-r61911
  0 siblings, 0 replies; 9+ messages in thread
From: Zang Roy-r61911 @ 2007-03-09  5:11 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev
> On Mar 8, 2007, at 9:53 PM, Zang Roy-r61911 wrote:
>=20
> >>
> >> On Mar 8, 2007, at 9:32 PM, Zang Roy-r61911 wrote:
> >>
> >>>> This move sets the stage for the use of generic PCI
> >> Express code in
> >>>> 85xx and 86xx parts from FSL.  Subsequent patches for
> >>>> 8548 and 8544 will be able to use this shared code.
> >>>>
> >>>> Signed-off-by: Jon Loeliger <jdl@freescale.com>
> >>>> Acked-by: Andy Fleming <afleming@freescale.com>
> >>>> ---
> >>>>  arch/powerpc/Kconfig                               |    5 +++++
> >>>>  arch/powerpc/platforms/86xx/Makefile               |    2 +-
> >>>>  arch/powerpc/sysdev/Makefile                       |    1 +
> >>>>  .../86xx/mpc86xx_pcie.c =3D> sysdev/fsl_pcie.c}      |    2 --
> >>>>  4 files changed, 7 insertions(+), 3 deletions(-)  rename=20
> >>>> arch/powerpc/{platforms/86xx/mpc86xx_pcie.c =3D> =
sysdev/fsl_pcie.c}
> >>>> (100%)
> >>>>
> >>>> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index=20
> >>>> 6dfbd52..f68de20 100644
> >>>> --- a/arch/powerpc/Kconfig
> >>>> +++ b/arch/powerpc/Kconfig
> >>>> @@ -168,6 +168,7 @@ config PPC_86xx
> >>>>  	bool "Freescale 86xx"
> >>>>  	select 6xx
> >>>>  	select FSL_SOC
> >>>> +	select FSL_PCIE
> >>>>  	select PPC_FPU
> >>>>  	select ALTIVEC
> >>>>  	help
> >>>> @@ -1022,6 +1023,10 @@ config SBUS
> >>>>  config FSL_SOC
> >>>>  	bool
> >>>>
> >>>> +config FSL_PCIE
> >>>> +	bool
> >>>> +	depends on PPC_86xx
> >>>> +
> >>> How about 8548 with pcie?
> >>
> >> There isn't any in tree 85xx user of PCIe at this point.
> > No!
> > At lease my original serial patches include the pcie=20
> support for 8548.
> > Roy
>=20
> Which patches?  I'm not seeing any code for 8548. Can you=20
> point at something specific in the tree?
It does not in the current tree.
I will provide the corresponding patches ASAP.
Roy
^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c.
  2007-03-09  3:32 ` Zang Roy-r61911
  2007-03-09  3:49   ` Kumar Gala
@ 2007-03-09 17:15   ` Jon Loeliger
  2007-03-10  2:32     ` [PATCH] Move 8641 PCI-Express toarch/powerpc/sysdev/fsl_pcie.c Zang Roy-r61911
  1 sibling, 1 reply; 9+ messages in thread
From: Jon Loeliger @ 2007-03-09 17:15 UTC (permalink / raw)
  To: Zang Roy-r61911; +Cc: linuxppc-dev
On Thu, 2007-03-08 at 21:32, Zang Roy-r61911 wrote:
> > This move sets the stage for the use of generic PCI Express 
> > code in 85xx and 86xx parts from FSL.  Subsequent patches for 
> > 8548 and 8544 will be able to use this shared code.
> How about 8548 with pcie?
> Roy
Roy,
This patch that I released was a very simple
effort to _begin_ the migration of PCI-Ex out
of 8641 into a generic place so that we can
get your patches accepted more readily.
This first step simply _moved_ the existing file
out of 8641 and patched up the CONFIG options so
that 8641 will still work.  Notice that this does
not yet address the 85xx series boards at all.
Those patches (yours) will follow shortly.
We will need to resolve the problems with the
transparent bridges issue first, though.  I am
currently working through some of those issues
with Kumar.  We can add you to the discussion
there for sure!
jdl
^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [PATCH] Move 8641 PCI-Express toarch/powerpc/sysdev/fsl_pcie.c.
  2007-03-09 17:15   ` Jon Loeliger
@ 2007-03-10  2:32     ` Zang Roy-r61911
  0 siblings, 0 replies; 9+ messages in thread
From: Zang Roy-r61911 @ 2007-03-10  2:32 UTC (permalink / raw)
  To: Jon Loeliger
  Cc: linuxppc-dev, Haiying-r54964, Wang (Wang Haiying-r54964),
	Yang, Xin-Xin (E-mail) (Yang Xin-Xin-r48390),
	Wei-r63237, Zhang (Zhang Wei-r63237)
>=20
> On Thu, 2007-03-08 at 21:32, Zang Roy-r61911 wrote:
> > > This move sets the stage for the use of generic PCI=20
> Express code in=20
> > > 85xx and 86xx parts from FSL.  Subsequent patches for
> > > 8548 and 8544 will be able to use this shared code.
>=20
>=20
> > How about 8548 with pcie?
> > Roy
>=20
> Roy,
>=20
> This patch that I released was a very simple
> effort to _begin_ the migration of PCI-Ex out
> of 8641 into a generic place so that we can
> get your patches accepted more readily.
Thanks. But I do think it is part of my previous patches :-).=20
My patches mainly contains
(1) Move 86xx pcie support to powerpc/sysdev/fsl_pcie.c and=20
change some CONFIG Option.
(2) Add 8548 pcie support based on fsl_pcie.c. Add PCIE ATMU for 8548.
(3) Remove some reluctant code in fsl_pcie.c.
(4) Add link status check for pcie.
(5) Unify 85xx/86xx pcie mmu register define.
(6) Add device tree for 85xx cds legacy board.
The code for PCIE ATMU and link status check are from Wei Zhang.=20
The patches have been tested for both 85xx/86xx boards and merged to the
85xx git repo. in opensource.freescale.com
>=20
> This first step simply _moved_ the existing file
> out of 8641 and patched up the CONFIG options so
> that 8641 will still work.  Notice that this does
> not yet address the 85xx series boards at all.
> Those patches (yours) will follow shortly.
>=20
> We will need to resolve the problems with the
> transparent bridges issue first, though.  I am
> currently working through some of those issues
> with Kumar.  We can add you to the discussion
> there for sure!
I do not touch the code for common pci/e architecture because more
discussions
might be needed. I had thought to add the  85xx pcie support early. I
received
too many request for its support.
Thanks.
Roy
^ permalink raw reply	[flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-03-10  2:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07 20:48 [PATCH] Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c Jon Loeliger
2007-03-08  5:22 ` Kumar Gala
2007-03-09  3:32 ` Zang Roy-r61911
2007-03-09  3:49   ` Kumar Gala
2007-03-09  3:53     ` Zang Roy-r61911
2007-03-09  4:21       ` Kumar Gala
2007-03-09  5:11         ` Zang Roy-r61911
2007-03-09 17:15   ` Jon Loeliger
2007-03-10  2:32     ` [PATCH] Move 8641 PCI-Express toarch/powerpc/sysdev/fsl_pcie.c Zang Roy-r61911
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).