Skip to content

Commit 5cc7bbd

Browse files
Victor Zhaoalexdeucher
authored andcommitted
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>
1 parent f025a2b commit 5cc7bbd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,9 @@ int amdgpu_sdma_reset_engine(struct amdgpu_device *adev, uint32_t instance_id,
558558
struct amdgpu_ring *gfx_ring = &sdma_instance->ring;
559559
struct amdgpu_ring *page_ring = &sdma_instance->page;
560560

561+
if (amdgpu_sriov_vf(adev))
562+
return -EOPNOTSUPP;
563+
561564
mutex_lock(&sdma_instance->engine_reset_mutex);
562565

563566
if (!caller_handles_kernel_queues) {

0 commit comments

Comments
 (0)