Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ellen Pan and committed by
Alex Deucher
5045c6c6 18a878fd

+3
+3
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
··· 1498 1498 !amdgpu_ras_get_aca_debug_mode(adev)) 1499 1499 return -EOPNOTSUPP; 1500 1500 1501 + if (amdgpu_sriov_vf(adev)) 1502 + return -EOPNOTSUPP; 1503 + 1501 1504 /* skip ras error reset in gpu reset */ 1502 1505 if ((amdgpu_in_reset(adev) || amdgpu_ras_in_recovery(adev)) && 1503 1506 ((smu_funcs && smu_funcs->set_debug_mode) ||