[PATCH] l2c: warn about misconfigured PL310 shared-override

From
Fabio Estevam <festevam@gmail.com>
Date
2016-06-04 13:18:40
Reply to
Lucas Stach, 2016-05-31
Hi Lucas,

On Tue, May 31, 2016 at 11:43 AM, Lucas Stach [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index c61996c256cc..d2690f0d3cd0 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -815,6 +815,11 @@ static int __init __l2c_init(const struct l2c_init_data *data,
                pr_warn("L2C: DT/platform modifies aux control register: 0x%08x -> 0x%08x\n",
                        old_aux, aux);

+       if (((cache_id & L2X0_CACHE_ID_PART_MASK) == L2X0_CACHE_ID_PART_L310) &&
+           !(aux & L2C_AUX_CTRL_SHARED_OVERRIDE))
+               pr_warn("L2C-310 shared attribute override enable not set, "
+                       "system is non-compliant to ARM specified memory aliasing rules\n");
+
Should something like "Make sure to set this bit in the bootloader" be
displayed? At least this would give some hint as to where the problem
needs to be fixed.
Thread (2 messages) 2 messages, 2 authors, last reply 2016-06-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help