[AMD Official Use Only - AMD Internal Distribution Only]

From: Likun Gao <likun....@amd.com>

Enable GFXOFF for GC v12.0.0.

Signed-off-by: Likun Gao <likun....@amd.com>
Reviewed-by: Kenneth Feng <kenneth.f...@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

Reply via email to