drm/amdgpu: enable sram initialization for aldebaran
authorDennis Li <Dennis.Li@amd.com>
Mon, 1 Feb 2021 08:18:31 +0000 (16:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:58:55 +0000 (22:58 -0400)
Aldebaran can share the same initializing shader code witn
arcturus.

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

index 7cd07765e9d95e83cc7a80db690462dd4ffe7c52..d5dd602c7f72b801cc61a72fc5d288be72b96210 100644 (file)
@@ -4519,7 +4519,8 @@ static int gfx_v9_0_do_edc_gpr_workarounds(struct amdgpu_device *adev)
        if (!ring->sched.ready)
                return 0;
 
-       if (adev->asic_type == CHIP_ARCTURUS) {
+       if (adev->asic_type == CHIP_ARCTURUS ||
+           adev->asic_type == CHIP_ALDEBARAN) {
                vgpr_init_shader_ptr = vgpr_init_compute_shader_arcturus;
                vgpr_init_shader_size = sizeof(vgpr_init_compute_shader_arcturus);
                vgpr_init_regs_ptr = vgpr_init_regs_arcturus;