Skip to content

Commit 49cc5be

Browse files
committed
drm/amdgpu/sdma5: init engine reset mutex
Missing the mutex init. Fixes: e56d4bf ("drm/amdgpu/: drm/amdgpu: Register the new sdma function pointers for sdma_v5_0") Reviewed-by: Jesse Zhang <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 3f4caf0)
1 parent ebe4354 commit 49cc5be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ static int sdma_v5_0_sw_init(struct amdgpu_ip_block *ip_block)
13991399
return r;
14001400

14011401
for (i = 0; i < adev->sdma.num_instances; i++) {
1402+
mutex_init(&adev->sdma.instance[i].engine_reset_mutex);
14021403
adev->sdma.instance[i].funcs = &sdma_v5_0_sdma_funcs;
14031404
ring = &adev->sdma.instance[i].ring;
14041405
ring->ring_obj = NULL;

0 commit comments

Comments
 (0)