drm/amdgpu/discovery: add SDMA v6_0 ip block
authorStanley Yang <Stanley.Yang@amd.com>
Fri, 12 Mar 2021 10:02:33 +0000 (18:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:55 +0000 (10:43 -0400)
Add SDMA v6 ip block for asics which support it.

Signed-off-by: Stanley Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index 0edb7c8f3b054d3f32e9c3387f9389c594f9f56f..aa5f31ad8bc7d351ffee74d45ca806d26a217360 100644 (file)
@@ -63,6 +63,7 @@
 #include "gfx_v11_0.h"
 #include "sdma_v5_0.h"
 #include "sdma_v5_2.h"
+#include "sdma_v6_0.h"
 #include "vcn_v2_0.h"
 #include "jpeg_v2_0.h"
 #include "vcn_v3_0.h"
@@ -1775,6 +1776,9 @@ static int amdgpu_discovery_set_sdma_ip_blocks(struct amdgpu_device *adev)
        case IP_VERSION(5, 2, 7):
                amdgpu_device_ip_block_add(adev, &sdma_v5_2_ip_block);
                break;
+       case IP_VERSION(6, 0, 0):
+               amdgpu_device_ip_block_add(adev, &sdma_v6_0_ip_block);
+               break;
        default:
                dev_err(adev->dev,
                        "Failed to add sdma ip block(SDMA0_HWIP:0x%x)\n",