From 046e55efa686f40b4cad312e1e64348f19107bd9 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Mon, 15 Jun 2015 18:09:24 +0800 Subject: MLK-11114 imx: mx6qp disable double line feature With L2 double line fill enabled, the stress reboot test failure is met on USB(MLK10738) or SD3.0(MLK11072). By disabling L2 double line fill, the stress reboot can pass. Note we are still investigating on this issue to find the evidence how these issues are corelated with L2 double line fill. Signed-off-by: Peng Fan Signed-off-by: Bai Ping --- arch/arm/cpu/armv7/mx6/soc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 660e084..6cf0b51 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -1091,6 +1091,14 @@ void v7_outer_cache_enable(void) if (((cache_id & L2X0_CACHE_ID_PART_MASK) == L2X0_CACHE_ID_PART_L310) && ((cache_id & L2X0_CACHE_ID_RTL_MASK) < L2X0_CACHE_ID_RTL_R3P2)) val &= ~(1 << 30); + + /* + * To i.MX6DQP, still disable double line fill feature due to system + * reboot issue + */ + if (is_mx6dqp()) + val &= ~(1 << 30); + writel(val, &pl310->pl310_prefetch_ctrl); val = readl(&pl310->pl310_power_ctrl); -- cgit v1.1