diff options
| author | Stanley.Yang <[email protected]> | 2022-07-04 07:41:39 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-07-05 20:10:20 +0000 |
| commit | e0e146d5567317d6ba7d0169bed55d1d9ea05a61 (patch) | |
| tree | 8d05793c9461f9e364dfe7b8afbad7b4893a4142 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/amdgpu: Only send ras feature for gfx block (diff) | |
| download | kernel-e0e146d5567317d6ba7d0169bed55d1d9ea05a61.tar.gz kernel-e0e146d5567317d6ba7d0169bed55d1d9ea05a61.zip | |
drm/amdgpu: skip whole ras bad page framework on sriov
It should not init whole ras bad page framework on sriov guest side
due to it is handled on host side.
Signed-off-by: Stanley.Yang <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 34ac0c485cb8..a5b6db5ab53c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -2154,7 +2154,7 @@ int amdgpu_ras_recovery_init(struct amdgpu_device *adev) bool exc_err_limit = false; int ret; - if (!con) + if (!con || amdgpu_sriov_vf(adev)) return 0; /* Allow access to RAS EEPROM via debugfs, when the ASIC |
