projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1d1abd
)
drm/amdgpu: Remove gfxoff check in GFX v9.4.3
author
Lijo Lazar
<lijo.lazar@amd.com>
Mon, 14 Aug 2023 14:22:16 +0000
(19:52 +0530)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 16 Aug 2023 15:34:50 +0000
(11:34 -0400)
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>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
index d8d6807e7b96459a975f9e44d532c370ab0944f3..57ed4e5c294c8fb5cb0571f77eee8b3efb5d2566 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
@@
-337,13
+337,11
@@
static uint64_t gfx_v9_4_3_get_gpu_clock_counter(struct amdgpu_device *adev)
{
uint64_t clock;
- amdgpu_gfx_off_ctrl(adev, false);
mutex_lock(&adev->gfx.gpu_clock_mutex);
WREG32_SOC15(GC, GET_INST(GC, 0), regRLC_CAPTURE_GPU_CLOCK_COUNT, 1);
clock = (uint64_t)RREG32_SOC15(GC, GET_INST(GC, 0), regRLC_GPU_CLOCK_COUNT_LSB) |
((uint64_t)RREG32_SOC15(GC, GET_INST(GC, 0), regRLC_GPU_CLOCK_COUNT_MSB) << 32ULL);
mutex_unlock(&adev->gfx.gpu_clock_mutex);
- amdgpu_gfx_off_ctrl(adev, true);
return clock;
}