drm/amdgpu: Ensure the DMA engine is deactivated during set ups
authorHaohui Mai <ricetons@gmail.com>
Sat, 30 Apr 2022 07:34:00 +0000 (00:34 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 May 2022 14:02:57 +0000 (10:02 -0400)
commitb992a19085885c096b19625a85c674cb89829ca1
tree6ee3b1b3fb4fa0dc4d3326c7614131aeaeb1861f
parent505c170b628d76fc3efc1b0cf3da8499f85a9b77
drm/amdgpu: Ensure the DMA engine is deactivated during set ups

Setting the HALT bit of SDMA_F32_CNTL in all paths before programming
the ring buffer of the SDMA engine.

Signed-off-by: Haohui Mai <ricetons@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c