summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2020-09-09 11:08:00 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-11-13 17:29:45 -0500
commitd90a53d65ad207d8eb73445fc4ceef461a98f861 (patch)
treed815d2b1082d1aa9afb2d352bda63a226679779e /drivers/gpu/drm/amd/include
parent4cd078dc654d7ead65746fba04b06e5ab7e97bff (diff)
downloadlinux-d90a53d65ad207d8eb73445fc4ceef461a98f861.tar.gz
linux-d90a53d65ad207d8eb73445fc4ceef461a98f861.tar.bz2
linux-d90a53d65ad207d8eb73445fc4ceef461a98f861.zip
drm/amdgpu: add amdgpu_gfx_state_change_set() set gfx power change entry (v2)
The new amdgpu_gfx_state_change_set() funtion can support set GFX power change status to D0/D3. v2: squash in warning fix (Alex) Signed-off-by: Prike Liang <Prike.Liang@amd.com> Acked-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include')
-rw-r--r--drivers/gpu/drm/amd/include/kgd_pp_interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
index 94132c70d7af..f775aac6c1bd 100644
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h
@@ -285,6 +285,7 @@ struct amd_pm_funcs {
int (*odn_edit_dpm_table)(void *handle, uint32_t type, long *input, uint32_t size);
int (*set_mp1_state)(void *handle, enum pp_mp1_state mp1_state);
int (*smu_i2c_bus_access)(void *handle, bool acquire);
+ int (*gfx_state_change_set)(void *handle, uint32_t state);
/* export to DC */
u32 (*get_sclk)(void *handle, bool low);
u32 (*get_mclk)(void *handle, bool low);