ac: add REWIND and GDS registers to register headers
authorMarek Olšák <marek.olsak@amd.com>
Tue, 12 Feb 2019 20:01:18 +0000 (15:01 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 23 Apr 2019 15:28:56 +0000 (11:28 -0400)
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/sid.h

index 5c8eee0124d8e5d84460c8d240b6fbaa237ab73d..3c0b7001d2b998b914ba6b5b10c4acc521d3620d 100644 (file)
 #define PKT3_RELEASE_MEM                       0x49 /* GFX9+ [any ring] or GFX8 [compute ring only] */
 #define PKT3_ONE_REG_WRITE                     0x57 /* not on CIK */
 #define PKT3_ACQUIRE_MEM                       0x58 /* new for CIK */
+#define PKT3_REWIND                            0x59 /* VI+ [any ring] or CIK [compute ring only] */
 #define PKT3_SET_CONFIG_REG                    0x68
 #define PKT3_SET_CONTEXT_REG                   0x69
 #define PKT3_SET_SH_REG                        0x76
 #define   S_030FFC_COUNT_HI(x)                                        (((unsigned)(x) & 0x7FFFFFFF) << 0)
 #define   G_030FFC_COUNT_HI(x)                                        (((x) >> 0) & 0x7FFFFFFF)
 #define   C_030FFC_COUNT_HI                                           0x80000000
+#define R_031074_GDS_OA_CNTL                                           0x031074
+#define   S_031074_INDEX(x)                                           (((unsigned)(x) & 0xF) << 0)
+#define R_031078_GDS_OA_COUNTER                                                0x031078
+#define   S_031078_SPACE_AVAILABLE(x)                                 (((unsigned)(x) & 0xFFFFFFFF) << 0)
+#define R_03107C_GDS_OA_ADDRESS                                                0x03107C
+#define   S_03107C_DS_ADDRESS(x)                                      (((unsigned)(x) & 0xFFFF) << 0)
+#define   S_03107C_CRAWLER(x)                                         (((unsigned)(x) & 0xF) << 16)
+#define   S_03107C_CRAWLER_TYPE(x)                                    (((unsigned)(x) & 0x3) << 20)
+#define   S_03107C_NO_ALLOC(x)                                        (((unsigned)(x) & 0x1) << 30)
+#define   S_03107C_ENABLE(x)                                          (((unsigned)(x) & 0x1) << 31)
+#define R_031080_GDS_OA_INCDEC                                         0x031080
+#define   S_031080_VALUE(x)                                           (((unsigned)(x) & 0x7FFFFFFF) << 0)
+#define   S_031080_INCDEC(x)                                          (((unsigned)(x) & 0x1) << 31)
+#define R_031084_GDS_OA_RING_SIZE                                      0x031084
+#define   S_031084_RING_SIZE(x)                                       (((unsigned)(x) & 0xFFFFFFFF) << 0)
 #define R_009100_SPI_CONFIG_CNTL                                        0x009100
 #define   S_009100_GPR_WRITE_PRIORITY(x)                              (((unsigned)(x) & 0x1FFFFF) << 0)
 #define   G_009100_GPR_WRITE_PRIORITY(x)                              (((x) >> 0) & 0x1FFFFF)