summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2019-09-23 19:10:19 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-10-03 09:11:03 -0500
commit3d8361b11ca45b329349ec82ad765d059d8b0673 (patch)
tree51af59994b4e47fdd8801ba738b01841bf8d2803 /drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
parentba0834921400613839b28b572fdb713281b473d9 (diff)
downloadlinux-stable-3d8361b11ca45b329349ec82ad765d059d8b0673.tar.gz
linux-stable-3d8361b11ca45b329349ec82ad765d059d8b0673.tar.bz2
linux-stable-3d8361b11ca45b329349ec82ad765d059d8b0673.zip
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> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index 98fd1e5484d0..96581b5b0a8a 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -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;