Skip to contentSkip to conversation

drm/amdgpu/sriov: Only sriov runtime support use kiq

PATCH Superseded Emily Deng 1 participant 1 message Aug 21, 2018

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Emily Deng

author
#0 lore raw

PATCH 1/1 drm/amdgpu/sriov: Only sriov runtime support use kiq

For sriov, don't use kiq in exclusive mode, as don't know how long time it will take, some times it will occur exclusive timeout.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -1
index f71615e..062391e 100644
@@ -320,7 +320,7 @@ signed long  amdgpu_kiq_reg_write_reg_wait(struct amdgpu_device *adev,
 	struct amdgpu_kiq *kiq = &adev->gfx.kiq;
 	struct amdgpu_ring *ring = &kiq->ring;
 
-	if (!ring->ready)
+	if (!ring->ready || !amdgpu_sriov_runtime(adev) && amdgpu_sriov_vf(adev))
 		return -EINVAL;
 
 	spin_lock_irqsave(&kiq->ring_lock, flags);
Signature · 6 lines
2.7.4

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