drm/amdgpu: add sdma block support for aldebaran
authorLe Ma <le.ma@amd.com>
Tue, 12 Nov 2019 09:17:10 +0000 (17:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Mar 2021 05:01:59 +0000 (00:01 -0500)
Add initial sdma support for aldebaran, and this asic has 5 sdma instances.

v2: remove adundant condition check

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Evan Quan <Evan.Quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

index bfdd676eff3cfac19f1f81ae4b1965c0c97a43e5..7350f2e723d5f492cbf7b37490378789fdd36d9d 100644 (file)
@@ -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;