]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: avoid to perform undesired clockgating operation
authorEvan Quan <evan.quan@amd.com>
Tue, 24 May 2022 08:15:06 +0000 (16:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jun 2022 15:43:12 +0000 (11:43 -0400)
commit9d7b2c41b5b6f32dc73ff929ebc49ebfa1c2d6fe
treeb01291ee7124f0025c600217853fee78568de0eb
parent7b81c6fb2b6d9c31b8ee6f18470f065171da7f41
drm/amdgpu: avoid to perform undesired clockgating operation

Make sure the clockgating feature is supported before action.
Otherwise, the feature may be disabled unexpectedly on enablement
request.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c