[PATCH 6/8] drm/amdgpu: enable gfxoff for gc v12.0.0

Gao, Likun Likun.Gao at amd.com
Tue May 14 08:52:36 UTC 2024


[AMD Official Use Only - AMD Internal Distribution Only]

From: Likun Gao <Likun.Gao at amd.com>

Enable GFXOFF for GC v12.0.0.

Signed-off-by: Likun Gao <Likun.Gao at amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng at amd.com>
---
 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 045731caa624..6419f98e32b6 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;
--
2.34.1



More information about the amd-gfx mailing list