drm/amdgpu: Fix definition of KFD_CIK_SDMA_QUEUE_OFFSET
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 27 Nov 2017 23:29:47 +0000 (18:29 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 27 Nov 2017 23:29:47 +0000 (18:29 -0500)
This counts the queue offset in register index, not register address.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdgpu/cikd.h

index 6a9e38a3d2a0bbee4265da23f889b4ebf3710b5c..cee6e8a3ad9c9227c81dcfe2f568daf508686219 100644 (file)
 #define        PRIVATE_BASE(x) ((x) << 0) /* scratch */
 #define        SHARED_BASE(x)  ((x) << 16) /* LDS */
 
-#define KFD_CIK_SDMA_QUEUE_OFFSET      0x200
+#define KFD_CIK_SDMA_QUEUE_OFFSET (mmSDMA0_RLC1_RB_CNTL - mmSDMA0_RLC0_RB_CNTL)
 
 /* valid for both DEFAULT_MTYPE and APE1_MTYPE */
 enum {