]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: cap ATOM command table nesting depth
authorCandice Li <candice.li@amd.com>
Wed, 13 May 2026 03:11:15 +0000 (11:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 May 2026 15:51:56 +0000 (11:51 -0400)
commit27ef1795bc4e47cae838e0a3ced531c549f9b23d
treef23a3b557c00fd7e37ffcf16661c01874ca88db9
parent3c88fb7aa57d540e1867aad56d441e550692bd1a
drm/amdgpu: cap ATOM command table nesting depth

Cap nesting at 32 levels with execute_depth and
return -ELOOP when exceeded.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/atom.c
drivers/gpu/drm/amd/amdgpu/atom.h