Mesa (staging/18.1): ac/radeonsi: fix CIK copy max size

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Aug 31 15:43:12 UTC 2018


Module: Mesa
Branch: staging/18.1
Commit: 6a854c5620da5a3b35026c512bee22a76358be93
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a854c5620da5a3b35026c512bee22a76358be93

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Aug 29 13:52:15 2018 +1000

ac/radeonsi: fix CIK copy max size

While adding transfer queues to radv, I started writing some tests,
the first test I wrote fell over copying a buffer larger than this
limit.

Checked AMDVLK and found the correct limit.

Cc: <mesa-stable at lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
(cherry picked from commit 2c1f249f2b61be50222411bc0d41c095004232ed)

---

 src/amd/common/sid.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/amd/common/sid.h b/src/amd/common/sid.h
index e922b38ae3..30cfeb9368 100644
--- a/src/amd/common/sid.h
+++ b/src/amd/common/sid.h
@@ -9123,7 +9123,9 @@
 #define    CIK_SDMA_PACKET_SEMAPHORE               0x7
 #define    CIK_SDMA_PACKET_CONSTANT_FILL           0xb
 #define    CIK_SDMA_PACKET_SRBM_WRITE              0xe
-#define    CIK_SDMA_COPY_MAX_SIZE                  0x3fffe0
+/* There is apparently an undocumented HW "feature" that
+   prevents the HW from copying past 256 bytes of (1 << 22) */
+#define    CIK_SDMA_COPY_MAX_SIZE                  0x3fff00
 
 enum amd_cmp_class_flags {
 	S_NAN = 1 << 0,        // Signaling NaN




More information about the mesa-commit mailing list