[PATCH 22/44] drm/amdgpu/vcn: add new per instance callback for powergating

Boyuan Zhang Boyuan.Zhang at amd.com
Thu Feb 6 13:40:38 UTC 2025


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.deucher at amd.com>


Reviewed-by: Boyuan Zhang <Boyuan.Zhang at amd.com> 
<mailto:Boyuan.Zhang at 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;
>   };
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20250206/90c5cc0f/attachment-0001.htm>


More information about the amd-gfx mailing list