diff options
author | Alex Deucher <[email protected]> | 2024-07-18 10:21:45 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-09-02 11:41:20 -0400 |
commit | 01163079e136e6d6ce4474b964b8a7ec954cac81 (patch) | |
tree | 22ec320d20bb6e16c5401d46a5e85d4d1bfbb48c | |
parent | 4d5ddfa4b1b2bf1e936b8d38735910480f9545ed (diff) |
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]>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index fd0d51e93dd4..5ef4ff90ed86 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c @@ -6549,6 +6549,9 @@ static int gfx_v11_0_reset_kgq(struct amdgpu_ring *ring, unsigned int vmid) struct amdgpu_device *adev = ring->adev; int r; + if (amdgpu_sriov_vf(adev)) + return -EINVAL; + r = amdgpu_mes_reset_legacy_queue(ring->adev, ring, vmid, false); if (r) return r; @@ -6584,6 +6587,9 @@ static int gfx_v11_0_reset_kcq(struct amdgpu_ring *ring, unsigned int vmid) struct amdgpu_device *adev = ring->adev; int i, r = 0; + if (amdgpu_sriov_vf(adev)) + return -EINVAL; + gfx_v11_0_set_safe_mode(adev, 0); mutex_lock(&adev->srbm_mutex); soc21_grbm_select(adev, ring->me, ring->pipe, ring->queue, 0); |