On 2025-01-31 11:57, Alex Deucher wrote:
This is per instance so add a new function pointer for it.
Signed-off-by: Alex Deucher<alexander.deuc...@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
<mailto:boyuan.zh...@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
index 8d34e3814ab19..508fa022df78c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
@@ -329,6 +329,8 @@ struct amdgpu_vcn_inst {
struct mutex vcn1_jpeg1_workaround;
int (*pause_dpg_mode)(struct amdgpu_vcn_inst *vinst,
struct dpg_pause_state *new_state);
+ int (*set_pg_state)(struct amdgpu_vcn_inst *vinst,
+ enum amd_powergating_state state);
bool using_unified_queue;
};