diff options
| author | Ce Sun <cesun102@amd.com> | 2026-10-21 17:03:38 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-11-04 12:09:25 -0500 |
| commit | 9b115ca0e5ceba08da9b9ca09e6ba65d1a2544c0 (patch) | |
| tree | 1bfb6014cb8273c766e6b969d27a1b9fd5177c38 /include/linux/timerqueue.h | |
| parent | 05f51b3dedc1ea52422f65a2d948ee82feb9c6d5 (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/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
