summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
diff options
context:
space:
mode:
authorJohn Clements <john.clements@amd.com>2021-04-19 06:23:07 +0300
committerAlex Deucher <alexander.deucher@amd.com>2021-04-21 04:36:10 +0300
commitf9727922fc686a4406bb84a91a671c2f0b615ecd (patch)
treef7fdf28b83815f422b6f699ec8b9548eeb9904e8 /drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
parent6df23f4c5cef5b6d8879720ef7c842adffc565c9 (diff)
downloadlinux-f9727922fc686a4406bb84a91a671c2f0b615ecd.tar.xz
drm/amdgpu: resolve erroneous gfx_v9_4_2 prints
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
index 44d37e40ab50..a30c7c10cd9a 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
@@ -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);
}