drm/amdgpu/gfx10: fix typo in gfx_v10_0_update_gfx_clock_gating()
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/gfx10: fix typo in gfx_v10_0_update_gfx_clock_gating()
Check was incorrectly converted to IP version checking.
Fixes 4b0ad8425498ba ("drm/amdgpu/gfx10: convert to IP version checking")
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +3 -2
@@ -8238,8 +8238,9 @@ static int gfx_v10_0_update_gfx_clock_gating(struct amdgpu_device *adev,/* === CGCG + CGLS === */ gfx_v10_0_update_coarse_grain_clock_gating (adev, enable); -if ((adev->ip_versions[GC_HWIP ][0 ] >=IP_VERSION (10 ,1 ,10 )) && - (adev->ip_versions[GC_HWIP ][0 ] <=IP_VERSION (10 ,1 ,2 ))) +if ((adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (10 ,1 ,10 )) || + (adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (10 ,1 ,1 )) || + (adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (10 ,1 ,2 )))gfx_v10_0_apply_medium_grain_clock_gating_workaround (adev); }else {/* CGCG/CGLS should be disabled before MGCG/MGLS
Signature · 1 line
2.31.1
Ping.
Quoted 28 lines · Alex Deucher
Check was incorrectly converted to IP version checking.
Fixes 4b0ad8425498ba ("drm/amdgpu/gfx10: convert to IP version checking")Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +3
-3@@ -8238,8 +8238,9 @@ static int gfx_v10_0_update_gfx_clock_gating(struct amdgpu_device *adev,/* === CGCG + CGLS === */ gfx_v10_0_update_coarse_grain_clock_gating (adev, enable); -if ((adev->ip_versions[GC_HWIP ][0 ] >=IP_VERSION (10 ,1 ,10 )) && - (adev->ip_versions[GC_HWIP ][0 ] <=IP_VERSION (10 ,1 ,2 ))) +if ((adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (10 ,1 ,10 )) || + (adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (10 ,1 ,1 )) || + (adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (10 ,1 ,2 )))gfx_v10_0_apply_medium_grain_clock_gating_workaround (adev); }else {/* CGCG/CGLS should be disabled before MGCG/MGLS -- 2.31.1
[AMD Official Use Only]
Reviewed-by Evan Quan <[email protected]>
Quoted 41 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Wednesday, October 13, 2021 12:40 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu/gfx10: fix typo ingfx_v10_0_update_gfx_clock_gating()Check was incorrectly converted to IP version checking.
Fixes 4b0ad8425498ba ("drm/amdgpu/gfx10: convert to IP version checking")Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-1@@ -8238,8 +8238,9 @@ static int gfx_v10_0_update_gfx_clock_gating(struct amdgpu_device *adev,/* === CGCG + CGLS === */ gfx_v10_0_update_coarse_grain_clock_gating (adev, enable); - if ((adev->ip_versions[GC_HWIP][0] >= IP_VERSION(10, 1,10)) &&
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1
-1- (adev->ip_versions[GC_HWIP][0] <= IP_VERSION(10, 1, 2))) + if ((adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 1,10)) ||
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1
-0+ (adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (10 ,1 ,1 ))||
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1
-0+ (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 1, 2)))gfx_v10_0_apply_medium_grain_clock_gating_workaround(adev);drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-1}else {/* CGCG/CGLS should be disabled before MGCG/MGLS -- 2.31.1