linux_dsm_epyc7002/arch/powerpc/platforms/powermac
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
..
backlight.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
bootx_init.c powerpc: fix spelling mistake: "Usupported" -> "Unsupported" 2018-06-05 11:33:43 +10:00
cache.S powerpc: change CONFIG_6xx to CONFIG_PPC_BOOK3S_32 2018-11-26 22:33:37 +11:00
feature.c powerpc: Use of_node_name_eq for node name comparisons 2018-12-22 21:29:50 +11:00
Kconfig PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
low_i2c.c powerpc: Use of_node_name_eq for node name comparisons 2018-12-22 21:29:50 +11:00
Makefile powerpc: disable KASAN instrumentation on early/critical files. 2019-05-03 01:20:26 +10:00
nvram.c treewide: add checks for the return value of memblock_alloc*() 2019-03-12 10:04:02 -07:00
pci.c powerpc: Use of_node_name_eq for node name comparisons 2018-12-22 21:29:50 +11:00
pfunc_base.c powerpc: Use of_node_name_eq for node name comparisons 2018-12-22 21:29:50 +11:00
pfunc_core.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
pic.c powerpc: Use of_node_name_eq for node name comparisons 2018-12-22 21:29:50 +11:00
pmac.h powerpc: use time64_t in read_persistent_clock 2018-06-03 20:43:33 +10:00
setup.c powerpc: Adopt nvram module for PPC64 2019-01-22 10:21:45 +01:00
sleep.S powerpc/32s: fix suspend/resume when IBATs 4-7 are used 2019-06-19 20:05:07 +10:00
smp.c powerpc/smp: Use code patching to restore reset vector 2018-12-19 18:56:32 +11:00
time.c powerpc: Adopt nvram module for PPC64 2019-01-22 10:21:45 +01:00
udbg_adb.c powerpc: Use device_type helpers to access the node type 2018-11-26 22:33:37 +11:00
udbg_scc.c powerpc: Use of_node_name_eq for node name comparisons 2018-12-22 21:29:50 +11:00