mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
drm/amdgpu: avoid sdma ring reset in sriov
sdma ring reset is not supported in SRIOV. kfd driver does not check reset mask, and could queue sdma ring reset during unmap_queues_cpsch. Avoid the ring reset for sriov. Signed-off-by: Victor Zhao <Victor.Zhao@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f025a2b8d9
commit
5cc7bbd9f1
|
|
@ -558,6 +558,9 @@ int amdgpu_sdma_reset_engine(struct amdgpu_device *adev, uint32_t instance_id,
|
|||
struct amdgpu_ring *gfx_ring = &sdma_instance->ring;
|
||||
struct amdgpu_ring *page_ring = &sdma_instance->page;
|
||||
|
||||
if (amdgpu_sriov_vf(adev))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
mutex_lock(&sdma_instance->engine_reset_mutex);
|
||||
|
||||
if (!caller_handles_kernel_queues) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user