aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3948-drm-amdgpu-add-comments-in-ras-interrupt-callback.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3948-drm-amdgpu-add-comments-in-ras-interrupt-callback.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3948-drm-amdgpu-add-comments-in-ras-interrupt-callback.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3948-drm-amdgpu-add-comments-in-ras-interrupt-callback.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3948-drm-amdgpu-add-comments-in-ras-interrupt-callback.patch
new file mode 100644
index 00000000..c5827ef7
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3948-drm-amdgpu-add-comments-in-ras-interrupt-callback.patch
@@ -0,0 +1,66 @@
+From fa95f0afe23433ca448e2b008934dace6697c7bf Mon Sep 17 00:00:00 2001
+From: Tao Zhou <tao.zhou1@amd.com>
+Date: Mon, 23 Sep 2019 19:10:19 +0800
+Subject: [PATCH 3948/4256] drm/amdgpu: add comments in ras interrupt callback
+
+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>
+---
+ 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(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
+index d1c436df0f3a..fdcb7057093f 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
+@@ -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)
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
+index 7744de149949..d4fb9cf27e21 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
+@@ -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;
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+index 1dac74c441bb..cf784a4caa24 100644
+--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+@@ -1929,6 +1929,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
+