]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: enable vcn/jpeg on vcn_v4_0_3
authorJames Zhu <James.Zhu@amd.com>
Sun, 18 Dec 2022 00:44:15 +0000 (19:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:51:33 +0000 (09:51 -0400)
Enable vcn/jpeg on vcn_v4_0_3.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index a1f06945b8ee6bd49a56a32dd466ce1a9b7806be..d8f55a99646e5465e0d017b27af479aa64a49f2e 100644 (file)
@@ -76,6 +76,8 @@
 #include "jpeg_v3_0.h"
 #include "vcn_v4_0.h"
 #include "jpeg_v4_0.h"
+#include "vcn_v4_0_3.h"
+#include "jpeg_v4_0_3.h"
 #include "amdgpu_vkms.h"
 #include "mes_v10_1.h"
 #include "mes_v11_0.h"
@@ -1947,7 +1949,11 @@ static int amdgpu_discovery_set_mm_ip_blocks(struct amdgpu_device *adev)
                case IP_VERSION(4, 0, 4):
                        amdgpu_device_ip_block_add(adev, &vcn_v4_0_ip_block);
                        amdgpu_device_ip_block_add(adev, &jpeg_v4_0_ip_block);
-                       return 0;
+                       break;
+               case IP_VERSION(4, 0, 3):
+                       amdgpu_device_ip_block_add(adev, &vcn_v4_0_3_ip_block);
+                       amdgpu_device_ip_block_add(adev, &jpeg_v4_0_3_ip_block);
+                       break;
                default:
                        dev_err(adev->dev,
                                "Failed to add vcn/jpeg ip block(UVD_HWIP:0x%x)\n",