diff options
| author | Tao Zhou <[email protected]> | 2022-05-09 06:49:16 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-05-10 21:53:12 +0000 |
| commit | 367806068283725d91ffcf49149db1cda5c1fd23 (patch) | |
| tree | ef6a27dfb8230f8ef3a77495b259068c1f216a2d /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | drm/amd/display: remove redundant CONFIG_DRM_AMD_DC_DCN in gpio (diff) | |
| download | kernel-367806068283725d91ffcf49149db1cda5c1fd23.tar.gz kernel-367806068283725d91ffcf49149db1cda5c1fd23.zip | |
drm/amdgpu: enable RAS IH for poison consumption
Enable RAS IH if poison consumption handler is implemented.
Signed-off-by: Tao Zhou <[email protected]>
Reviewed-by: Mohammad Zafar Ziya <[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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 7e126dff004f..defc6a53c7dc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -2516,7 +2516,9 @@ int amdgpu_ras_block_late_init(struct amdgpu_device *adev, return 0; ras_obj = container_of(ras_block, struct amdgpu_ras_block_object, ras_comm); - if (ras_obj->ras_cb) { + if (ras_obj->ras_cb || (ras_obj->hw_ops && + (ras_obj->hw_ops->query_poison_status || + ras_obj->hw_ops->handle_poison_consumption))) { r = amdgpu_ras_interrupt_add_handler(adev, ras_block); if (r) goto cleanup; |
