Skip to contentSkip to conversation

drm/amdgpu/gmc9: populate xgmi info for vega20

PATCH In review shaoyunl 2 participants 2 messages Sep 5, 2018 – Sep 6, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

shaoyunl

author
#0 lore raw

PATCH 5/13 drm/amdgpu/gmc9: populate xgmi info for vega20

From: Alex Deucher <[email protected]>

Call the new gfxhub 1.1 function to get the xgmi info.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +7 -0
index 0da89ba..b1c8489 100644
@@ -43,6 +43,7 @@
 
 #include "gfxhub_v1_0.h"
 #include "mmhub_v1_0.h"
+#include "gfxhub_v1_1.h"
 
 #include "ivsrcid/vmc/irqsrcs_vmc_1_0.h"
 
@@ -991,6 +992,12 @@ static int gmc_v9_0_sw_init(void *handle)
 	}
 	adev->need_swiotlb = drm_get_max_iomem() > ((u64)1 << dma_bits);
 
+	if (adev->asic_type == CHIP_VEGA20) {
+		r = gfxhub_v1_1_get_xgmi_info(adev);
+		if (r)
+			return r;
+	}
+
 	r = gmc_v9_0_mc_init(adev);
 	if (r)
 		return r;
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1536161413-4329-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Am 05.09.2018 um 17:30 schrieb shaoyunl:

Quoted 8 lines

From: Alex Deucher <[email protected]>

Call the new gfxhub 1.1 function to get the xgmi info.

Quoted 19 lines
---
  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +++++++
  1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -0
index 0da89ba..b1c8489 100644
@@ -43,6 +43,7 @@
 
  #include "gfxhub_v1_0.h"
  #include "mmhub_v1_0.h"
+#include "gfxhub_v1_1.h"
 
  #include "ivsrcid/vmc/irqsrcs_vmc_1_0.h"
 
@@ -991,6 +992,12 @@ static int gmc_v9_0_sw_init(void *handle)
  	}
  	adev->need_swiotlb = drm_get_max_iomem() > ((u64)1 << dma_bits);

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static int gmc_v9_0_sw_init(void *handle) · line 1003

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +6 -0
 
+	if (adev->asic_type == CHIP_VEGA20) {
+		r = gfxhub_v1_1_get_xgmi_info(adev);
+		if (r)
+			return r;
+	}
+
  	r = gmc_v9_0_mc_init(adev);
  	if (r)
  		return r;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx