drm/amdgpu: add comments in ras interrupt callback
Subsystems (2)
PATCH 22/22 drm/amdgpu: add comments in ras interrupt callback
add comments to clarify why checking GFX IP BLOCK for each ras interrupt callback
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 7 ++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 4 ++++ drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +6 -1
@@ -636,7 +636,12 @@ int amdgpu_gfx_process_ras_data_cb(struct amdgpu_device *adev, void *err_data, struct amdgpu_iv_entry *entry) { -/* TODO ue will trigger an interrupt. */ +/* TODO ue will trigger an interrupt. +* +* When “Full RAS” is enabled, the per-IP interrupt sources should +* be disabled and the driver should only look for the aggregated +* interrupt via sync flood +*/ if (!amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__GFX )) {kgd2kfd_set_sram_ecc_flag (adev->kfd.dev);if (adev->gfx.funcs->query_ras_error_count)
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c +4 -0
@@ -95,6 +95,10 @@ int amdgpu_umc_process_ras_data_cb(struct amdgpu_device *adev, {struct ras_err_data *err_data = (struct ras_err_data *)ras_error_status; +/* When “Full RAS” is enabled, the per-IP interrupt sources should +* be disabled and the driver should only look for the aggregated +* interrupt via sync flood +*/ if (amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__GFX ))return AMDGPU_RAS_SUCCESS ;
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +4 -0
@@ -1930,6 +1930,10 @@ static int sdma_v4_0_process_ras_data_cb(struct amdgpu_device *adev, {int instance; +/* When “Full RAS” is enabled, the per-IP interrupt sources should +* be disabled and the driver should only look for the aggregated +* interrupt via sync flood +*/ if (amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__GFX )) goto out;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Series is: Reviewed-by: Guchun Chen <[email protected]>
Regards,
Guchun
-----Original Message-----
From: Zhou1, Tao <[email protected]>
Sent: Monday, September 23, 2019 7:46 PM
To: [email protected]; Chen, Guchun <[email protected]>; Zhang, Hawking <[email protected]>; Grodzovsky, Andrey <[email protected]>
Cc: Zhou1, Tao <[email protected]>
Subject: [PATCH 22/22] drm/amdgpu: add comments in ras interrupt callback
add comments to clarify why checking GFX IP BLOCK for each ras interrupt callback
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 7 ++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 4 ++++ drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +6 -1
@@ -636,7 +636,12 @@ int amdgpu_gfx_process_ras_data_cb(struct amdgpu_device *adev, void *err_data, struct amdgpu_iv_entry *entry) { -/* TODO ue will trigger an interrupt. */ +/* TODO ue will trigger an interrupt. +* +* When “Full RAS” is enabled, the per-IP interrupt sources should +* be disabled and the driver should only look for the aggregated +* interrupt via sync flood +*/ if (!amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__GFX )) {kgd2kfd_set_sram_ecc_flag (adev->kfd.dev);if (adev->gfx.funcs->query_ras_error_count)
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c +4 -0
@@ -95,6 +95,10 @@ int amdgpu_umc_process_ras_data_cb(struct amdgpu_device *adev, {struct ras_err_data *err_data = (struct ras_err_data *)ras_error_status; +/* When “Full RAS” is enabled, the per-IP interrupt sources should +* be disabled and the driver should only look for the aggregated +* interrupt via sync flood +*/ if (amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__GFX ))return AMDGPU_RAS_SUCCESS ;
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +4 -1
@@ -1930,6 +1930,10 @@ static int sdma_v4_0_process_ras_data_cb(struct amdgpu_device *adev, {int instance; +/* When “Full RAS” is enabled, the per-IP interrupt sources should +* be disabled and the driver should only look for the aggregated +* interrupt via sync flood +*/ if (amdgpu_ras_is_supported (adev,AMDGPU_RAS_BLOCK__GFX )) goto out; --
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx