Re: i.MX LPDDR4 Firmware

2021-10-20 Thread Peng Fan (OSS)




On 2021/10/20 14:27, Marcel Ziswiler wrote:

On Tue, 2021-10-19 at 15:04 +0200, Heiko Thiery wrote:

  Hi Marcel,

Am Di., 19. Okt. 2021 um 11:47 Uhr schrieb Marcel Ziswiler
:


Hi Heiko

On Mon, 2021-10-18 at 11:23 +0200, Heiko Thiery wrote:

Hi all,

I see that in the NXP firmware-imx package different versions of the
LPDDR4 train firmware is included but I cannot find a Release Note or
something else that describes the differences. Does anyone know what
is the correct version to be used?


Doesn't it depend on which generation of MScale one is using?

Anyway, from NXP's user guide [1]:

For i.MX 8M Quad and i.MX 8M Mini LPDDR4 EVK, copy lpddr4_pmu_train_1d_dmem.bin,
lpddr4_pmu_train_1d_imem.bin, lpddr4_pmu_train_2d_dmem.bin, and 
lpddr4_pmu_train_2d_imem.bin from
firmware/ddr/synopsys of firmware-imx package to imx-mkimage/iMX8M/.

For i.MX 8M Mini DDR4 EVK, copy ddr4_imem_1d.bin, ddr4_dmem_1d.bin, 
ddr4_imem_2d.bin, and ddr4_dmem_2d.bin
from firmware/ddr/synopsys of firmware-imx package to imx-mkimage/iMX8M.

For i.MX 8M Plus LPDDR4 EVK, copy lpddr4_pmu_train_1d_dmem_201904.bin, 
lpddr4_pmu_train_1d_imem_201904.bin,
lpddr4_pmu_train_2d_dmem_201904.bin, and lpddr4_pmu_train_2d_imem_201904.bin 
from firmware/ddr/synopsys of
firmware-imx package to imx-mkimage/iMX8M/.


Ok, I didn't even notice that and I just wanted to make sure I was
using the right ones here. Maybe someone can tell us the use case for
the "*_202006.bin" files.


Okay, I guess NXP uses it for their proprietary imx-mkimage stuff for the i.MX 
8M Plus:

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Fimx-mkimage%2Ftree%2FiMX8M%2Fsoc.mak%3Fh%3Dimx_5.4.70_2.3.0%23n64data=04%7C01%7Cpeng.fan%40nxp.com%7C07c32329f8e843e4dcac08d99392afca%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637703080493432075%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=kZS%2BNpmEoZS5koyfz8Kz1yvLh9D1oMwRegm%2BIwN0%2Bew%3Dreserved=0

But, as mentioned above, I could not find any official documentation not to 
mention release notes about any of
this anywhere.

@NXP: Anybody mind telling us more about this?


Please use the one mentioned in imx-mkimage matching the release tag.
The documentation was missed to be updated, thanks for pointing this out.

Thanks,
Peng.




So their latest documentation does not even mention the later firmware 
available!


Here is the content of the latest NXP release:
lpddr4_pmu_train_1d_dmem_201904.bin
lpddr4_pmu_train_1d_dmem_202006.bin
lpddr4_pmu_train_1d_dmem.bin
lpddr4_pmu_train_1d_imem_201904.bin
lpddr4_pmu_train_1d_imem_202006.bin
lpddr4_pmu_train_1d_imem.bin
lpddr4_pmu_train_2d_dmem_201904.bin
lpddr4_pmu_train_2d_dmem_202006.bin
lpddr4_pmu_train_2d_dmem.bin
lpddr4_pmu_train_2d_imem_201904.bin
lpddr4_pmu_train_2d_imem_202006.bin
lpddr4_pmu_train_2d_imem.bin


[1] 
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FIMX_LINUX_USERS_GUIDE.pdfdata=04%7C01%7Cpeng.fan%40nxp.com%7C07c32329f8e843e4dcac08d99392afca%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637703080493432075%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=uXMz3wv7nd8hGdSCG7kd341vRN473B%2B9%2Fm5TD3G3OhI%3Dreserved=0


Thanks


Cheers


Thanks,

Heiko


Re: i.MX LPDDR4 Firmware

2021-10-20 Thread Marcel Ziswiler
On Tue, 2021-10-19 at 15:04 +0200, Heiko Thiery wrote:
>  Hi Marcel,
> 
> Am Di., 19. Okt. 2021 um 11:47 Uhr schrieb Marcel Ziswiler
> :
> > 
> > Hi Heiko
> > 
> > On Mon, 2021-10-18 at 11:23 +0200, Heiko Thiery wrote:
> > > Hi all,
> > > 
> > > I see that in the NXP firmware-imx package different versions of the
> > > LPDDR4 train firmware is included but I cannot find a Release Note or
> > > something else that describes the differences. Does anyone know what
> > > is the correct version to be used?
> > 
> > Doesn't it depend on which generation of MScale one is using?
> > 
> > Anyway, from NXP's user guide [1]:
> > 
> > For i.MX 8M Quad and i.MX 8M Mini LPDDR4 EVK, copy 
> > lpddr4_pmu_train_1d_dmem.bin,
> > lpddr4_pmu_train_1d_imem.bin, lpddr4_pmu_train_2d_dmem.bin, and 
> > lpddr4_pmu_train_2d_imem.bin from
> > firmware/ddr/synopsys of firmware-imx package to imx-mkimage/iMX8M/.
> > 
> > For i.MX 8M Mini DDR4 EVK, copy ddr4_imem_1d.bin, ddr4_dmem_1d.bin, 
> > ddr4_imem_2d.bin, and ddr4_dmem_2d.bin
> > from firmware/ddr/synopsys of firmware-imx package to imx-mkimage/iMX8M.
> > 
> > For i.MX 8M Plus LPDDR4 EVK, copy lpddr4_pmu_train_1d_dmem_201904.bin, 
> > lpddr4_pmu_train_1d_imem_201904.bin,
> > lpddr4_pmu_train_2d_dmem_201904.bin, and 
> > lpddr4_pmu_train_2d_imem_201904.bin from firmware/ddr/synopsys of
> > firmware-imx package to imx-mkimage/iMX8M/.
> 
> Ok, I didn't even notice that and I just wanted to make sure I was
> using the right ones here. Maybe someone can tell us the use case for
> the "*_202006.bin" files.

Okay, I guess NXP uses it for their proprietary imx-mkimage stuff for the i.MX 
8M Plus:

https://source.codeaurora.org/external/imx/imx-mkimage/tree/iMX8M/soc.mak?h=imx_5.4.70_2.3.0#n64

But, as mentioned above, I could not find any official documentation not to 
mention release notes about any of
this anywhere.

@NXP: Anybody mind telling us more about this?

> > So their latest documentation does not even mention the later firmware 
> > available!
> > 
> > > Here is the content of the latest NXP release:
> > > lpddr4_pmu_train_1d_dmem_201904.bin
> > > lpddr4_pmu_train_1d_dmem_202006.bin
> > > lpddr4_pmu_train_1d_dmem.bin
> > > lpddr4_pmu_train_1d_imem_201904.bin
> > > lpddr4_pmu_train_1d_imem_202006.bin
> > > lpddr4_pmu_train_1d_imem.bin
> > > lpddr4_pmu_train_2d_dmem_201904.bin
> > > lpddr4_pmu_train_2d_dmem_202006.bin
> > > lpddr4_pmu_train_2d_dmem.bin
> > > lpddr4_pmu_train_2d_imem_201904.bin
> > > lpddr4_pmu_train_2d_imem_202006.bin
> > > lpddr4_pmu_train_2d_imem.bin
> > 
> > [1] https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf
> > 
> > > Thanks
> > 
> > Cheers
> 
> Thanks,
> 
> Heiko


Re: i.MX LPDDR4 Firmware

2021-10-19 Thread Heiko Thiery
 Hi Marcel,

Am Di., 19. Okt. 2021 um 11:47 Uhr schrieb Marcel Ziswiler
:
>
> Hi Heiko
>
> On Mon, 2021-10-18 at 11:23 +0200, Heiko Thiery wrote:
> > Hi all,
> >
> > I see that in the NXP firmware-imx package different versions of the
> > LPDDR4 train firmware is included but I cannot find a Release Note or
> > something else that describes the differences. Does anyone know what
> > is the correct version to be used?
>
> Doesn't it depend on which generation of MScale one is using?
>
> Anyway, from NXP's user guide [1]:
>
> For i.MX 8M Quad and i.MX 8M Mini LPDDR4 EVK, copy 
> lpddr4_pmu_train_1d_dmem.bin,
> lpddr4_pmu_train_1d_imem.bin, lpddr4_pmu_train_2d_dmem.bin, and 
> lpddr4_pmu_train_2d_imem.bin from
> firmware/ddr/synopsys of firmware-imx package to imx-mkimage/iMX8M/.
>
> For i.MX 8M Mini DDR4 EVK, copy ddr4_imem_1d.bin, ddr4_dmem_1d.bin, 
> ddr4_imem_2d.bin, and ddr4_dmem_2d.bin
> from firmware/ddr/synopsys of firmware-imx package to imx-mkimage/iMX8M.
>
> For i.MX 8M Plus LPDDR4 EVK, copy lpddr4_pmu_train_1d_dmem_201904.bin, 
> lpddr4_pmu_train_1d_imem_201904.bin,
> lpddr4_pmu_train_2d_dmem_201904.bin, and lpddr4_pmu_train_2d_imem_201904.bin 
> from firmware/ddr/synopsys of
> firmware-imx package to imx-mkimage/iMX8M/.

