diff options
author | Alex Deucher <[email protected]> | 2024-07-18 10:21:21 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-09-02 11:41:16 -0400 |
commit | 4d5ddfa4b1b2bf1e936b8d38735910480f9545ed (patch) | |
tree | ee8b5087d3e29d914b83c1c178223e0bb6bbd613 | |
parent | 178ad0e280c088f5abfa61793cb992fa120d1830 (diff) |
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]>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 05f8b1495714..fca5aee55f5c 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -9426,6 +9426,9 @@ static int gfx_v10_0_reset_kgq(struct amdgpu_ring *ring, unsigned int vmid) u64 addr; int r; + if (amdgpu_sriov_vf(adev)) + return -EINVAL; + if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) return -EINVAL; @@ -9489,6 +9492,9 @@ static int gfx_v10_0_reset_kcq(struct amdgpu_ring *ring, unsigned long flags; int i, r; + if (amdgpu_sriov_vf(adev)) + return -EINVAL; + if (!kiq->pmf || !kiq->pmf->kiq_unmap_queues) return -EINVAL; |