Skip to content

Commit 4d5ddfa

Browse files
committed
drm/amdgpu/gfx10: 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 178ad0e commit 4d5ddfa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9426,6 +9426,9 @@ static int gfx_v10_0_reset_kgq(struct amdgpu_ring *ring, unsigned int vmid)
94269426
u64 addr;
94279427
int r;
94289428

9429+
if (amdgpu_sriov_vf(adev))
9430+
return -EINVAL;
9431+
94299432
if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues)
94309433
return -EINVAL;
94319434

@@ -9489,6 +9492,9 @@ static int gfx_v10_0_reset_kcq(struct amdgpu_ring *ring,
94899492
unsigned long flags;
94909493
int i, r;
94919494

9495+
if (amdgpu_sriov_vf(adev))
9496+
return -EINVAL;
9497+
94929498
if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues)
94939499
return -EINVAL;
94949500

0 commit comments

Comments
 (0)