From c14d5b5095cc805b0f3f04182b5e18e618258b86 Mon Sep 17 00:00:00 2001 From: Likun Gao Date: Wed, 24 Apr 2024 17:20:39 +0800 Subject: [PATCH] drm/amdgpu: enable gfxoff for gc v12.0.0 Enable GFXOFF for GC v12.0.0. Signed-off-by: Likun Gao Reviewed-by: Kenneth Feng Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c index 045731caa624a..6419f98e32b69 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c @@ -3608,6 +3608,7 @@ static int gfx_v12_0_set_powergating_state(void *handle, return 0; switch (amdgpu_ip_version(adev, GC_HWIP, 0)) { + case IP_VERSION(12, 0, 0): case IP_VERSION(12, 0, 1): amdgpu_gfx_off_ctrl(adev, enable); break;