Skip to content
/ linux Public

Commit 630ace4

Browse files
Victor ZhaoSasha Levin
authored andcommitted
drm/amdgpu: avoid sdma ring reset in sriov
[ Upstream commit 5cc7bbd ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7a7e7bc commit 630ace4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)