Skip to content

Commit 7277b42

Browse files
Alexander GordeevVasily Gorbik
authored andcommitted
s390/smp: use physical address for SIGP_SET_PREFIX command
Signal processor SIGP_SET_PREFIX command expects physical address of the lowcore to be installed, but instead the virtual address is provided. Note: this does not fix a bug currently, since virtual and physical addresses are identical. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent 4f45c37 commit 7277b42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/s390/kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int pcpu_alloc_lowcore(struct pcpu *pcpu, int cpu)
213213
if (nmi_alloc_mcesa(&lc->mcesad))
214214
goto out;
215215
lowcore_ptr[cpu] = lc;
216-
pcpu_sigp_retry(pcpu, SIGP_SET_PREFIX, (u32)(unsigned long) lc);
216+
pcpu_sigp_retry(pcpu, SIGP_SET_PREFIX, __pa(lc));
217217
return 0;
218218

219219
out:

0 commit comments

Comments
 (0)