Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Kever Yang
Hi Jaehoon, Philipp has send out another patch for disable t he secure region, and this patch is no need now. Thanks, - Kever On 03/30/2017 01:04 PM, Jaehoon Chung wrote: On 03/30/2017 12:01 PM, Kever Yang wrote: Hi Philipp, On 03/29/2017 08:59 PM, Dr. Philipp Tomsich wrote: Kever

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Jaehoon Chung
On 03/30/2017 12:01 PM, Kever Yang wrote: > Hi Philipp, > > > On 03/29/2017 08:59 PM, Dr. Philipp Tomsich wrote: >> Kever, >> >> I did a bit of quick experiment by altering the DMA target addresses for >> the DMA and can confirm that the root cause must be one of the security >> registers. > > T

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Kever Yang
Hi Philipp, On 03/29/2017 08:59 PM, Dr. Philipp Tomsich wrote: Kever, I did a bit of quick experiment by altering the DMA target addresses for the DMA and can confirm that the root cause must be one of the security registers. Thanks for debugging on this, you are right about the root cause.

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Dr. Philipp Tomsich
Kever, I did a bit of quick experiment by altering the DMA target addresses for the DMA and can confirm that the root cause must be one of the security registers. The DMA target addresses are located on the SPL stack, which by default grows down from 0x0008_ (so the addresses will be 0x0007_f

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-29 Thread Dr. Philipp Tomsich
Kever, we didn’t have time to track this down yet, so we’ve put this work-around in place to be reverted once we isolate this issue. The problem goes away once ATF is running in EL3 and U-Boot executes in its normal privilege level… so our guess is that it’s either an issue with running in EL3 or

Re: [U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-28 Thread Kever Yang
Hi Philipp, So you got hang in SPL if the DWMMC is no in fifo mode, do you have any clue for what's the root cause? + Ziyuan, Hi Ziyuan, Could you double check this issue? Does it also happen at rk3288 dwmmc? Thanks, - Kever On 03/29/2017 01:14 AM, Philipp Tomsich wrote: The RK3399

[U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-28 Thread Philipp Tomsich
The RK3399 hangs during DMA of the Designware MMC controller, when performing DMA-based transactions in SPL. To work around this issue, we disable DMA-based access modes in the SPL stage. With this fix in place, we can now drop 'fifo-mode' in the DTS for the RK3399-Q7 (Puma). Signed-off-by: Phil