diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2024-11-13 15:28:41 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-02-27 15:52:29 -0500 |
| commit | 9bf9442051c0af835b683411d9ebc6a5036d4cbb (patch) | |
| tree | 2c2b934a72edd8d19d759e7c5ae449c80fc63c38 /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | |
| parent | bee48570cf8e312faec9b8f465762052555158d0 (diff) | |
drm/amdgpu/vcn: make powergating status per instance
Store it per instance so we can track it per instance.
v2: index instances directly on vcn1.0 and 2.0 to make
it clear that they only support a single instance (Lijo)
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h index f1685283c2f1..0bcf4d1c7175 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h @@ -320,6 +320,7 @@ struct amdgpu_vcn_inst { uint32_t vcn_codec_disable_mask; atomic_t total_submission_cnt; struct mutex vcn_pg_lock; + enum amd_powergating_state cur_state; struct delayed_work idle_work; }; @@ -330,7 +331,6 @@ struct amdgpu_vcn_ras { struct amdgpu_vcn { unsigned fw_version; unsigned num_enc_rings; - enum amd_powergating_state cur_state; bool indirect_sram; uint8_t num_vcn_inst; |
