summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc15.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-11-30 15:29:43 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-12-03 11:14:39 -0500
commit47622ba033d6da529ff37d7e5238359a699496ab (patch)
tree4f8286bd6887cd152d5e32015bcc55358bfbcc96 /drivers/gpu/drm/amd/amdgpu/soc15.c
parente2101675225fa45cf6994916c2051c5167ded3e2 (diff)
downloadlinux-stable-47622ba033d6da529ff37d7e5238359a699496ab.tar.gz
linux-stable-47622ba033d6da529ff37d7e5238359a699496ab.tar.bz2
linux-stable-47622ba033d6da529ff37d7e5238359a699496ab.zip
drm/amdgpu: add a xgmi supported flag
Use this to track whether an asic supports xgmi rather than checking the asic type everywhere. Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc15.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index b318950ebbaa..f2cd87dc365a 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -500,6 +500,9 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
return -EINVAL;
}
+ if (adev->asic_type == CHIP_VEGA20)
+ adev->gmc.xgmi.supported = true;
+
if (adev->flags & AMD_IS_APU)
adev->nbio_funcs = &nbio_v7_0_funcs;
else if (adev->asic_type == CHIP_VEGA20)