Message ID | 20230929172337.7906-1-atrajeev@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 3b678768c0458e6d8d45fadf61423e44effed4cb |
Headers | show |
Series | [1/2] powerpc/platforms/pseries: Fix STK_PARAM access in the hcall tracing code | expand |
On Fri, 29 Sep 2023 22:53:36 +0530, Athira Rajeev wrote: > In powerpc pseries system, below behaviour is observed while > enabling tracing on hcall: > # cd /sys/kernel/debug/tracing/ > # cat events/powerpc/hcall_exit/enable > 0 > # echo 1 > events/powerpc/hcall_exit/enable > > [...] Applied to powerpc/fixes. [1/2] powerpc/platforms/pseries: Fix STK_PARAM access in the hcall tracing code https://git.kernel.org/powerpc/c/3b678768c0458e6d8d45fadf61423e44effed4cb [2/2] powerpc/platforms/pseries: Remove unused r0 in the hcall tracing code https://git.kernel.org/powerpc/c/dfb5f8cbd5992d5769edfd3e059fad9e0b8bdafb cheers
diff --git a/arch/powerpc/platforms/pseries/hvCall.S b/arch/powerpc/platforms/pseries/hvCall.S index bae45b358a09..2addf2ea03f0 100644 --- a/arch/powerpc/platforms/pseries/hvCall.S +++ b/arch/powerpc/platforms/pseries/hvCall.S @@ -184,7 +184,6 @@ _GLOBAL_TOC(plpar_hcall) plpar_hcall_trace: HCALL_INST_PRECALL(R5) - std r4,STK_PARAM(R4)(r1) mr r0,r4 mr r4,r5 @@ -196,7 +195,7 @@ plpar_hcall_trace: HVSC - ld r12,STK_PARAM(R4)(r1) + ld r12,STACK_FRAME_MIN_SIZE+STK_PARAM(R4)(r1) std r4,0(r12) std r5,8(r12) std r6,16(r12) @@ -296,7 +295,6 @@ _GLOBAL_TOC(plpar_hcall9) plpar_hcall9_trace: HCALL_INST_PRECALL(R5) - std r4,STK_PARAM(R4)(r1) mr r0,r4 mr r4,r5