OSDN Git Service

drm/amdgpu: enable xgmi support for Aldebaran
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Sun, 5 Apr 2020 18:43:24 +0000 (14:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:52:45 +0000 (22:52 -0400)
Like its predecessors Aldebran also supports advanced high bandwidth
GPU-GPU communication interface known as xgmi. This enables the basic
xgmi support while refactoring the code slightly.

Detection of xgmi link between host cpu and gpu will be introduced in a
different patch.

Reviewed-by: Oak Zeng <oak.zeng@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 4bbd99b..cdbea67 100644 (file)
@@ -917,7 +917,9 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
        if (!amdgpu_sriov_vf(adev))
                soc15_reg_base_init(adev);
 
-       if (adev->asic_type == CHIP_VEGA20 || adev->asic_type == CHIP_ARCTURUS)
+       if (adev->asic_type == CHIP_VEGA20 ||
+           adev->asic_type == CHIP_ARCTURUS ||
+           adev->asic_type == CHIP_ALDEBARAN)
                adev->gmc.xgmi.supported = true;
 
        if (adev->flags & AMD_IS_APU) {