diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-11-30 15:29:43 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-12-03 11:14:39 -0500 |
commit | 47622ba033d6da529ff37d7e5238359a699496ab (patch) | |
tree | 4f8286bd6887cd152d5e32015bcc55358bfbcc96 /drivers/gpu/drm/amd/amdgpu/soc15.c | |
parent | e2101675225fa45cf6994916c2051c5167ded3e2 (diff) | |
download | lwn-47622ba033d6da529ff37d7e5238359a699496ab.tar.gz lwn-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.c | 3 |
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) |