Skip to content

Commit 0116307

Browse files
committed
drm/amdgpu/gfx11: per queue reset only on bare metal
It's not supported under SR-IOV at the moment. Acked-by: Vitaly Prosyak <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 4d5ddfa commit 0116307

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6549,6 +6549,9 @@ static int gfx_v11_0_reset_kgq(struct amdgpu_ring *ring, unsigned int vmid)
65496549
struct amdgpu_device *adev = ring->adev;
65506550
int r;
65516551

6552+
if (amdgpu_sriov_vf(adev))
6553+
return -EINVAL;
6554+
65526555
r = amdgpu_mes_reset_legacy_queue(ring->adev, ring, vmid, false);
65536556
if (r)
65546557
return r;
@@ -6584,6 +6587,9 @@ static int gfx_v11_0_reset_kcq(struct amdgpu_ring *ring, unsigned int vmid)
65846587
struct amdgpu_device *adev = ring->adev;
65856588
int i, r = 0;
65866589

6590+
if (amdgpu_sriov_vf(adev))
6591+
return -EINVAL;
6592+
65876593
gfx_v11_0_set_safe_mode(adev, 0);
65886594
mutex_lock(&adev->srbm_mutex);
65896595
soc21_grbm_select(adev, ring->me, ring->pipe, ring->queue, 0);

0 commit comments

Comments
 (0)