aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
diff options
context:
space:
mode:
authorHaoran Jiang <[email protected]>2025-08-05 11:00:22 +0000
committerHuacai Chen <[email protected]>2025-08-05 11:00:22 +0000
commitc0fcc955ff827431b541b1aa6bcb82bdce4531f7 (patch)
treee4d83f7d74d1b2922371cb6507b4e536ca64efc8 /drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
parentLoongArch: BPF: Fix jump offset calculation in tailcall (diff)
downloadkernel-c0fcc955ff827431b541b1aa6bcb82bdce4531f7.tar.gz
kernel-c0fcc955ff827431b541b1aa6bcb82bdce4531f7.zip
LoongArch: BPF: Fix the tailcall hierarchy
In specific use cases combining tailcalls and BPF-to-BPF calls, MAX_TAIL_CALL_CNT won't work because of missing tail_call_cnt back-propagation from callee to caller. This patch fixes this tailcall issue caused by abusing the tailcall in bpf2bpf feature on LoongArch like the way of "bpf, x64: Fix tailcall hierarchy". Push tail_call_cnt_ptr and tail_call_cnt into the stack, tail_call_cnt_ptr is passed between tailcall and bpf2bpf, uses tail_call_cnt_ptr to increment tail_call_cnt. Fixes: bb035ef0cc91 ("LoongArch: BPF: Support mixing bpf2bpf and tailcalls") Reviewed-by: Geliang Tang <[email protected]> Reviewed-by: Hengqi Chen <[email protected]> Signed-off-by: Haoran Jiang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c')
0 files changed, 0 insertions, 0 deletions