Skip to content

Commit 9f73eac

Browse files
committed
Merge tag 'powerpc-5.14-7' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fixes from Michael Ellerman: - Fix scv implicit soft-mask table for relocated (eg. kdump) kernels - Re-enable ARCH_ENABLE_SPLIT_PMD_PTLOCK, which was disabled due to a typo Thanks to Lukas Bulwahn, Nicholas Piggin, and Daniel Axtens. * tag 'powerpc-5.14-7' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/64s: Fix scv implicit soft-mask table for relocated kernels powerpc: Re-enable ARCH_ENABLE_SPLIT_PMD_PTLOCK
2 parents 64b4fc4 + 787c70f commit 9f73eac

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

arch/powerpc/kernel/exceptions-64s.S

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,6 @@ __start_interrupts:
812812
* syscall register convention is in Documentation/powerpc/syscall64-abi.rst
813813
*/
814814
EXC_VIRT_BEGIN(system_call_vectored, 0x3000, 0x1000)
815-
1:
816815
/* SCV 0 */
817816
mr r9,r13
818817
GET_PACA(r13)
@@ -842,10 +841,12 @@ EXC_VIRT_BEGIN(system_call_vectored, 0x3000, 0x1000)
842841
b system_call_vectored_sigill
843842
#endif
844843
.endr
845-
2:
846844
EXC_VIRT_END(system_call_vectored, 0x3000, 0x1000)
847845

848-
SOFT_MASK_TABLE(1b, 2b) // Treat scv vectors as soft-masked, see comment above.
846+
// Treat scv vectors as soft-masked, see comment above.
847+
// Use absolute values rather than labels here, so they don't get relocated,
848+
// because this code runs unrelocated.
849+
SOFT_MASK_TABLE(0xc000000000003000, 0xc000000000004000)
849850

850851
#ifdef CONFIG_RELOCATABLE
851852
TRAMP_VIRT_BEGIN(system_call_vectored_tramp)

arch/powerpc/platforms/Kconfig.cputype

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ config PPC_BOOK3S_64
9898
select PPC_HAVE_PMU_SUPPORT
9999
select HAVE_ARCH_TRANSPARENT_HUGEPAGE
100100
select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
101-
select ARCH_ENABLE_PMD_SPLIT_PTLOCK
101+
select ARCH_ENABLE_SPLIT_PMD_PTLOCK
102102
select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
103103
select ARCH_SUPPORTS_HUGETLBFS
104104
select ARCH_SUPPORTS_NUMA_BALANCING

0 commit comments

Comments
 (0)