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

v2: fix harder, use shifts to make it more obvious

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_v4_4_2.c

index 7f77367848d43daf97f11565f300dcee24225f5c..78bdfed0a7fd3cfa911fa75e4ce7b83292d45809 100644 (file)
@@ -2305,11 +2305,11 @@ static void sdma_v4_4_2_emit_fill_buffer(struct amdgpu_ib *ib,
 }
 
 static const struct amdgpu_buffer_funcs sdma_v4_4_2_buffer_funcs = {
-       .copy_max_bytes = 0x400000,
+       .copy_max_bytes = 1 << 30,
        .copy_num_dw = 7,
        .emit_copy_buffer = sdma_v4_4_2_emit_copy_buffer,
 
-       .fill_max_bytes = 0x400000,
+       .fill_max_bytes = 1 << 30,
        .fill_num_dw = 5,
        .emit_fill_buffer = sdma_v4_4_2_emit_fill_buffer,
 };