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/amdgpu_xgmi.c | |
parent | e2101675225fa45cf6994916c2051c5167ded3e2 (diff) |
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/amdgpu_xgmi.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c index fb37e69f1bba..f8c86d0593dd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | |||
@@ -94,9 +94,9 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev) | |||
94 | 94 | ||
95 | int count = 0, ret = -EINVAL; | 95 | int count = 0, ret = -EINVAL; |
96 | 96 | ||
97 | if ((adev->asic_type < CHIP_VEGA20) || | 97 | if (!adev->gmc.xgmi.supported) |
98 | (adev->flags & AMD_IS_APU) ) | ||
99 | return 0; | 98 | return 0; |
99 | |||
100 | adev->gmc.xgmi.node_id = psp_xgmi_get_node_id(&adev->psp); | 100 | adev->gmc.xgmi.node_id = psp_xgmi_get_node_id(&adev->psp); |
101 | adev->gmc.xgmi.hive_id = psp_xgmi_get_hive_id(&adev->psp); | 101 | adev->gmc.xgmi.hive_id = psp_xgmi_get_hive_id(&adev->psp); |
102 | 102 | ||