drm/amdgpu: enable xgmi support for sienna cichlid
authorJohn Clements <john.clements@amd.com>
Fri, 17 Jul 2020 06:13:50 +0000 (14:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jul 2020 19:37:39 +0000 (15:37 -0400)
set xgmi support flag suring nv ip init sequence

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 479991b..ea69ae7 100644 (file)
@@ -446,6 +446,9 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)
        adev->nbio.funcs = &nbio_v2_3_funcs;
        adev->nbio.hdp_flush_reg = &nbio_v2_3_hdp_flush_reg;
 
+       if (adev->asic_type == CHIP_SIENNA_CICHLID)
+               adev->gmc.xgmi.supported = true;
+
        /* Set IP register base before any HW register access */
        r = nv_reg_base_init(adev);
        if (r)