diff options
| author | Hawking Zhang <[email protected]> | 2023-03-04 12:22:23 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-03-15 22:45:27 +0000 |
| commit | 370808876b5cab365f8fc6dbaf8cae13a2bc6efa (patch) | |
| tree | 2cd51ab2994a839878209d4d6b6d5589f32fa003 /drivers/gpu/drm/amd/amdgpu | |
| parent | drm/amdgpu: Rework pcie_bif ras sw_init (diff) | |
| download | kernel-370808876b5cab365f8fc6dbaf8cae13a2bc6efa.tar.gz kernel-370808876b5cab365f8fc6dbaf8cae13a2bc6efa.zip | |
drm/amdgpu: drop ras check at asic level for new blocks
amdgpu_ras_register_ras_block should always be invoked
by ras_sw_init, where driver needs to check ras caps
at ip level, instead of asic level.
Signed-off-by: Hawking Zhang <[email protected]>
Reviewed-by: Stanley Yang <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index b0d050ffc200..11df6ee052b4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -3076,9 +3076,6 @@ int amdgpu_ras_register_ras_block(struct amdgpu_device *adev, if (!adev || !ras_block_obj) return -EINVAL; - if (!amdgpu_ras_asic_supported(adev)) - return 0; - ras_node = kzalloc(sizeof(*ras_node), GFP_KERNEL); if (!ras_node) return -ENOMEM; |
