ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache
authorVineet Gupta <vgupta@synopsys.com>
Mon, 19 Dec 2016 19:38:38 +0000 (11:38 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:32:21 +0000 (08:32 +0100)
commitce7ec3d7526cb26307eb5fee516b2873a88ca3ef
tree970278a6152140195064d2410345ecb90b81652a
parent9d33a399566771b023a08f490344b70a200c87da
ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache

commit 08fe007968b2b45e831daf74899f79a54d73f773 upstream.

An ARC700 customer reported linux boot crashes when upgrading to bigger
L1 dcache (64K from 32K). Turns out they had an aliasing VIPT config and
current code only assumed 2 colours, while theirs had 4. So default to 4
colours and complain if there are fewer. Ideally this needs to be a
Kconfig option, but heck that's too much of hassle for a single user.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/include/asm/cacheflush.h
arch/arc/mm/cache.c