]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: mm: Fix operands of clz in __flush_dcache_all
authorSukanto Ghosh <sghosh@apm.com>
Tue, 14 May 2013 09:26:54 +0000 (10:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2013 18:35:46 +0000 (11:35 -0700)
commitc2672f87c3b10f44e7e8f15f23d4dfec434c9053
tree9dec2f681676c1fb52193deb0c9df138f8f4962d
parent71b86dfc5ed5a27c6d02eff2957587b8a00ae3dd
arm64: mm: Fix operands of clz in __flush_dcache_all

commit b4fed0796841b5293b9c9427a5391b7bb20ef2d9 upstream.

The format of the lower 32-bits of the 64-bit operand to 'dc cisw' is
unchanged from ARMv7 architecture and the upper bits are RES0. This
implies that the 'way' field of the operand of 'dc cisw' occupies the
bit-positions [31 .. (32-A)]. Due to the use of 64-bit extended operands
to 'clz', the existing implementation of __flush_dcache_all is incorrectly
placing the 'way' field in the bit-positions [63 .. (64-A)].

Signed-off-by: Sukanto Ghosh <sghosh@apm.com>
Tested-by: Anup Patel <anup.patel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/mm/cache.S