]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: modify sdma start sequence
authorMonk Liu <Monk.Liu@amd.com>
Wed, 25 May 2016 08:57:14 +0000 (16:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jun 2016 14:48:59 +0000 (10:48 -0400)
commit9edd62fce4601f6097cdee5a7cab6ae7c4ec9fc8
tree74855ea477abd5aae81d5e667ac19b39ec0e4d97
parenta4af495ced01e22f7c308e32426a37c3dc40a488
drm/amdgpu: modify sdma start sequence

should fist halt engine, and then doing the register
programing, and later unhalt engine, and finally run
ring_test.

this help fix reloading driver hang issue of SDMA
ring

original sequence is wrong for it programing engine
after unhalt, which will lead to fault behavior when
doing driver reloading after unloaded.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c