diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2021-10-19 13:20:37 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-10-21 23:38:46 -0400 |
commit | c5dd5667f4196b5b3b4bc2a83ad795850c08197f (patch) | |
tree | 40847eff14a5bbd5542ab0d0d9834b7b8f1691bf /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | |
parent | e8ac9e93b492e281e6051aac65024b580017f850 (diff) | |
download | lwn-c5dd5667f4196b5b3b4bc2a83ad795850c08197f.tar.gz lwn-c5dd5667f4196b5b3b4bc2a83ad795850c08197f.zip |
drm/amdgpu: Consolidate VCN firmware setup code
Roughly the same code was present in all VCN versions.
Consolidate it into a single function.
v2: use AMDGPU_UCODE_ID_VCN + i, check if num_inst >= 2
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: James Zhu <James.Zhu@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, 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 795cbaa02ff8..bfa27ea94804 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h @@ -310,4 +310,6 @@ int amdgpu_vcn_enc_ring_test_ib(struct amdgpu_ring *ring, long timeout); enum amdgpu_ring_priority_level amdgpu_vcn_get_enc_ring_prio(int ring); +void amdgpu_vcn_setup_ucode(struct amdgpu_device *adev); + #endif |