]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: add comments in ras interrupt callback
authorTao Zhou <tao.zhou1@amd.com>
Mon, 23 Sep 2019 11:10:19 +0000 (19:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:03 +0000 (09:11 -0500)
add comments to clarify why checking GFX IP BLOCK for each ras interrupt callback

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

index 1b7a022996f69829096dabe2de8941728af3b94a..68495f0e43544d408acb6a5c9f19af6b693f8f62 100644 (file)
@@ -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)
index 7744de1499492ea86cb18012627db22b70717007..d4fb9cf27e2120dcab060fa633f272149e06f164 100644 (file)
@@ -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;
 
index 98fd1e5484d080c9b3f3ab97eb774a37a3f6bbeb..96581b5b0a8a8282b8de65bec69622a64a423fc1 100644 (file)
@@ -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;