mx6ul_14x14_evk: Fix DDR calibration values
PATCH 1/1 mx6ul_14x14_evk: Fix DDR calibration values
From: Fabio Estevam <[email protected]>
When running NXP 4.1 kernel with U-Boot mainline we observe a hang when going into the lowest operational point of cpufreq.
Comparing the DDR calibration values against NXP U-Boot showed that the values were incorrect.
Adjust the calibration values so that we can avoid such system hang.
--- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +4 -4
@@ -784,10 +784,10 @@ static struct mx6ul_iomux_ddr_regs mx6_ddr_ioregs = { };static struct mx6_mmdc_calibration mx6_mmcd_calib = { - .p0_mpwldectrl0 =0x00070007 , - .p0_mpdgctrl0 =0x41490145 , - .p0_mprddlctl =0x40404546 , - .p0_mpwrdlctl =0x4040524D , + .p0_mpwldectrl0 =0x00000000 , + .p0_mpdgctrl0 =0x41570155 , + .p0_mprddlctl =0x4040474A , + .p0_mpwrdlctl =0x40405550 , };struct mx6_ddr_sysinfo ddr_sysinfo = {
Signature · 1 line
2.7.4
PATCH 1/1 mx6ul_14x14_evk: Fix DDR calibration values
Hi Fabio,
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
When running NXP 4.1 kernel with U-Boot mainline we observe a hang when going into the lowest operational point of cpufreq.
Quoted 7 lines
Comparing the DDR calibration values against NXP U-Boot showed that the values were incorrect.
Adjust the calibration values so that we can avoid such system hang.
Reported-by Eric Nelson <[email protected]>Signed-off-by Fabio Estevam <[email protected]>
Thanks,
Peng.
Quoted 30 lines
---
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c| 8 ++++----1 file changed, 4 insertions(+), 4 deletions(-)board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +4
-4@@ -784,10 +784,10 @@ static struct mx6ul_iomux_ddr_regs mx6_ddr_ioregs = { };static struct mx6_mmdc_calibration mx6_mmcd_calib = { - .p0_mpwldectrl0 =0x00070007 , - .p0_mpdgctrl0 =0x41490145 , - .p0_mprddlctl =0x40404546 , - .p0_mpwrdlctl =0x4040524D , + .p0_mpwldectrl0 =0x00000000 , + .p0_mpdgctrl0 =0x41570155 , + .p0_mprddlctl =0x4040474A , + .p0_mpwrdlctl =0x40405550 , };struct mx6_ddr_sysinfo ddr_sysinfo = {Signature · 6 lines
2.7.4 _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
PATCH 1/1 mx6ul_14x14_evk: Fix DDR calibration values
In reply to Fabio EstevamHi Eric,
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
When running NXP 4.1 kernel with U-Boot mainline we observe a hang when going into the lowest operational point of cpufreq.
Quoted 7 lines
Comparing the DDR calibration values against NXP U-Boot showed that the values were incorrect.
Adjust the calibration values so that we can avoid such system hang.
Reported-by Eric Nelson <[email protected]>Signed-off-by Fabio Estevam <[email protected]>
After running more tests I still get the hang sometimes, so we still need to review the DDR SPL settings.
Regards,
Fabio Estevam
PATCH 1/1 mx6ul_14x14_evk: Fix DDR calibration values
Hi Fabio,
Quoted 16 lines · Fabio Estevam
Hi Eric,
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
When running NXP 4.1 kernel with U-Boot mainline we observe a hang when going into the lowest operational point of cpufreq.
Quoted 7 lines
Comparing the DDR calibration values against NXP U-Boot showed that the values were incorrect.
Adjust the calibration values so that we can avoid such system hang.
Reported-by Eric Nelson <[email protected]>Signed-off-by Fabio Estevam <[email protected]>
Quoted 7 lines
After running more tests I still get the hang sometimes, so we still need to review the DDR SPL settings.
Regards,
Fabio Estevam
I just test this patch against imx/master and I'm still seeing the issue:
root at imx6ulevk:~# Bus freq set to 24000000 start...
Do you have kernel debug messages enabled so you can see the bus frequency change?
PATCH 1/1 mx6ul_14x14_evk: Fix DDR calibration values
Hi Fabio,
Quoted 23 lines · Eric Nelson
Quoted 14 lines · Fabio Estevam
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
When running NXP 4.1 kernel with U-Boot mainline we observe a hang when going into the lowest operational point of cpufreq.
Quoted 7 lines
Comparing the DDR calibration values against NXP U-Boot showed that the values were incorrect.
Adjust the calibration values so that we can avoid such system hang.
Reported-by Eric Nelson <[email protected]>Signed-off-by Fabio Estevam <[email protected]>Quoted 7 lines
After running more tests I still get the hang sometimes, so we still need to review the DDR SPL settings.
Regards,
Fabio Estevam
Quoted 9 lines
I just test this patch against imx/master and I'm still seeing the issue:
root at imx6ulevk:~# Bus freq set to 24000000 start...Do you have kernel debug messages enabled so you can see the bus frequency change?
Things are working well using your config patch:
http://pastebin.com/crAe1Yr1
root at imx6ulevk:~#
Bus freq set to 24000000 start...
Bus freq set to 24000000 done!
root at imx6ulevk:~#
root at imx6ulevk:~#
Bus freq set to 400000000 start...
Bus freq set to 400000000 done!
PATCH 1/1 mx6ul_14x14_evk: Fix DDR calibration values
Hi Eric,
Quoted 2 lines · Eric Nelson
Things are working well using your config patch:
http://pastebin.com/crAe1Yr1
Please test this one:
http://lists.denx.de/pipermail/u-boot/2016-August/265131.html
Thanks
PATCH 1/1 mx6ul_14x14_evk: Fix DDR calibration values
Thanks very much for your efforts Fabio,
Quoted 10 lines · Fabio Estevam
Hi Eric,
Quoted 2 lines · Eric Nelson
Things are working well using your config patch:
http://pastebin.com/crAe1Yr1Please test this one:
http://lists.denx.de/pipermail/u-boot/2016-August/265131.html
I did and it fixes the problem.
I sent a review with some concerns about why and how, but patch 1/3 confirmed that the problem doesn't stem from calibration.
This is good, because I originally found the problem on a custom board that had pristine calibration values which survived multiple overnight stress tests (using the stress tool and Linux).
Regards,
Eric