drm/amdgpu: Correct bytes limit for SDMA 3.0 copy and fill
authorYong Zhao <yong.zhao@amd.com>
Mon, 18 Sep 2017 18:25:31 +0000 (14:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 19:14:21 +0000 (15:14 -0400)
Signed-off-by: Yong Zhao <yong.zhao@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_v3_0.c

index 728c0d8..4858c99 100644 (file)
@@ -1730,11 +1730,11 @@ static void sdma_v3_0_emit_fill_buffer(struct amdgpu_ib *ib,
 }
 
 static const struct amdgpu_buffer_funcs sdma_v3_0_buffer_funcs = {
-       .copy_max_bytes = 0x1fffff,
+       .copy_max_bytes = 0x3fffe0, /* not 0x3fffff due to HW limitation */
        .copy_num_dw = 7,
        .emit_copy_buffer = sdma_v3_0_emit_copy_buffer,
 
-       .fill_max_bytes = 0x1fffff,
+       .fill_max_bytes = 0x3fffe0, /* not 0x3fffff due to HW limitation */
        .fill_num_dw = 5,
        .emit_fill_buffer = sdma_v3_0_emit_fill_buffer,
 };