From 29d6a367a6508a6814f44039166a65a4b69f53b1 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 27 Dec 2016 17:28:36 +0100 Subject: radeonsi: do all math in bytes in SI DMA code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/amd/common/sid.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/amd/common/sid.h') diff --git a/src/amd/common/sid.h b/src/amd/common/sid.h index 0a2c616e647..fc21a184cb0 100644 --- a/src/amd/common/sid.h +++ b/src/amd/common/sid.h @@ -9021,8 +9021,10 @@ /* SI async DMA Packet types */ #define SI_DMA_PACKET_WRITE 0x2 #define SI_DMA_PACKET_COPY 0x3 -#define SI_DMA_COPY_MAX_SIZE 0xfffe0 -#define SI_DMA_COPY_MAX_SIZE_DW 0xffff8 +#define SI_DMA_COPY_MAX_BYTE_ALIGNED_SIZE 0xfffe0 +/* The documentation says 0xffff8 is the maximum size in dwords, which is + * 0x3fffe0 in bytes. */ +#define SI_DMA_COPY_MAX_DWORD_ALIGNED_SIZE 0x3fffe0 #define SI_DMA_COPY_DWORD_ALIGNED 0x00 #define SI_DMA_COPY_BYTE_ALIGNED 0x40 #define SI_DMA_COPY_TILED 0x8 -- cgit v1.2.3