]> Git Repo - linux.git/commitdiff
drm/amdgpu: enable dpg indirect sram mode on aldebaran
authorJames Zhu <[email protected]>
Thu, 17 Dec 2020 21:18:14 +0000 (16:18 -0500)
committerAlex Deucher <[email protected]>
Wed, 24 Mar 2021 02:57:15 +0000 (22:57 -0400)
Enable dpg indirect sram mode on aldebaran.

Signed-off-by: James Zhu <[email protected]>
Reviewed-by: Leo Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c

index 7ef255322f546a37c00c90f5f849612c8ac3856d..201645963ba519a6c0d96a41fb4fd64cff0089cc 100644 (file)
@@ -108,6 +108,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
                break;
        case CHIP_ALDEBARAN:
                fw_name = FIRMWARE_ALDEBARAN;
+               if ((adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) &&
+                   (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG))
+                       adev->vcn.indirect_sram = true;
                break;
        case CHIP_NAVI10:
                fw_name = FIRMWARE_NAVI10;
This page took 0.058842 seconds and 4 git commands to generate.