drm/amdgpu/gfx11: update gpu_clock_counter logic
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Apr 2023 16:02:29 +0000 (12:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Apr 2023 22:36:47 +0000 (18:36 -0400)
commitb91075866e58e6b073689958f246834ad0b2c79c
tree645a8061675da0f7a0ad6279a25aea9c3a1cbc26
parent179661ad45cb18ba7702ebafde5f22aea47be5e0
drm/amdgpu/gfx11: update gpu_clock_counter logic

This code was written prior to previous updates to this
logic for other chips.  The RSC registers are part of
SMUIO which is an always on block so there is no need
to disable gfxoff.  Additionally add the carryover and
preemption checks.

v2: rebase

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c