]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: correct clock gating settings on feature unsupported
authorEvan Quan <evan.quan@amd.com>
Tue, 25 May 2021 10:24:47 +0000 (18:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Jun 2021 04:18:22 +0000 (00:18 -0400)
commit56170dbfd2005daa38620a14dad63309835a3bbc
treec18d4abd56ae1705fc5179a29bf3fa1f17024084
parent246125752e063933ed539139ccac08e6c08e5cde
drm/amdgpu: correct clock gating settings on feature unsupported

Clock gating setting is still performed even when the corresponding
CG feature is not supported. And the tricky part is disablement is
actually performed no matter for enablement or disablement request.
That seems not logically right.
Considering HW should already properly take care of the CG state, we
will just skip the corresponding clock gating setting when the feature
is not supported.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/athub_v2_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c
drivers/gpu/drm/amd/amdgpu/smuio_v11_0.c