]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/soc21: Add video cap query support for VCN_4_0_4
authorVeerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com>
Wed, 8 Mar 2023 14:03:53 +0000 (19:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:29 +0000 (08:50 +0100)
[ Upstream commit 5d459c76613e821bde2fa7184423296044aa2253 ]

Added the video capability query support for VCN version 4_0_4

Signed-off-by: Veerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.1.x
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/soc21.c

index 61ee41aa8abb77a5c82701085512c71c543601eb..9c52af5005253bf1cf94db3ac80136999a75443a 100644 (file)
@@ -109,6 +109,7 @@ static int soc21_query_video_codecs(struct amdgpu_device *adev, bool encode,
        switch (adev->ip_versions[UVD_HWIP][0]) {
        case IP_VERSION(4, 0, 0):
        case IP_VERSION(4, 0, 2):
+       case IP_VERSION(4, 0, 4):
                if (adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) {
                        if (encode)
                                *codecs = &vcn_4_0_0_video_codecs_encode_vcn1;