From: Likun Gao Date: Wed, 24 Apr 2024 09:20:39 +0000 (+0800) Subject: drm/amdgpu: enable gfxoff for gc v12.0.0 X-Git-Tag: v6.11-rc1~141^2~25^2~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c14d5b5095cc805b0f3f04182b5e18e618258b86;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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;