Skip to content

Commit b5cdade

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Remove gfxoff check in GFX v9.4.3
GFXOFF feature is not there for GFX 9.4.3 ASICs. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent f1d1abd commit b5cdade

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,11 @@ static uint64_t gfx_v9_4_3_get_gpu_clock_counter(struct amdgpu_device *adev)
337337
{
338338
uint64_t clock;
339339

340-
amdgpu_gfx_off_ctrl(adev, false);
341340
mutex_lock(&adev->gfx.gpu_clock_mutex);
342341
WREG32_SOC15(GC, GET_INST(GC, 0), regRLC_CAPTURE_GPU_CLOCK_COUNT, 1);
343342
clock = (uint64_t)RREG32_SOC15(GC, GET_INST(GC, 0), regRLC_GPU_CLOCK_COUNT_LSB) |
344343
((uint64_t)RREG32_SOC15(GC, GET_INST(GC, 0), regRLC_GPU_CLOCK_COUNT_MSB) << 32ULL);
345344
mutex_unlock(&adev->gfx.gpu_clock_mutex);
346-
amdgpu_gfx_off_ctrl(adev, true);
347345

348346
return clock;
349347
}

0 commit comments

Comments
 (0)