Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Christophe Leroy 6ecb78ef56 powerpc/32s: fix suspend/resume when IBATs 4-7 are used
Previously, only IBAT1 and IBAT2 were used to map kernel linear mem.
Since commit 63b2bc6195 ("powerpc/mm/32s: Use BATs for
STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping
kernel text. But the suspend/restore functions only save/restore
BATs 0 to 3, and clears BATs 4 to 7.

Make suspend and restore functions respectively save and reload
the 8 BATs on CPUs having MMU_FTR_USE_HIGH_BATS feature.

Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2019-06-19 20:05:07 +10:00
..
2018-07-30 22:47:53 +10:00
2019-05-01 16:45:05 +10:00
2017-12-11 13:03:35 +11:00
2019-03-12 10:04:01 -07:00
2019-03-02 14:43:05 +11:00
2018-10-09 16:51:05 +11:00
2019-03-05 21:07:18 -08:00
2018-05-25 12:04:46 +10:00