drm/amdgpu/gfx10: disable gfxoff when reading rlc clock
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2020 13:52:32 +0000 (08:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Feb 2020 17:58:58 +0000 (12:58 -0500)
commitb08c3ed609aabc4e76e74edc4404f0c26279d7ed
treed4feaf903e03de51b0880719d4a0215c5ab32bd7
parent120cf959308e1bda984e40a9edd25ee2d6262efd
drm/amdgpu/gfx10: 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_v10_0.c