]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu/sdma5.2: adjust SDMA limits
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Sep 2025 14:33:39 +0000 (10:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:39:32 +0000 (14:39 -0500)
SDMA 5.2.x has increased transfer limits.

v2: fix harder, use shifts to make it more obvious
v3: align const fill with PAL limits
v4: re-align with hw limits

Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c

index 0a8269795241d1c7c45789e25a1d242b15fe1744..b4fb90cc8f7d970a8ee48e37df58b24d3ddb9e66 100644 (file)
@@ -2045,11 +2045,11 @@ static void sdma_v5_2_emit_fill_buffer(struct amdgpu_ib *ib,
 }
 
 static const struct amdgpu_buffer_funcs sdma_v5_2_buffer_funcs = {
-       .copy_max_bytes = 0x400000,
+       .copy_max_bytes = 1 << 30,
        .copy_num_dw = 7,
        .emit_copy_buffer = sdma_v5_2_emit_copy_buffer,
 
-       .fill_max_bytes = 0x400000,
+       .fill_max_bytes = 1 << 30, /* HW supports 1 << 30, but PAL uses 1 << 22 */
        .fill_num_dw = 5,
        .emit_fill_buffer = sdma_v5_2_emit_fill_buffer,
 };