[U-Boot] [PATCH 1/8] armv8: fsl-layerscpae: correct the PCIe controllers' region size

Z.q. Hou zhiqiang.hou at nxp.com
Thu Feb 14 03:41:12 UTC 2019


Hi Bin,

Thanks a lot for your comments!

> -----Original Message-----
> From: Bin Meng <bmeng.cn at gmail.com>
> Sent: 2019年2月12日 11:33
> To: Z.q. Hou <zhiqiang.hou at nxp.com>
> Cc: u-boot at lists.denx.de; albert.u.boot at aribaud.net; Priyanka Jain
> <priyanka.jain at nxp.com>; York Sun <york.sun at nxp.com>;
> sriram.dash at nxp.com; yamada.masahiro at socionext.com; Prabhakar
> Kushwaha <prabhakar.kushwaha at nxp.com>; Mingkai Hu
> <mingkai.hu at nxp.com>; M.h. Lian <minghuan.lian at nxp.com>
> Subject: Re: [U-Boot] [PATCH 1/8] armv8: fsl-layerscpae: correct the PCIe
> controllers' region size
> 
> On Tue, Oct 30, 2018 at 10:21 PM Z.q. Hou <zhiqiang.hou at nxp.com> wrote:
> >
> > From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
> >
> > The LS2080A has 8GB region for each PCIe controller, while the other
> > platforms have 32GB.
> >
> > Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
> > ---
> >  arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 7 +++++++
> >  1 file changed, 7 insertions(+)
> >
> > diff --git a/arch/arm/include/asm/arch-fsl-layerscape/cpu.h
> > b/arch/arm/include/asm/arch-fsl-layerscape/cpu.h
> > index eaa9ed251e..b4bd2c604a 100644
> > --- a/arch/arm/include/asm/arch-fsl-layerscape/cpu.h
> > +++ b/arch/arm/include/asm/arch-fsl-layerscape/cpu.h
> > @@ -34,10 +34,17 @@
> >  #define CONFIG_SYS_FSL_QBMAN_BASE      0x818000000
> >  #define CONFIG_SYS_FSL_QBMAN_SIZE      0x8000000
> >  #define CONFIG_SYS_FSL_QBMAN_SIZE_1    0x4000000
> > +#ifdef CONFIG_ARCH_LS2080A
> >  #define CONFIG_SYS_PCIE1_PHYS_SIZE     0x200000000
> >  #define CONFIG_SYS_PCIE2_PHYS_SIZE     0x200000000
> >  #define CONFIG_SYS_PCIE3_PHYS_SIZE     0x200000000
> >  #define CONFIG_SYS_PCIE4_PHYS_SIZE     0x200000000
> > +#else
> > +#define CONFIG_SYS_PCIE1_PHYS_SIZE     0x800000000
> > +#define CONFIG_SYS_PCIE2_PHYS_SIZE     0x800000000
> > +#define CONFIG_SYS_PCIE3_PHYS_SIZE     0x800000000
> > +#define CONFIG_SYS_PCIE4_PHYS_SIZE     0x800000000
> > +#endif
> 
> Shouldn't these sizes be encoded in the ranges property of the PCIe node in
> DTS files?

No, these macros are used to setup the MMU tables for the address space assigned to PCIe controllers.

> >  #define CONFIG_SYS_FSL_WRIOP1_BASE     0x4300000000
> >  #define CONFIG_SYS_FSL_WRIOP1_SIZE     0x100000000
> >  #define CONFIG_SYS_FSL_AIOP1_BASE      0x4b00000000
> > --
> 
> Regards,
> Bin

Thanks,
Zhiqiang


More information about the U-Boot mailing list