diff options
| author | Alex Deucher <[email protected]> | 2025-01-07 17:16:28 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-02-27 20:52:32 +0000 |
| commit | c51aa7923e28f30519a16bf89ed3c4f27460835c (patch) | |
| tree | edc8825f596a93a2b918197745e409f78560ecbe /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | |
| parent | drm/amdgpu/vcn5.0.1: use generic set_power_gating_state helper (diff) | |
| download | kernel-c51aa7923e28f30519a16bf89ed3c4f27460835c.tar.gz kernel-c51aa7923e28f30519a16bf89ed3c4f27460835c.zip | |
drm/amdgpu/vcn: optimize firmware storage
If each instance uses the same fw image, only store one
copy in the driver.
Acked-by: Boyuan Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h index a023f46ec904..26c9c2d90f45 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h @@ -339,7 +339,6 @@ struct amdgpu_vcn_ras { }; struct amdgpu_vcn { - unsigned fw_version; uint8_t num_vcn_inst; struct amdgpu_vcn_inst inst[AMDGPU_MAX_VCN_INSTANCES]; @@ -356,6 +355,9 @@ struct amdgpu_vcn { uint32_t supported_reset; uint32_t caps; + + bool per_inst_fw; + unsigned fw_version; }; struct amdgpu_fw_shared_rb_ptrs_struct { |
