Skip to content

Commit fe79ef3

Browse files
committed
drm/amdgpu/sdma5.2: init engine reset mutex
Missing the mutex init. Fixes: 47454f2 ("drm/amdgpu: Register the new sdma function pointers for sdma_v5_2") Reviewed-by: Jesse Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit ea685ff)
1 parent cfb0525 commit fe79ef3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,7 @@ static int sdma_v5_2_sw_init(struct amdgpu_ip_block *ip_block)
13181318
}
13191319

13201320
for (i = 0; i < adev->sdma.num_instances; i++) {
1321+
mutex_init(&adev->sdma.instance[i].engine_reset_mutex);
13211322
adev->sdma.instance[i].funcs = &sdma_v5_2_sdma_funcs;
13221323
ring = &adev->sdma.instance[i].ring;
13231324
ring->ring_obj = NULL;

0 commit comments

Comments
 (0)