Ok, I didn't even notice that and I just wanted to make sure I was
using the right ones here. Maybe someone can tell us the use case for
the "*_202006.bin" files.

> So their latest documentation does not even mention the later firmware 
> available!
>
> > Here is the content of the latest NXP release:
> > lpddr4_pmu_train_1d_dmem_201904.bin
> > lpddr4_pmu_train_1d_dmem_202006.bin
> > lpddr4_pmu_train_1d_dmem.bin
> > lpddr4_pmu_train_1d_imem_201904.bin
> > lpddr4_pmu_train_1d_imem_202006.bin
> > lpddr4_pmu_train_1d_imem.bin
> > lpddr4_pmu_train_2d_dmem_201904.bin
> > lpddr4_pmu_train_2d_dmem_202006.bin
> > lpddr4_pmu_train_2d_dmem.bin
> > lpddr4_pmu_train_2d_imem_201904.bin
> > lpddr4_pmu_train_2d_imem_202006.bin
> > lpddr4_pmu_train_2d_imem.bin
>
> [1] https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf
>
> > Thanks
>
> Cheers

Thanks,

Heiko


Re: i.MX LPDDR4 Firmware

2021-10-19 Thread Marcel Ziswiler
Hi Heiko

On Mon, 2021-10-18 at 11:23 +0200, Heiko Thiery wrote:
> Hi all,
> 
> I see that in the NXP firmware-imx package different versions of the
> LPDDR4 train firmware is included but I cannot find a Release Note or
> something else that describes the differences. Does anyone know what
> is the correct version to be used?

Doesn't it depend on which generation of MScale one is using?

Anyway, from NXP's user guide [1]:

For i.MX 8M Quad and i.MX 8M Mini LPDDR4 EVK, copy lpddr4_pmu_train_1d_dmem.bin,
lpddr4_pmu_train_1d_imem.bin, lpddr4_pmu_train_2d_dmem.bin, and 
lpddr4_pmu_train_2d_imem.bin from
firmware/ddr/synopsys of firmware-imx package to imx-mkimage/iMX8M/.

For i.MX 8M Mini DDR4 EVK, copy ddr4_imem_1d.bin, ddr4_dmem_1d.bin, 
ddr4_imem_2d.bin, and ddr4_dmem_2d.bin
from firmware/ddr/synopsys of firmware-imx package to imx-mkimage/iMX8M.

For i.MX 8M Plus LPDDR4 EVK, copy lpddr4_pmu_train_1d_dmem_201904.bin, 
lpddr4_pmu_train_1d_imem_201904.bin,
lpddr4_pmu_train_2d_dmem_201904.bin, and lpddr4_pmu_train_2d_imem_201904.bin 
from firmware/ddr/synopsys of
firmware-imx package to imx-mkimage/iMX8M/.

So their latest documentation does not even mention the later firmware 
available!

> Here is the content of the latest NXP release:
> lpddr4_pmu_train_1d_dmem_201904.bin
> lpddr4_pmu_train_1d_dmem_202006.bin
> lpddr4_pmu_train_1d_dmem.bin
> lpddr4_pmu_train_1d_imem_201904.bin
> lpddr4_pmu_train_1d_imem_202006.bin
> lpddr4_pmu_train_1d_imem.bin
> lpddr4_pmu_train_2d_dmem_201904.bin
> lpddr4_pmu_train_2d_dmem_202006.bin
> lpddr4_pmu_train_2d_dmem.bin
> lpddr4_pmu_train_2d_imem_201904.bin
> lpddr4_pmu_train_2d_imem_202006.bin
> lpddr4_pmu_train_2d_imem.bin

[1] https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

> Thanks

Cheers

Marcel


i.MX LPDDR4 Firmware

2021-10-18 Thread Heiko Thiery
Hi all,

I see that in the NXP firmware-imx package different versions of the
LPDDR4 train firmware is included but I cannot find a Release Note or
something else that describes the differences. Does anyone know what
is the correct version to be used?

Here is the content of the latest NXP release:
lpddr4_pmu_train_1d_dmem_201904.bin
lpddr4_pmu_train_1d_dmem_202006.bin
lpddr4_pmu_train_1d_dmem.bin
lpddr4_pmu_train_1d_imem_201904.bin
lpddr4_pmu_train_1d_imem_202006.bin
lpddr4_pmu_train_1d_imem.bin
lpddr4_pmu_train_2d_dmem_201904.bin
lpddr4_pmu_train_2d_dmem_202006.bin
lpddr4_pmu_train_2d_dmem.bin
lpddr4_pmu_train_2d_imem_201904.bin
lpddr4_pmu_train_2d_imem_202006.bin
lpddr4_pmu_train_2d_imem.bin

Thanks
-- 
Heiko