2014-06-11 08:26:06

by Paul Bolle

[permalink] [raw]
Subject: ARC: CONFIG_ARC_MMU_V4

Hi Vineet,

Commit ef680cdc2437 ("ARC: Disable caches in early boot if so
configured") landed in linux-next yesterday (ie, next-20140610). It
includes two optional tests for CONFIG_ARC_MMU_V4. There's no Kconfig
symbol ARC_MMU_V4 in linux-next.

I assume you've got that symbol queued somewhere. Is that correct?

Thanks,


Paul Bolle


2014-06-11 08:43:13

by Vineet Gupta

[permalink] [raw]
Subject: Re: ARC: CONFIG_ARC_MMU_V4

On Wednesday 11 June 2014 01:56 PM, Paul Bolle wrote:
> Hi Vineet,
>
> Commit ef680cdc2437 ("ARC: Disable caches in early boot if so
> configured") landed in linux-next yesterday (ie, next-20140610). It
> includes two optional tests for CONFIG_ARC_MMU_V4. There's no Kconfig
> symbol ARC_MMU_V4 in linux-next.
>
> I assume you've got that symbol queued somewhere. Is that correct?

My bad - MMU_V4 support is still in works, and not ready for mainline yet. If you
wish you could submit a patch to nuke it.

Thx,
-Vineet

2014-06-11 09:11:53

by Paul Bolle

[permalink] [raw]
Subject: [PATCH] ARC: remove checks for CONFIG_ARC_MMU_V4

There's no Kconfig symbol ARC_MMU_V4 so the checks for CONFIG_ARC_MMU_V4
will always evaluate to false. Remove them.

Signed-off-by: Paul Bolle <[email protected]>
---
Entirely untested!

It would be nice if this could be squashed into commit ef680cdc2437
("ARC: Disable caches in early boot if so configured"). But I guess the
ARC tree that is included in linux-next cannot be rebased.

arch/arc/include/asm/cache.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arc/include/asm/cache.h b/arch/arc/include/asm/cache.h
index c1d3d2da1191..b3c750979aa1 100644
--- a/arch/arc/include/asm/cache.h
+++ b/arch/arc/include/asm/cache.h
@@ -60,7 +60,7 @@ extern void read_decode_cache_bcr(void);
#define ARC_REG_IC_IVIC 0x10
#define ARC_REG_IC_CTRL 0x11
#define ARC_REG_IC_IVIL 0x19
-#if defined(CONFIG_ARC_MMU_V3) || defined (CONFIG_ARC_MMU_V4)
+#if defined(CONFIG_ARC_MMU_V3)
#define ARC_REG_IC_PTAG 0x1E
#endif

@@ -74,7 +74,7 @@ extern void read_decode_cache_bcr(void);
#define ARC_REG_DC_IVDL 0x4A
#define ARC_REG_DC_FLSH 0x4B
#define ARC_REG_DC_FLDL 0x4C
-#if defined(CONFIG_ARC_MMU_V3) || defined (CONFIG_ARC_MMU_V4)
+#if defined(CONFIG_ARC_MMU_V3)
#define ARC_REG_DC_PTAG 0x5C
#endif

--
1.9.3