drm/amdgpu: resolve erroneous gfx_v9_4_2 prints
authorJohn Clements <john.clements@amd.com>
Mon, 19 Apr 2021 03:23:07 +0000 (11:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:36:10 +0000 (21:36 -0400)
resolve bug on aldebaran where gfx error counts will
print on driver load when there are no errors present

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c

index 44d37e4..a30c7c1 100644 (file)
@@ -997,7 +997,7 @@ static int gfx_v9_4_2_query_utc_edc_count(struct amdgpu_device *adev,
                               blk->clear);
 
                        /* print the edc count */
-                       if (sec_cnt || ded_count)
+                       if (sec_cnt || ded_cnt)
                                gfx_v9_4_2_log_utc_edc_count(adev, blk, j, sec_cnt,
                                                             ded_cnt);
                }