From: John Clements Date: Mon, 19 Apr 2021 03:23:07 +0000 (+0800) Subject: drm/amdgpu: resolve erroneous gfx_v9_4_2 prints X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f9727922fc686a4406bb84a91a671c2f0b615ecd;p=linux.git 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 Signed-off-by: John Clements Signed-off-by: Alex Deucher --- 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 44d37e40ab508..a30c7c10cd9a7 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); }