drm/amdgpu/gfx9: disable gfxoff when reading rlc clock
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2020 13:51:29 +0000 (08:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Feb 2020 17:58:58 +0000 (12:58 -0500)
commit120cf959308e1bda984e40a9edd25ee2d6262efd
tree1016da2801434647698d53771f1f6d901918a017
parentc657b936ea98630ef5ba4f130ab1ad5c534d0165
drm/amdgpu/gfx9: disable gfxoff when reading rlc clock

Otherwise we readback all ones.  Fixes rlc counter
readback while gfxoff is active.

Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c