]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 19 Dec 2016 19:55:17 +0000 (11:55 -0800)
commite249a761d88ad05014f070c351a526d4c8d73cff
treecee4913c5c57caf93c839489bcbeb5de1c07c867
parentc7e442dc27e6fcc62abdd0e33d3c24c60448d889
ARC: mm: arc700: Don't assume 2 colours for aliasing VIPT dcache

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.

Cc: stable@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/cacheflush.h
arch/arc/mm/cache.c