summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorYong Zhao2017-09-18 20:25:31 +0200
committerAlex Deucher2017-09-26 21:14:21 +0200
commitdfe5c2b76b2a32cd37283809737e55f9208f8346 (patch)
tree3a6f33f545928d9cf0b18cf49c3d928bae7d2e1c /drivers/gpu/drm/amd/amdgpu
parentdrm/amdgpu: use 2MB fragment size for GFX6,7 and 8 (diff)
downloadkernel-qcow2-linux-dfe5c2b76b2a32cd37283809737e55f9208f8346.tar.gz
kernel-qcow2-linux-dfe5c2b76b2a32cd37283809737e55f9208f8346.tar.xz
kernel-qcow2-linux-dfe5c2b76b2a32cd37283809737e55f9208f8346.zip
drm/amdgpu: Correct bytes limit for SDMA 3.0 copy and fill
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
index 728c0d8e849b..4858c9974c86 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
@@ -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,
};