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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 16:22:21 +0000 (17:22 +0100)
commit5e7dda6ddad18386be16e75f04eb661ba673ea42
tree007bd6ac230851ceaba9b21d33fa6385e604abb8
parent7e482baf6d70ef7b347c1c399e2a5985c9b538ca
drm/amdgpu/gfx10: disable gfxoff when reading rlc clock

commit b08c3ed609aabc4e76e74edc4404f0c26279d7ed upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c