diff options
| author | Yang Wang <[email protected]> | 2024-04-24 02:47:35 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-23 19:08:25 +0000 |
| commit | 9262f411dc2e765d8a1d52d33c84d2ebb0580cec (patch) | |
| tree | f0bf3e30292274f5a6d5dbecb37fb0abef6f4d77 | |
| parent | drm/amdgpu: Fix amdgpu_vm_is_bo_always_valid kerneldoc (diff) | |
| download | kernel-9262f411dc2e765d8a1d52d33c84d2ebb0580cec.tar.gz kernel-9262f411dc2e765d8a1d52d33c84d2ebb0580cec.zip | |
drm/amdgpu: skip to create ras xxx_err_count node when ACA is enabled
skip to create 'xxx_err_count' node when ACA is enabled.
Signed-off-by: Yang Wang <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 06247818635a..8073716bc5ac 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -1759,6 +1759,9 @@ int amdgpu_ras_sysfs_create(struct amdgpu_device *adev, { struct ras_manager *obj = amdgpu_ras_find_obj(adev, head); + if (amdgpu_aca_is_enabled(adev)) + return 0; + if (!obj || obj->attr_inuse) return -EINVAL; @@ -1793,6 +1796,9 @@ int amdgpu_ras_sysfs_remove(struct amdgpu_device *adev, { struct ras_manager *obj = amdgpu_ras_find_obj(adev, head); + if (amdgpu_aca_is_enabled(adev)) + return 0; + if (!obj || !obj->attr_inuse) return -EINVAL; |
