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 728c0d8e849b847570950396909b864647182487..4858c9974c862a7d08f201b16b571d366446d3e2 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,
 };