drm/amdgpu/vcn: add new per instance callback for powergating
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Nov 2024 16:27:06 +0000 (11:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Feb 2025 20:52:30 +0000 (15:52 -0500)
This is per instance so add a new function pointer for it.

Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h

index 8d34e3814ab198819e7476d2b803bb194d4ed009..508fa022df78cd4e99beb36df9d9fe5572e1838f 100644 (file)
@@ -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;
 };