]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Direct ret in ras_reset_err_cnt on VF
authorEllen Pan <yunru.pan@amd.com>
Fri, 11 Apr 2025 02:12:24 +0000 (22:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Apr 2025 21:01:00 +0000 (17:01 -0400)
commit5045c6c69872b9dd145e9ecbc9731d81a5954be1
treefec803a6c450f315403a4cc8abfb6f298308faa2
parent18a878fd8aef0ec21648a3782f55a79790cd4073
drm/amdgpu: Direct ret in ras_reset_err_cnt on VF

With adding sriov_vf check, we directly return EOPNOTSUPP in
ras_reset_error_count as we should not do anything on VF to reset RAS error
count.

This also fixes the issue that loading guest driver causes register
violations.

Reviewed-by: Ahmad Rehman <Ahmad.Rehman@amd.com>
Signed-off-by: Ellen Pan <yunru.pan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c