Message ID | 20231021011025.568-2-andre.przywara@arm.com |
---|---|
State | New |
Delegated to: | Andre Przywara |
Headers | show |
Series | sunxi: DRAM: H6: fixes and size reduction | expand |
Tested the patch. With only dsb, it hangs within 5 reboots itself. Adding udelay(50) moved it to once in 20 times. But it still hangs. So this patch does not solve the problem Thanks & Regards Gunjan Gupta
diff --git a/arch/arm/mach-sunxi/dram_sun50i_h6.c b/arch/arm/mach-sunxi/dram_sun50i_h6.c index bff2e42513c..43a2d19f084 100644 --- a/arch/arm/mach-sunxi/dram_sun50i_h6.c +++ b/arch/arm/mach-sunxi/dram_sun50i_h6.c @@ -554,6 +554,12 @@ static bool mctl_channel_init(struct dram_para *para) writel(0x7ff, &mctl_com->maer1); writel(0xffff, &mctl_com->maer2); + /* + * Make sure all MMIO writes are committed to the DRAM controller, + * so that accesses to the DRAM array adhere to the above programming. + */ + dsb(); + return true; }