From: Le Ma <le...@amd.com>

Add initial sdma support for aldebaran, and this asic has 5 sdma instances.

v2: remove adundant condition check

Signed-off-by: Le Ma <le...@amd.com>
Reviewed-by: Hawking Zhang <hawking.zh...@amd.com>
Acked-by: Evan Quan <evan.q...@amd.com>
Signed-off-by: Alex Deucher <alexander.deuc...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 
b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index c8c22c1d1e65..5b5081cdfa3a 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -621,6 +621,9 @@ static int sdma_v4_0_init_microcode(struct amdgpu_device 
*adev)
                else
                        chip_name = "green_sardine";
                break;
+       case CHIP_ALDEBARAN:
+               chip_name = "aldebaran";
+               break;
        default:
                BUG();
        }
@@ -1825,6 +1828,8 @@ static int sdma_v4_0_early_init(void *handle)
                adev->sdma.num_instances = 1;
        else if (adev->asic_type == CHIP_ARCTURUS)
                adev->sdma.num_instances = 8;
+       else if (adev->asic_type == CHIP_ALDEBARAN)
+               adev->sdma.num_instances = 5;
        else
                adev->sdma.num_instances = 2;
 
-- 
2.29.2

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to