]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: CPS: use 32b accesses to GCRs
authorPaul Burton <paul.burton@imgtec.com>
Wed, 5 Aug 2015 22:42:35 +0000 (15:42 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 28 Aug 2015 09:48:22 +0000 (11:48 +0200)
commitc6930f30b1cd88979d6f6c45819e9f295ca15171
tree58ac2c5b6f3b8e9105ecc02168023f442be9b2e0
parent11d96ce188cc85726e39d7af50b465737724e82c
MIPS: CPS: use 32b accesses to GCRs

Commit 3e06db0c4885 ("MIPS: cps-vec: Use macros for various arithmetics
and memory operations") replaced various load & store instructions
through cps-vec.S with the PTR_L & PTR_S macros. However it was somewhat
overzealous in doing so for CM GCR accesses, since the bit width of the
CM doesn't necessarily match that of the CPU. The registers accessed
(GCR_CL_COHERENCE & GCR_CL_ID) should be safe to simply always access
using 32b instructions, so do so in order to avoid issues when using a
32b CM with a 64b CPU.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: <stable@vger.kernel.org> # 3.16+
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: James Hogan <james.hogan@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/10864/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cps-vec.S