aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1090-drm-amdgpu-Correct-bytes-limit-for-SDMA-3.0-copy-and.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1090-drm-amdgpu-Correct-bytes-limit-for-SDMA-3.0-copy-and.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1090-drm-amdgpu-Correct-bytes-limit-for-SDMA-3.0-copy-and.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1090-drm-amdgpu-Correct-bytes-limit-for-SDMA-3.0-copy-and.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1090-drm-amdgpu-Correct-bytes-limit-for-SDMA-3.0-copy-and.patch
new file mode 100644
index 00000000..3b3bf6c3
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1090-drm-amdgpu-Correct-bytes-limit-for-SDMA-3.0-copy-and.patch
@@ -0,0 +1,37 @@
+From afe464144163b48d6e91ed24fb57b8a457c05644 Mon Sep 17 00:00:00 2001
+From: Yong Zhao <yong.zhao@amd.com>
+Date: Mon, 18 Sep 2017 14:25:31 -0400
+Subject: [PATCH 1090/4131] drm/amdgpu: Correct bytes limit for SDMA 3.0 copy
+ and fill
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Change-Id: I5c2e22a0a3ce52a7d14ad33dfd7a137f29bf6ddf
+Signed-off-by: Yong Zhao <yong.zhao@amd.com>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 4 ++--
+ 1 file 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 297e834..eaa6239 100644
+--- a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
+@@ -1713,11 +1713,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,
+ };
+--
+2.7.4
+