]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: Fix sdma 4.4.2 doorbell rptr/wptr init
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 6 Nov 2023 03:36:58 +0000 (09:06 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Nov 2023 17:03:30 +0000 (12:03 -0500)
commit0553eb9f33aa1a89a788682c78bd9747d41e65cb
tree2fc1d779818d1ed6ec708ec52d38033106475d11
parent9c561ca2d3ca99606034880f62791e866af35ef9
drm/amdgpu: Fix sdma 4.4.2 doorbell rptr/wptr init

Doorbell rptr/wptr can be set through multiple ways including direct
register initialization. Disable doorbell during hw_fini once the ring
is disabled so that during next module reload direct initialization
takes effect. Also, move the direct initialization after minor update is
set to 1 since rptr/wptr are reinitialized back to 0 which could be
lower than the previous doorbell value (ex: cases like module reload).

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Tested-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c