summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorCe Sun <cesun102@amd.com>2026-10-21 17:03:38 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-11-04 12:09:25 -0500
commit9b115ca0e5ceba08da9b9ca09e6ba65d1a2544c0 (patch)
tree1bfb6014cb8273c766e6b969d27a1b9fd5177c38 /include/linux/debugobjects.h
parent05f51b3dedc1ea52422f65a2d948ee82feb9c6d5 (diff)
drm/amdgpu: skip RAS error count reset in debug mode
After legacy ACA support was retired, some ASICs systems may trigger security violations during driver load when amdgpu_ras_reset_error_count() is invoked in debug mode. The function only checks whether RAS is supported for the target block before proceeding. In debug mode, ACA/RAS handling is not available and attempting to access the reset path can lead to unexpected HW accesses, resulting in security violation reports during driver initialization. Prevent this by treating debug mode as unsupported for RAS error count reset and return -EOPNOTSUPP early. Fixes: af1ae7d0beaf ("drm/amdgpu: retire legacy ACA support") Signed-off-by: Ce Sun <cesun102@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit af6b6f1a14dca860468b0fe2a55b7194702d5fa0) Cc: stable@vger.kernel.org
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions