]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/amdgpu: Enable DCN IP init for Beige Goby
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 10 Mar 2021 20:53:37 +0000 (15:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:42:13 +0000 (22:42 -0400)
[Why&How]
Adds DCN IP block initialization for Beige Goby

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/nv.c

index aeca7b5b9419ac72039a032b74d47cda9abd2041..093ff2549d28d3284aba28d0d55e2cc2d250d2ea 100644 (file)
@@ -3100,6 +3100,7 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
        case CHIP_SIENNA_CICHLID:
        case CHIP_NAVY_FLOUNDER:
        case CHIP_DIMGREY_CAVEFISH:
+       case CHIP_BEIGE_GOBY:
        case CHIP_VANGOGH:
 #endif
                return amdgpu_dc != 0;
index 8d0491ea3494bcb23ab993cb2a6a48299e2e5a82..2e79ac7bbff127f84b0c7ff089bfed395209158b 100644 (file)
@@ -965,6 +965,10 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)
                amdgpu_device_ip_block_add(adev, &sdma_v5_2_ip_block);
                if (adev->enable_virtual_display || amdgpu_sriov_vf(adev))
                        amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);
+#if defined(CONFIG_DRM_AMD_DC)
+               else if (amdgpu_device_has_dc_support(adev))
+                       amdgpu_device_ip_block_add(adev, &dm_ip_block);
+#endif
                if (adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT &&
                    is_support_sw_smu(adev))
                        amdgpu_device_ip_block_add(adev, &smu_v11_0_ip_block);