]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: enable gfxoff for gc v12.0.0
authorLikun Gao <Likun.Gao@amd.com>
Wed, 24 Apr 2024 09:20:39 +0000 (17:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 May 2024 21:40:37 +0000 (17:40 -0400)
Enable GFXOFF for GC v12.0.0.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

index 045731caa624afd66330ac83fe748419ffbc5d53..6419f98e32b69be75d6368ebbf64091721f90572 100644 (file)
@@ -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;