diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2024-11-26 11:27:06 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-02-27 15:52:30 -0500 |
commit | 55945f08d9b7a13f92a6fb7f681b95c031627a1a (patch) | |
tree | 2bf9b0d83570140385781a20879221845595ecc9 | |
parent | 64303b72de787b61a7d295d6973f5fbd955b85a5 (diff) |
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 <Boyuan.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h index 8d34e3814ab1..508fa022df78 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; }; |