From: Alex Deucher Date: Tue, 26 Nov 2024 16:27:06 +0000 (-0500) Subject: drm/amdgpu/vcn: add new per instance callback for powergating X-Git-Tag: v6.15-rc1~120^2~12^2~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55945f08d9b7a13f92a6fb7f681b95c031627a1a;p=thirdparty%2Fkernel%2Flinux.git drm/amdgpu/vcn: add new per instance callback for powergating This is per instance so add a new function pointer for it. Reviewed-by: Boyuan Zhang Signed-off-by: Alex Deucher --- 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; };