Skip to contentSkip to conversation

drm/amdgpu: Adjust IB test timeout for XGMI configuration

PATCH In review Liu, Shaoyun 2 participants 2 messages Apr 2, 2019 – Apr 3, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Adjust IB test timeout for XGMI configuration

On XGMI configuration the ib test may tooks longer to finish

Change-Id If3afd8eac3c342d32c387804b51fc4a4bdd35d35
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +3 -0
index 0b8ef2d..45f251f 100644
@@ -346,6 +346,9 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev)
 		tmo_gfx = 8 * AMDGPU_IB_TEST_TIMEOUT;
 	}
 
+	if (adev->gmc.xgmi.hive_id)
+		tmo_gfx = 2 * AMDGPU_IB_TEST_TIMEOUT;
+
 	for (i = 0; i < adev->num_rings; ++i) {
 		struct amdgpu_ring *ring = adev->rings[i];
 		long tmo;
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): 1554228693-28822-1-git-send-email-shaoyun.liu-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Am 02.04.19 um 20:12 schrieb Liu, Shaoyun:

Quoted 13 lines

On XGMI configuration the ib test may tooks longer to finish

Change-Id If3afd8eac3c342d32c387804b51fc4a4bdd35d35
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +0 -0
index 0b8ef2d..45f251f 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c int amdgpu_ib_ring_tests(struct amdgpu_device *adev) · line 351

Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +3 -0
@@ -346,6 +346,9 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev)
  		tmo_gfx = 8 * AMDGPU_IB_TEST_TIMEOUT;
  	}
 
+	if (adev->gmc.xgmi.hive_id)
+		tmo_gfx = 2 * AMDGPU_IB_TEST_TIMEOUT;
+

Probably better to use an "else if" to note that those two mutual exclusive.

Additional to that I think it is time now to add AMDGPU_IB_TEST_GFX_XGMI_TIMEOUT define instead of just abusing the existing one over and over again (same of course for the SRIOV case).

Christian.

drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c int amdgpu_ib_ring_tests(struct amdgpu_device *adev) · line 354

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +0 -0
  	for (i = 0; i < adev->num_rings; ++i) {
  		struct amdgpu_ring *ring = adev->rings[i];
  		long tmo;

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