Skip to contentSkip to conversation

drm/amdgpu: skip ring soft reset on SR-IOV VF

PATCH NAK Trigger Huang 2 participants 2 messages Nov 14, 2018 1 message not in the archive

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

PATCH 1/1 drm/amdgpu: skip ring soft reset on SR-IOV VF

When TDR happened on SR-IOV VF, the host Hypervisor may has already done the VF FLR, then, the re-initialization flow in KMD is a must. The same logic is in amdgpu_device_ip_check_soft_reset, too

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +3 -0
index 5b75bdc..14bd67a 100644
@@ -397,6 +397,9 @@ bool amdgpu_ring_soft_recovery(struct amdgpu_ring *ring, unsigned int vmid,
 {
 	ktime_t deadline = ktime_add_us(ktime_get(), 10000);
 
+	if (amdgpu_sriov_vf(ring->adev))
+		return false;
+
 	if (!ring->funcs->soft_recovery)
 		return false;
 
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): 1542183804-3021-1-git-send-email-Trigger.Huang-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Am 14.11.18 um 09:23 schrieb Trigger Huang:

Quoted 3 lines

When TDR happened on SR-IOV VF, the host Hypervisor may has already done the VF FLR, then, the re-initialization flow in KMD is a must. The same logic is in amdgpu_device_ip_check_soft_reset, too

NAK, this is only called in the timeout code path and not when the Hypervisor signals a FLR.

Christian.

Quoted 11 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +0 -0
index 5b75bdc..14bd67a 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c bool amdgpu_ring_soft_recovery(struct amdgpu_ring *ring, unsigned int vmid, · line 405

Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c +3 -0
@@ -397,6 +397,9 @@ bool amdgpu_ring_soft_recovery(struct amdgpu_ring *ring, unsigned int vmid,
  {
  	ktime_t deadline = ktime_add_us(ktime_get(), 10000);
 
+	if (amdgpu_sriov_vf(ring->adev))
+		return false;
+
  	if (!ring->funcs->soft_recovery)
  		return false;
 

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