Skip to content

Commit e5fe560

Browse files
npigginmpe
authored andcommitted
powerpc/64s: scv entry should set PPR
Kernel entry sets PPR to HMT_MEDIUM by convention. The scv entry path missed this. Fixes: 7fa95f9 ("powerpc/64s: system call support for scv/rfscv instructions") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200825075309.224184-1-npiggin@gmail.com
1 parent aa661d7 commit e5fe560

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/powerpc/kernel/entry_64.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ END_FTR_SECTION_IFSET(CPU_FTR_TM)
113113
ld r11,exception_marker@toc(r2)
114114
std r11,-16(r10) /* "regshere" marker */
115115

116+
BEGIN_FTR_SECTION
117+
HMT_MEDIUM
118+
END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR)
119+
116120
/*
117121
* RECONCILE_IRQ_STATE without calling trace_hardirqs_off(), which
118122
* would clobber syscall parameters. Also we always enter with IRQs

0 commit comments

Comments
 (0)