aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2025-01-07 17:16:28 +0000
committerAlex Deucher <[email protected]>2025-02-27 20:52:32 +0000
commitc51aa7923e28f30519a16bf89ed3c4f27460835c (patch)
treeedc8825f596a93a2b918197745e409f78560ecbe /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h
parentdrm/amdgpu/vcn5.0.1: use generic set_power_gating_state helper (diff)
downloadkernel-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.h4
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 {