drm/amdgpu/sdma4: set align mask to 255
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Jun 2023 16:14:00 +0000 (12:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Jun 2023 15:06:58 +0000 (11:06 -0400)
commite5df16d9428f5c6d2d0b1eff244d6c330ba9ef3a
treea764db22b1d94d8494f07ccfde13686ef0b6b189
parent740f42a28f4cff9e009a17cc78666165ecca9293
drm/amdgpu/sdma4: set align mask to 255

The wptr needs to be incremented at at least 64 dword intervals,
use 256 to align with windows.  This should fix potential hangs
with unaligned updates.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@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/sdma_v4_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c