Skip to content

Commit 1a1995b

Browse files
committed
drm/amdgpu/gfx12: 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 0116307 commit 1a1995b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5163,6 +5163,9 @@ static int gfx_v12_0_reset_kgq(struct amdgpu_ring *ring, unsigned int vmid)
51635163
struct amdgpu_device *adev = ring->adev;
51645164
int r;
51655165

5166+
if (amdgpu_sriov_vf(adev))
5167+
return -EINVAL;
5168+
51665169
r = amdgpu_mes_reset_legacy_queue(ring->adev, ring, vmid, false);
51675170
if (r) {
51685171
dev_err(adev->dev, "reset via MES failed %d\n", r);
@@ -5200,6 +5203,9 @@ static int gfx_v12_0_reset_kcq(struct amdgpu_ring *ring, unsigned int vmid)
52005203
struct amdgpu_device *adev = ring->adev;
52015204
int r, i;
52025205

5206+
if (amdgpu_sriov_vf(adev))
5207+
return -EINVAL;
5208+
52035209
gfx_v12_0_set_safe_mode(adev, 0);
52045210
mutex_lock(&adev->srbm_mutex);
52055211
soc24_grbm_select(adev, ring->me, ring->pipe, ring->queue, 0);

0 commit comments

Comments
 (0)