arm64: mte: Restore the GCR_EL1 register after a suspend
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 17 Apr 2020 17:29:35 +0000 (18:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Sep 2020 11:46:07 +0000 (12:46 +0100)
commit39d08e8318c49c5fd2bda9cadfd2bc54d2d3dfd8
treeb0f2c41789a84a807067ba1ed25d3308ae06ded1
parentaf5ce95282dc99d08a27a407a02c763dde1c5558
arm64: mte: Restore the GCR_EL1 register after a suspend

The CPU resume/suspend routines only take care of the common system
registers. Restore GCR_EL1 in addition via the __cpu_suspend_exit()
function.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
arch/arm64/include/asm/mte.h
arch/arm64/kernel/mte.c
arch/arm64/kernel/suspend.c