Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef _A6XX_REG_H |
| 15 | #define _A6XX_REG_H |
| 16 | |
| 17 | /* A6XX interrupt bits */ |
| 18 | #define A6XX_INT_RBBM_GPU_IDLE 0 |
| 19 | #define A6XX_INT_CP_AHB_ERROR 1 |
| 20 | #define A6XX_INT_ATB_ASYNCFIFO_OVERFLOW 6 |
| 21 | #define A6XX_INT_RBBM_GPC_ERROR 7 |
| 22 | #define A6XX_INT_CP_SW 8 |
| 23 | #define A6XX_INT_CP_HW_ERROR 9 |
| 24 | #define A6XX_INT_CP_CCU_FLUSH_DEPTH_TS 10 |
| 25 | #define A6XX_INT_CP_CCU_FLUSH_COLOR_TS 11 |
| 26 | #define A6XX_INT_CP_CCU_RESOLVE_TS 12 |
| 27 | #define A6XX_INT_CP_IB2 13 |
| 28 | #define A6XX_INT_CP_IB1 14 |
| 29 | #define A6XX_INT_CP_RB 15 |
| 30 | #define A6XX_INT_CP_RB_DONE_TS 17 |
| 31 | #define A6XX_INT_CP_WT_DONE_TS 18 |
| 32 | #define A6XX_INT_CP_CACHE_FLUSH_TS 20 |
| 33 | #define A6XX_INT_RBBM_ATB_BUS_OVERFLOW 22 |
| 34 | #define A6XX_INT_RBBM_HANG_DETECT 23 |
| 35 | #define A6XX_INT_UCHE_OOB_ACCESS 24 |
| 36 | #define A6XX_INT_UCHE_TRAP_INTR 25 |
| 37 | #define A6XX_INT_DEBBUS_INTR_0 26 |
| 38 | #define A6XX_INT_DEBBUS_INTR_1 27 |
| 39 | #define A6XX_INT_ISDB_CPU_IRQ 30 |
| 40 | #define A6XX_INT_ISDB_UNDER_DEBUG 31 |
| 41 | |
| 42 | /* CP Interrupt bits */ |
| 43 | #define A6XX_CP_OPCODE_ERROR 0 |
| 44 | #define A6XX_CP_UCODE_ERROR 1 |
| 45 | #define A6XX_CP_HW_FAULT_ERROR 2 |
| 46 | #define A6XX_CP_REGISTER_PROTECTION_ERROR 4 |
| 47 | #define A6XX_CP_AHB_ERROR 5 |
| 48 | #define A6XX_CP_VSD_PARITY_ERROR 6 |
| 49 | #define A6XX_CP_ILLEGAL_INSTR_ERROR 7 |
| 50 | |
| 51 | /* CP registers */ |
| 52 | #define A6XX_CP_RB_BASE 0x800 |
| 53 | #define A6XX_CP_RB_BASE_HI 0x801 |
| 54 | #define A6XX_CP_RB_CNTL 0x802 |
| 55 | #define A6XX_CP_RB_RPTR_ADDR_LO 0x804 |
| 56 | #define A6XX_CP_RB_RPTR_ADDR_HI 0x805 |
| 57 | #define A6XX_CP_RB_RPTR 0x806 |
| 58 | #define A6XX_CP_RB_WPTR 0x807 |
| 59 | #define A6XX_CP_SQE_CNTL 0x808 |
| 60 | #define A6XX_CP_HW_FAULT 0x821 |
| 61 | #define A6XX_CP_INTERRUPT_STATUS 0x823 |
| 62 | #define A6XX_CP_PROTECT_STATUS 0X824 |
| 63 | #define A6XX_CP_SQE_INSTR_BASE_LO 0x830 |
| 64 | #define A6XX_CP_SQE_INSTR_BASE_HI 0x831 |
| 65 | #define A6XX_CP_MISC_CNTL 0x840 |
| 66 | #define A6XX_CP_ROQ_THRESHOLDS_1 0x8C1 |
| 67 | #define A6XX_CP_ROQ_THRESHOLDS_2 0x8C2 |
| 68 | #define A6XX_CP_MEM_POOL_SIZE 0x8C3 |
| 69 | #define A6XX_CP_CHICKEN_DBG 0x841 |
| 70 | #define A6XX_CP_ADDR_MODE_CNTL 0x842 |
Tarun Karra | 4ea6812 | 2017-11-02 18:10:31 -0700 | [diff] [blame] | 71 | #define A6XX_CP_DBG_ECO_CNTL 0x843 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 72 | #define A6XX_CP_PROTECT_CNTL 0x84F |
| 73 | #define A6XX_CP_PROTECT_REG 0x850 |
Harshdeep Dhatt | 0cdc899 | 2017-05-31 15:44:05 -0600 | [diff] [blame] | 74 | #define A6XX_CP_CONTEXT_SWITCH_CNTL 0x8A0 |
| 75 | #define A6XX_CP_CONTEXT_SWITCH_SMMU_INFO_LO 0x8A1 |
| 76 | #define A6XX_CP_CONTEXT_SWITCH_SMMU_INFO_HI 0x8A2 |
| 77 | #define A6XX_CP_CONTEXT_SWITCH_PRIV_NON_SECURE_RESTORE_ADDR_LO 0x8A3 |
| 78 | #define A6XX_CP_CONTEXT_SWITCH_PRIV_NON_SECURE_RESTORE_ADDR_HI 0x8A4 |
| 79 | #define A6XX_CP_CONTEXT_SWITCH_PRIV_SECURE_RESTORE_ADDR_LO 0x8A5 |
| 80 | #define A6XX_CP_CONTEXT_SWITCH_PRIV_SECURE_RESTORE_ADDR_HI 0x8A6 |
| 81 | #define A6XX_CP_CONTEXT_SWITCH_NON_PRIV_RESTORE_ADDR_LO 0x8A7 |
| 82 | #define A6XX_CP_CONTEXT_SWITCH_NON_PRIV_RESTORE_ADDR_HI 0x8A8 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 83 | #define A6XX_CP_PERFCTR_CP_SEL_0 0x8D0 |
| 84 | #define A6XX_CP_PERFCTR_CP_SEL_1 0x8D1 |
| 85 | #define A6XX_CP_PERFCTR_CP_SEL_2 0x8D2 |
| 86 | #define A6XX_CP_PERFCTR_CP_SEL_3 0x8D3 |
| 87 | #define A6XX_CP_PERFCTR_CP_SEL_4 0x8D4 |
| 88 | #define A6XX_CP_PERFCTR_CP_SEL_5 0x8D5 |
| 89 | #define A6XX_CP_PERFCTR_CP_SEL_6 0x8D6 |
| 90 | #define A6XX_CP_PERFCTR_CP_SEL_7 0x8D7 |
| 91 | #define A6XX_CP_PERFCTR_CP_SEL_8 0x8D8 |
| 92 | #define A6XX_CP_PERFCTR_CP_SEL_9 0x8D9 |
| 93 | #define A6XX_CP_PERFCTR_CP_SEL_10 0x8DA |
| 94 | #define A6XX_CP_PERFCTR_CP_SEL_11 0x8DB |
| 95 | #define A6XX_CP_PERFCTR_CP_SEL_12 0x8DC |
| 96 | #define A6XX_CP_PERFCTR_CP_SEL_13 0x8DD |
Shrenuj Bansal | 4166540 | 2016-12-16 15:25:54 -0800 | [diff] [blame] | 97 | #define A6XX_CP_CRASH_SCRIPT_BASE_LO 0x900 |
| 98 | #define A6XX_CP_CRASH_SCRIPT_BASE_HI 0x901 |
| 99 | #define A6XX_CP_CRASH_DUMP_CNTL 0x902 |
| 100 | #define A6XX_CP_CRASH_DUMP_STATUS 0x903 |
Shrenuj Bansal | a602c02 | 2017-03-08 10:40:34 -0800 | [diff] [blame] | 101 | #define A6XX_CP_SQE_STAT_ADDR 0x908 |
| 102 | #define A6XX_CP_SQE_STAT_DATA 0x909 |
Shrenuj Bansal | 4166540 | 2016-12-16 15:25:54 -0800 | [diff] [blame] | 103 | #define A6XX_CP_DRAW_STATE_ADDR 0x90A |
| 104 | #define A6XX_CP_DRAW_STATE_DATA 0x90B |
| 105 | #define A6XX_CP_ROQ_DBG_ADDR 0x90C |
| 106 | #define A6XX_CP_ROQ_DBG_DATA 0x90D |
Lynus Vaz | a592274 | 2017-03-14 18:50:54 +0530 | [diff] [blame] | 107 | #define A6XX_CP_MEM_POOL_DBG_ADDR 0x90E |
| 108 | #define A6XX_CP_MEM_POOL_DBG_DATA 0x90F |
Shrenuj Bansal | 4166540 | 2016-12-16 15:25:54 -0800 | [diff] [blame] | 109 | #define A6XX_CP_SQE_UCODE_DBG_ADDR 0x910 |
| 110 | #define A6XX_CP_SQE_UCODE_DBG_DATA 0x911 |
| 111 | #define A6XX_CP_IB1_BASE 0x928 |
| 112 | #define A6XX_CP_IB1_BASE_HI 0x929 |
| 113 | #define A6XX_CP_IB1_REM_SIZE 0x92A |
| 114 | #define A6XX_CP_IB2_BASE 0x92B |
| 115 | #define A6XX_CP_IB2_BASE_HI 0x92C |
| 116 | #define A6XX_CP_IB2_REM_SIZE 0x92D |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 117 | #define A6XX_CP_ALWAYS_ON_COUNTER_LO 0x980 |
| 118 | #define A6XX_CP_ALWAYS_ON_COUNTER_HI 0x981 |
| 119 | #define A6XX_CP_AHB_CNTL 0x98D |
Shrenuj Bansal | 4166540 | 2016-12-16 15:25:54 -0800 | [diff] [blame] | 120 | #define A6XX_CP_APERTURE_CNTL_HOST 0xA00 |
Harshdeep Dhatt | a0cf241 | 2017-06-22 11:53:31 -0600 | [diff] [blame] | 121 | #define A6XX_CP_APERTURE_CNTL_CD 0xA03 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 122 | #define A6XX_VSC_ADDR_MODE_CNTL 0xC01 |
| 123 | |
| 124 | /* RBBM registers */ |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 125 | #define A6XX_RBBM_INT_0_STATUS 0x201 |
| 126 | #define A6XX_RBBM_STATUS 0x210 |
| 127 | #define A6XX_RBBM_STATUS3 0x213 |
Shrenuj Bansal | 49d0e9f | 2017-05-08 16:10:24 -0700 | [diff] [blame] | 128 | #define A6XX_RBBM_VBIF_GX_RESET_STATUS 0x215 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 129 | #define A6XX_RBBM_PERFCTR_CP_0_LO 0x400 |
| 130 | #define A6XX_RBBM_PERFCTR_CP_0_HI 0x401 |
| 131 | #define A6XX_RBBM_PERFCTR_CP_1_LO 0x402 |
| 132 | #define A6XX_RBBM_PERFCTR_CP_1_HI 0x403 |
| 133 | #define A6XX_RBBM_PERFCTR_CP_2_LO 0x404 |
| 134 | #define A6XX_RBBM_PERFCTR_CP_2_HI 0x405 |
| 135 | #define A6XX_RBBM_PERFCTR_CP_3_LO 0x406 |
| 136 | #define A6XX_RBBM_PERFCTR_CP_3_HI 0x407 |
| 137 | #define A6XX_RBBM_PERFCTR_CP_4_LO 0x408 |
| 138 | #define A6XX_RBBM_PERFCTR_CP_4_HI 0x409 |
| 139 | #define A6XX_RBBM_PERFCTR_CP_5_LO 0x40a |
| 140 | #define A6XX_RBBM_PERFCTR_CP_5_HI 0x40b |
| 141 | #define A6XX_RBBM_PERFCTR_CP_6_LO 0x40c |
| 142 | #define A6XX_RBBM_PERFCTR_CP_6_HI 0x40d |
| 143 | #define A6XX_RBBM_PERFCTR_CP_7_LO 0x40e |
| 144 | #define A6XX_RBBM_PERFCTR_CP_7_HI 0x40f |
| 145 | #define A6XX_RBBM_PERFCTR_CP_8_LO 0x410 |
| 146 | #define A6XX_RBBM_PERFCTR_CP_8_HI 0x411 |
| 147 | #define A6XX_RBBM_PERFCTR_CP_9_LO 0x412 |
| 148 | #define A6XX_RBBM_PERFCTR_CP_9_HI 0x413 |
| 149 | #define A6XX_RBBM_PERFCTR_CP_10_LO 0x414 |
| 150 | #define A6XX_RBBM_PERFCTR_CP_10_HI 0x415 |
| 151 | #define A6XX_RBBM_PERFCTR_CP_11_LO 0x416 |
| 152 | #define A6XX_RBBM_PERFCTR_CP_11_HI 0x417 |
| 153 | #define A6XX_RBBM_PERFCTR_CP_12_LO 0x418 |
| 154 | #define A6XX_RBBM_PERFCTR_CP_12_HI 0x419 |
| 155 | #define A6XX_RBBM_PERFCTR_CP_13_LO 0x41a |
| 156 | #define A6XX_RBBM_PERFCTR_CP_13_HI 0x41b |
| 157 | #define A6XX_RBBM_PERFCTR_RBBM_0_LO 0x41c |
| 158 | #define A6XX_RBBM_PERFCTR_RBBM_0_HI 0x41d |
| 159 | #define A6XX_RBBM_PERFCTR_RBBM_1_LO 0x41e |
| 160 | #define A6XX_RBBM_PERFCTR_RBBM_1_HI 0x41f |
| 161 | #define A6XX_RBBM_PERFCTR_RBBM_2_LO 0x420 |
| 162 | #define A6XX_RBBM_PERFCTR_RBBM_2_HI 0x421 |
| 163 | #define A6XX_RBBM_PERFCTR_RBBM_3_LO 0x422 |
| 164 | #define A6XX_RBBM_PERFCTR_RBBM_3_HI 0x423 |
| 165 | #define A6XX_RBBM_PERFCTR_PC_0_LO 0x424 |
| 166 | #define A6XX_RBBM_PERFCTR_PC_0_HI 0x425 |
| 167 | #define A6XX_RBBM_PERFCTR_PC_1_LO 0x426 |
| 168 | #define A6XX_RBBM_PERFCTR_PC_1_HI 0x427 |
| 169 | #define A6XX_RBBM_PERFCTR_PC_2_LO 0x428 |
| 170 | #define A6XX_RBBM_PERFCTR_PC_2_HI 0x429 |
| 171 | #define A6XX_RBBM_PERFCTR_PC_3_LO 0x42a |
| 172 | #define A6XX_RBBM_PERFCTR_PC_3_HI 0x42b |
| 173 | #define A6XX_RBBM_PERFCTR_PC_4_LO 0x42c |
| 174 | #define A6XX_RBBM_PERFCTR_PC_4_HI 0x42d |
| 175 | #define A6XX_RBBM_PERFCTR_PC_5_LO 0x42e |
| 176 | #define A6XX_RBBM_PERFCTR_PC_5_HI 0x42f |
| 177 | #define A6XX_RBBM_PERFCTR_PC_6_LO 0x430 |
| 178 | #define A6XX_RBBM_PERFCTR_PC_6_HI 0x431 |
| 179 | #define A6XX_RBBM_PERFCTR_PC_7_LO 0x432 |
| 180 | #define A6XX_RBBM_PERFCTR_PC_7_HI 0x433 |
| 181 | #define A6XX_RBBM_PERFCTR_VFD_0_LO 0x434 |
| 182 | #define A6XX_RBBM_PERFCTR_VFD_0_HI 0x435 |
| 183 | #define A6XX_RBBM_PERFCTR_VFD_1_LO 0x436 |
| 184 | #define A6XX_RBBM_PERFCTR_VFD_1_HI 0x437 |
| 185 | #define A6XX_RBBM_PERFCTR_VFD_2_LO 0x438 |
| 186 | #define A6XX_RBBM_PERFCTR_VFD_2_HI 0x439 |
| 187 | #define A6XX_RBBM_PERFCTR_VFD_3_LO 0x43a |
| 188 | #define A6XX_RBBM_PERFCTR_VFD_3_HI 0x43b |
| 189 | #define A6XX_RBBM_PERFCTR_VFD_4_LO 0x43c |
| 190 | #define A6XX_RBBM_PERFCTR_VFD_4_HI 0x43d |
| 191 | #define A6XX_RBBM_PERFCTR_VFD_5_LO 0x43e |
| 192 | #define A6XX_RBBM_PERFCTR_VFD_5_HI 0x43f |
| 193 | #define A6XX_RBBM_PERFCTR_VFD_6_LO 0x440 |
| 194 | #define A6XX_RBBM_PERFCTR_VFD_6_HI 0x441 |
| 195 | #define A6XX_RBBM_PERFCTR_VFD_7_LO 0x442 |
| 196 | #define A6XX_RBBM_PERFCTR_VFD_7_HI 0x443 |
| 197 | #define A6XX_RBBM_PERFCTR_HLSQ_0_LO 0x444 |
| 198 | #define A6XX_RBBM_PERFCTR_HLSQ_0_HI 0x445 |
| 199 | #define A6XX_RBBM_PERFCTR_HLSQ_1_LO 0x446 |
| 200 | #define A6XX_RBBM_PERFCTR_HLSQ_1_HI 0x447 |
| 201 | #define A6XX_RBBM_PERFCTR_HLSQ_2_LO 0x448 |
| 202 | #define A6XX_RBBM_PERFCTR_HLSQ_2_HI 0x449 |
| 203 | #define A6XX_RBBM_PERFCTR_HLSQ_3_LO 0x44a |
| 204 | #define A6XX_RBBM_PERFCTR_HLSQ_3_HI 0x44b |
| 205 | #define A6XX_RBBM_PERFCTR_HLSQ_4_LO 0x44c |
| 206 | #define A6XX_RBBM_PERFCTR_HLSQ_4_HI 0x44d |
| 207 | #define A6XX_RBBM_PERFCTR_HLSQ_5_LO 0x44e |
| 208 | #define A6XX_RBBM_PERFCTR_HLSQ_5_HI 0x44f |
| 209 | #define A6XX_RBBM_PERFCTR_VPC_0_LO 0x450 |
| 210 | #define A6XX_RBBM_PERFCTR_VPC_0_HI 0x451 |
| 211 | #define A6XX_RBBM_PERFCTR_VPC_1_LO 0x452 |
| 212 | #define A6XX_RBBM_PERFCTR_VPC_1_HI 0x453 |
| 213 | #define A6XX_RBBM_PERFCTR_VPC_2_LO 0x454 |
| 214 | #define A6XX_RBBM_PERFCTR_VPC_2_HI 0x455 |
| 215 | #define A6XX_RBBM_PERFCTR_VPC_3_LO 0x456 |
| 216 | #define A6XX_RBBM_PERFCTR_VPC_3_HI 0x457 |
| 217 | #define A6XX_RBBM_PERFCTR_VPC_4_LO 0x458 |
| 218 | #define A6XX_RBBM_PERFCTR_VPC_4_HI 0x459 |
| 219 | #define A6XX_RBBM_PERFCTR_VPC_5_LO 0x45a |
| 220 | #define A6XX_RBBM_PERFCTR_VPC_5_HI 0x45b |
| 221 | #define A6XX_RBBM_PERFCTR_CCU_0_LO 0x45c |
| 222 | #define A6XX_RBBM_PERFCTR_CCU_0_HI 0x45d |
| 223 | #define A6XX_RBBM_PERFCTR_CCU_1_LO 0x45e |
| 224 | #define A6XX_RBBM_PERFCTR_CCU_1_HI 0x45f |
| 225 | #define A6XX_RBBM_PERFCTR_CCU_2_LO 0x460 |
| 226 | #define A6XX_RBBM_PERFCTR_CCU_2_HI 0x461 |
| 227 | #define A6XX_RBBM_PERFCTR_CCU_3_LO 0x462 |
| 228 | #define A6XX_RBBM_PERFCTR_CCU_3_HI 0x463 |
| 229 | #define A6XX_RBBM_PERFCTR_CCU_4_LO 0x464 |
| 230 | #define A6XX_RBBM_PERFCTR_CCU_4_HI 0x465 |
| 231 | #define A6XX_RBBM_PERFCTR_TSE_0_LO 0x466 |
| 232 | #define A6XX_RBBM_PERFCTR_TSE_0_HI 0x467 |
| 233 | #define A6XX_RBBM_PERFCTR_TSE_1_LO 0x468 |
| 234 | #define A6XX_RBBM_PERFCTR_TSE_1_HI 0x469 |
| 235 | #define A6XX_RBBM_PERFCTR_TSE_2_LO 0x46a |
| 236 | #define A6XX_RBBM_PERFCTR_CCU_4_HI 0x465 |
| 237 | #define A6XX_RBBM_PERFCTR_TSE_0_LO 0x466 |
| 238 | #define A6XX_RBBM_PERFCTR_TSE_0_HI 0x467 |
| 239 | #define A6XX_RBBM_PERFCTR_TSE_1_LO 0x468 |
| 240 | #define A6XX_RBBM_PERFCTR_TSE_1_HI 0x469 |
| 241 | #define A6XX_RBBM_PERFCTR_TSE_2_LO 0x46a |
| 242 | #define A6XX_RBBM_PERFCTR_TSE_2_HI 0x46b |
| 243 | #define A6XX_RBBM_PERFCTR_TSE_3_LO 0x46c |
| 244 | #define A6XX_RBBM_PERFCTR_TSE_3_HI 0x46d |
| 245 | #define A6XX_RBBM_PERFCTR_RAS_0_LO 0x46e |
| 246 | #define A6XX_RBBM_PERFCTR_RAS_0_HI 0x46f |
| 247 | #define A6XX_RBBM_PERFCTR_RAS_1_LO 0x470 |
| 248 | #define A6XX_RBBM_PERFCTR_RAS_1_HI 0x471 |
| 249 | #define A6XX_RBBM_PERFCTR_RAS_2_LO 0x472 |
| 250 | #define A6XX_RBBM_PERFCTR_RAS_2_HI 0x473 |
| 251 | #define A6XX_RBBM_PERFCTR_RAS_3_LO 0x474 |
| 252 | #define A6XX_RBBM_PERFCTR_RAS_3_HI 0x475 |
| 253 | #define A6XX_RBBM_PERFCTR_UCHE_0_LO 0x476 |
| 254 | #define A6XX_RBBM_PERFCTR_UCHE_0_HI 0x477 |
| 255 | #define A6XX_RBBM_PERFCTR_UCHE_1_LO 0x478 |
| 256 | #define A6XX_RBBM_PERFCTR_UCHE_1_HI 0x479 |
| 257 | #define A6XX_RBBM_PERFCTR_UCHE_2_LO 0x47a |
| 258 | #define A6XX_RBBM_PERFCTR_UCHE_2_HI 0x47b |
| 259 | #define A6XX_RBBM_PERFCTR_UCHE_3_LO 0x47c |
| 260 | #define A6XX_RBBM_PERFCTR_UCHE_3_HI 0x47d |
| 261 | #define A6XX_RBBM_PERFCTR_UCHE_4_LO 0x47e |
| 262 | #define A6XX_RBBM_PERFCTR_UCHE_4_HI 0x47f |
| 263 | #define A6XX_RBBM_PERFCTR_UCHE_5_LO 0x480 |
| 264 | #define A6XX_RBBM_PERFCTR_UCHE_5_HI 0x481 |
| 265 | #define A6XX_RBBM_PERFCTR_UCHE_6_LO 0x482 |
| 266 | #define A6XX_RBBM_PERFCTR_UCHE_6_HI 0x483 |
| 267 | #define A6XX_RBBM_PERFCTR_UCHE_7_LO 0x484 |
| 268 | #define A6XX_RBBM_PERFCTR_UCHE_7_HI 0x485 |
| 269 | #define A6XX_RBBM_PERFCTR_UCHE_8_LO 0x486 |
| 270 | #define A6XX_RBBM_PERFCTR_UCHE_8_HI 0x487 |
| 271 | #define A6XX_RBBM_PERFCTR_UCHE_9_LO 0x488 |
| 272 | #define A6XX_RBBM_PERFCTR_UCHE_9_HI 0x489 |
| 273 | #define A6XX_RBBM_PERFCTR_UCHE_10_LO 0x48a |
| 274 | #define A6XX_RBBM_PERFCTR_UCHE_10_HI 0x48b |
| 275 | #define A6XX_RBBM_PERFCTR_UCHE_11_LO 0x48c |
| 276 | #define A6XX_RBBM_PERFCTR_UCHE_11_HI 0x48d |
| 277 | #define A6XX_RBBM_PERFCTR_TP_0_LO 0x48e |
| 278 | #define A6XX_RBBM_PERFCTR_TP_0_HI 0x48f |
| 279 | #define A6XX_RBBM_PERFCTR_TP_1_LO 0x490 |
| 280 | #define A6XX_RBBM_PERFCTR_TP_1_HI 0x491 |
| 281 | #define A6XX_RBBM_PERFCTR_TP_2_LO 0x492 |
| 282 | #define A6XX_RBBM_PERFCTR_TP_2_HI 0x493 |
| 283 | #define A6XX_RBBM_PERFCTR_TP_3_LO 0x494 |
| 284 | #define A6XX_RBBM_PERFCTR_TP_3_HI 0x495 |
| 285 | #define A6XX_RBBM_PERFCTR_TP_4_LO 0x496 |
| 286 | #define A6XX_RBBM_PERFCTR_TP_4_HI 0x497 |
| 287 | #define A6XX_RBBM_PERFCTR_TP_5_LO 0x498 |
| 288 | #define A6XX_RBBM_PERFCTR_TP_5_HI 0x499 |
| 289 | #define A6XX_RBBM_PERFCTR_TP_6_LO 0x49a |
| 290 | #define A6XX_RBBM_PERFCTR_TP_6_HI 0x49b |
| 291 | #define A6XX_RBBM_PERFCTR_TP_7_LO 0x49c |
| 292 | #define A6XX_RBBM_PERFCTR_TP_7_HI 0x49d |
| 293 | #define A6XX_RBBM_PERFCTR_TP_8_LO 0x49e |
| 294 | #define A6XX_RBBM_PERFCTR_TP_8_HI 0x49f |
| 295 | #define A6XX_RBBM_PERFCTR_TP_9_LO 0x4a0 |
| 296 | #define A6XX_RBBM_PERFCTR_TP_9_HI 0x4a1 |
| 297 | #define A6XX_RBBM_PERFCTR_TP_10_LO 0x4a2 |
| 298 | #define A6XX_RBBM_PERFCTR_TP_10_HI 0x4a3 |
| 299 | #define A6XX_RBBM_PERFCTR_TP_11_LO 0x4a4 |
| 300 | #define A6XX_RBBM_PERFCTR_TP_11_HI 0x4a5 |
| 301 | #define A6XX_RBBM_PERFCTR_SP_0_LO 0x4a6 |
| 302 | #define A6XX_RBBM_PERFCTR_SP_0_HI 0x4a7 |
| 303 | #define A6XX_RBBM_PERFCTR_SP_1_LO 0x4a8 |
| 304 | #define A6XX_RBBM_PERFCTR_SP_1_HI 0x4a9 |
| 305 | #define A6XX_RBBM_PERFCTR_SP_2_LO 0x4aa |
| 306 | #define A6XX_RBBM_PERFCTR_SP_2_HI 0x4ab |
| 307 | #define A6XX_RBBM_PERFCTR_SP_3_LO 0x4ac |
| 308 | #define A6XX_RBBM_PERFCTR_SP_3_HI 0x4ad |
| 309 | #define A6XX_RBBM_PERFCTR_SP_4_LO 0x4ae |
| 310 | #define A6XX_RBBM_PERFCTR_SP_4_HI 0x4af |
| 311 | #define A6XX_RBBM_PERFCTR_SP_5_LO 0x4b0 |
| 312 | #define A6XX_RBBM_PERFCTR_SP_5_HI 0x4b1 |
| 313 | #define A6XX_RBBM_PERFCTR_SP_6_LO 0x4b2 |
| 314 | #define A6XX_RBBM_PERFCTR_SP_6_HI 0x4b3 |
| 315 | #define A6XX_RBBM_PERFCTR_SP_7_LO 0x4b4 |
| 316 | #define A6XX_RBBM_PERFCTR_SP_7_HI 0x4b5 |
| 317 | #define A6XX_RBBM_PERFCTR_SP_8_LO 0x4b6 |
| 318 | #define A6XX_RBBM_PERFCTR_SP_8_HI 0x4b7 |
| 319 | #define A6XX_RBBM_PERFCTR_SP_9_LO 0x4b8 |
| 320 | #define A6XX_RBBM_PERFCTR_SP_9_HI 0x4b9 |
| 321 | #define A6XX_RBBM_PERFCTR_SP_10_LO 0x4ba |
| 322 | #define A6XX_RBBM_PERFCTR_SP_10_HI 0x4bb |
| 323 | #define A6XX_RBBM_PERFCTR_SP_11_LO 0x4bc |
| 324 | #define A6XX_RBBM_PERFCTR_SP_11_HI 0x4bd |
| 325 | #define A6XX_RBBM_PERFCTR_SP_12_LO 0x4be |
| 326 | #define A6XX_RBBM_PERFCTR_SP_12_HI 0x4bf |
| 327 | #define A6XX_RBBM_PERFCTR_SP_13_LO 0x4c0 |
| 328 | #define A6XX_RBBM_PERFCTR_SP_13_HI 0x4c1 |
| 329 | #define A6XX_RBBM_PERFCTR_SP_14_LO 0x4c2 |
| 330 | #define A6XX_RBBM_PERFCTR_SP_14_HI 0x4c3 |
| 331 | #define A6XX_RBBM_PERFCTR_SP_15_LO 0x4c4 |
| 332 | #define A6XX_RBBM_PERFCTR_SP_15_HI 0x4c5 |
| 333 | #define A6XX_RBBM_PERFCTR_SP_16_LO 0x4c6 |
| 334 | #define A6XX_RBBM_PERFCTR_SP_16_HI 0x4c7 |
| 335 | #define A6XX_RBBM_PERFCTR_SP_17_LO 0x4c8 |
| 336 | #define A6XX_RBBM_PERFCTR_SP_17_HI 0x4c9 |
| 337 | #define A6XX_RBBM_PERFCTR_SP_18_LO 0x4ca |
| 338 | #define A6XX_RBBM_PERFCTR_SP_18_HI 0x4cb |
| 339 | #define A6XX_RBBM_PERFCTR_SP_19_LO 0x4cc |
| 340 | #define A6XX_RBBM_PERFCTR_SP_19_HI 0x4cd |
| 341 | #define A6XX_RBBM_PERFCTR_SP_20_LO 0x4ce |
| 342 | #define A6XX_RBBM_PERFCTR_SP_20_HI 0x4cf |
| 343 | #define A6XX_RBBM_PERFCTR_SP_21_LO 0x4d0 |
| 344 | #define A6XX_RBBM_PERFCTR_SP_21_HI 0x4d1 |
| 345 | #define A6XX_RBBM_PERFCTR_SP_22_LO 0x4d2 |
| 346 | #define A6XX_RBBM_PERFCTR_SP_22_HI 0x4d3 |
| 347 | #define A6XX_RBBM_PERFCTR_SP_23_LO 0x4d4 |
| 348 | #define A6XX_RBBM_PERFCTR_SP_23_HI 0x4d5 |
| 349 | #define A6XX_RBBM_PERFCTR_RB_0_LO 0x4d6 |
| 350 | #define A6XX_RBBM_PERFCTR_RB_0_HI 0x4d7 |
| 351 | #define A6XX_RBBM_PERFCTR_RB_1_LO 0x4d8 |
| 352 | #define A6XX_RBBM_PERFCTR_RB_1_HI 0x4d9 |
| 353 | #define A6XX_RBBM_PERFCTR_RB_2_LO 0x4da |
| 354 | #define A6XX_RBBM_PERFCTR_RB_2_HI 0x4db |
| 355 | #define A6XX_RBBM_PERFCTR_RB_3_LO 0x4dc |
| 356 | #define A6XX_RBBM_PERFCTR_RB_3_HI 0x4dd |
| 357 | #define A6XX_RBBM_PERFCTR_RB_4_LO 0x4de |
| 358 | #define A6XX_RBBM_PERFCTR_RB_4_HI 0x4df |
| 359 | #define A6XX_RBBM_PERFCTR_RB_5_LO 0x4e0 |
| 360 | #define A6XX_RBBM_PERFCTR_RB_5_HI 0x4e1 |
| 361 | #define A6XX_RBBM_PERFCTR_RB_6_LO 0x4e2 |
| 362 | #define A6XX_RBBM_PERFCTR_RB_6_HI 0x4e3 |
| 363 | #define A6XX_RBBM_PERFCTR_RB_7_LO 0x4e4 |
| 364 | #define A6XX_RBBM_PERFCTR_RB_7_HI 0x4e5 |
| 365 | #define A6XX_RBBM_PERFCTR_VSC_0_LO 0x4e6 |
| 366 | #define A6XX_RBBM_PERFCTR_VSC_0_HI 0x4e7 |
| 367 | #define A6XX_RBBM_PERFCTR_VSC_1_LO 0x4e8 |
| 368 | #define A6XX_RBBM_PERFCTR_VSC_1_HI 0x4e9 |
| 369 | #define A6XX_RBBM_PERFCTR_LRZ_0_LO 0x4ea |
| 370 | #define A6XX_RBBM_PERFCTR_LRZ_0_HI 0x4eb |
| 371 | #define A6XX_RBBM_PERFCTR_LRZ_1_LO 0x4ec |
| 372 | #define A6XX_RBBM_PERFCTR_LRZ_1_HI 0x4ed |
| 373 | #define A6XX_RBBM_PERFCTR_LRZ_2_LO 0x4ee |
| 374 | #define A6XX_RBBM_PERFCTR_LRZ_2_HI 0x4ef |
| 375 | #define A6XX_RBBM_PERFCTR_LRZ_3_LO 0x4f0 |
| 376 | #define A6XX_RBBM_PERFCTR_LRZ_3_HI 0x4f1 |
| 377 | #define A6XX_RBBM_PERFCTR_CMP_0_LO 0x4f2 |
| 378 | #define A6XX_RBBM_PERFCTR_CMP_0_HI 0x4f3 |
| 379 | #define A6XX_RBBM_PERFCTR_CMP_1_LO 0x4f4 |
| 380 | #define A6XX_RBBM_PERFCTR_CMP_1_HI 0x4f5 |
| 381 | #define A6XX_RBBM_PERFCTR_CMP_2_LO 0x4f6 |
| 382 | #define A6XX_RBBM_PERFCTR_CMP_2_HI 0x4f7 |
| 383 | #define A6XX_RBBM_PERFCTR_CMP_3_LO 0x4f8 |
| 384 | #define A6XX_RBBM_PERFCTR_CMP_3_HI 0x4f9 |
| 385 | #define A6XX_RBBM_PERFCTR_CNTL 0x500 |
| 386 | #define A6XX_RBBM_PERFCTR_LOAD_CMD0 0x501 |
| 387 | #define A6XX_RBBM_PERFCTR_LOAD_CMD1 0x502 |
| 388 | #define A6XX_RBBM_PERFCTR_LOAD_CMD2 0x503 |
| 389 | #define A6XX_RBBM_PERFCTR_LOAD_CMD3 0x504 |
| 390 | #define A6XX_RBBM_PERFCTR_LOAD_VALUE_LO 0x505 |
| 391 | #define A6XX_RBBM_PERFCTR_LOAD_VALUE_HI 0x506 |
| 392 | #define A6XX_RBBM_PERFCTR_RBBM_SEL_0 0x507 |
| 393 | #define A6XX_RBBM_PERFCTR_RBBM_SEL_1 0x508 |
| 394 | #define A6XX_RBBM_PERFCTR_RBBM_SEL_2 0x509 |
| 395 | #define A6XX_RBBM_PERFCTR_RBBM_SEL_3 0x50A |
Harshdeep Dhatt | 75dbd41 | 2017-05-16 17:12:27 -0600 | [diff] [blame] | 396 | #define A6XX_RBBM_PERFCTR_GPU_BUSY_MASKED 0x50B |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 397 | |
Oleg Perelet | cb9b621 | 2017-03-16 15:38:43 -0700 | [diff] [blame] | 398 | #define A6XX_RBBM_ISDB_CNT 0x533 |
| 399 | |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 400 | #define A6XX_RBBM_SECVID_TRUST_CNTL 0xF400 |
Carter Cooper | 4a313ae | 2017-02-23 11:11:56 -0700 | [diff] [blame] | 401 | #define A6XX_RBBM_SECVID_TSB_TRUSTED_BASE_LO 0xF800 |
| 402 | #define A6XX_RBBM_SECVID_TSB_TRUSTED_BASE_HI 0xF801 |
| 403 | #define A6XX_RBBM_SECVID_TSB_TRUSTED_SIZE 0xF802 |
| 404 | #define A6XX_RBBM_SECVID_TSB_CNTL 0xF803 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 405 | #define A6XX_RBBM_SECVID_TSB_ADDR_MODE_CNTL 0xF810 |
| 406 | |
Oleg Perelet | cb9b621 | 2017-03-16 15:38:43 -0700 | [diff] [blame] | 407 | #define A6XX_RBBM_VBIF_CLIENT_QOS_CNTL 0x00010 |
| 408 | #define A6XX_RBBM_INTERFACE_HANG_INT_CNTL 0x0001f |
| 409 | #define A6XX_RBBM_INT_CLEAR_CMD 0x00037 |
| 410 | #define A6XX_RBBM_INT_0_MASK 0x00038 |
| 411 | #define A6XX_RBBM_SP_HYST_CNT 0x00042 |
| 412 | #define A6XX_RBBM_SW_RESET_CMD 0x00043 |
| 413 | #define A6XX_RBBM_RAC_THRESHOLD_CNT 0x00044 |
| 414 | #define A6XX_RBBM_BLOCK_SW_RESET_CMD 0x00045 |
| 415 | #define A6XX_RBBM_BLOCK_SW_RESET_CMD2 0x00046 |
| 416 | #define A6XX_RBBM_CLOCK_CNTL 0x000ae |
| 417 | #define A6XX_RBBM_CLOCK_CNTL_SP0 0x000b0 |
| 418 | #define A6XX_RBBM_CLOCK_CNTL_SP1 0x000b1 |
| 419 | #define A6XX_RBBM_CLOCK_CNTL_SP2 0x000b2 |
| 420 | #define A6XX_RBBM_CLOCK_CNTL_SP3 0x000b3 |
| 421 | #define A6XX_RBBM_CLOCK_CNTL2_SP0 0x000b4 |
| 422 | #define A6XX_RBBM_CLOCK_CNTL2_SP1 0x000b5 |
| 423 | #define A6XX_RBBM_CLOCK_CNTL2_SP2 0x000b6 |
| 424 | #define A6XX_RBBM_CLOCK_CNTL2_SP3 0x000b7 |
| 425 | #define A6XX_RBBM_CLOCK_DELAY_SP0 0x000b8 |
| 426 | #define A6XX_RBBM_CLOCK_DELAY_SP1 0x000b9 |
| 427 | #define A6XX_RBBM_CLOCK_DELAY_SP2 0x000ba |
| 428 | #define A6XX_RBBM_CLOCK_DELAY_SP3 0x000bb |
| 429 | #define A6XX_RBBM_CLOCK_HYST_SP0 0x000bc |
| 430 | #define A6XX_RBBM_CLOCK_HYST_SP1 0x000bd |
| 431 | #define A6XX_RBBM_CLOCK_HYST_SP2 0x000be |
| 432 | #define A6XX_RBBM_CLOCK_HYST_SP3 0x000bf |
| 433 | #define A6XX_RBBM_CLOCK_CNTL_TP0 0x000c0 |
| 434 | #define A6XX_RBBM_CLOCK_CNTL_TP1 0x000c1 |
| 435 | #define A6XX_RBBM_CLOCK_CNTL_TP2 0x000c2 |
| 436 | #define A6XX_RBBM_CLOCK_CNTL_TP3 0x000c3 |
| 437 | #define A6XX_RBBM_CLOCK_CNTL2_TP0 0x000c4 |
| 438 | #define A6XX_RBBM_CLOCK_CNTL2_TP1 0x000c5 |
| 439 | #define A6XX_RBBM_CLOCK_CNTL2_TP2 0x000c6 |
| 440 | #define A6XX_RBBM_CLOCK_CNTL2_TP3 0x000c7 |
| 441 | #define A6XX_RBBM_CLOCK_CNTL3_TP0 0x000c8 |
| 442 | #define A6XX_RBBM_CLOCK_CNTL3_TP1 0x000c9 |
| 443 | #define A6XX_RBBM_CLOCK_CNTL3_TP2 0x000ca |
| 444 | #define A6XX_RBBM_CLOCK_CNTL3_TP3 0x000cb |
| 445 | #define A6XX_RBBM_CLOCK_CNTL4_TP0 0x000cc |
| 446 | #define A6XX_RBBM_CLOCK_CNTL4_TP1 0x000cd |
| 447 | #define A6XX_RBBM_CLOCK_CNTL4_TP2 0x000ce |
| 448 | #define A6XX_RBBM_CLOCK_CNTL4_TP3 0x000cf |
| 449 | #define A6XX_RBBM_CLOCK_DELAY_TP0 0x000d0 |
| 450 | #define A6XX_RBBM_CLOCK_DELAY_TP1 0x000d1 |
| 451 | #define A6XX_RBBM_CLOCK_DELAY_TP2 0x000d2 |
| 452 | #define A6XX_RBBM_CLOCK_DELAY_TP3 0x000d3 |
| 453 | #define A6XX_RBBM_CLOCK_DELAY2_TP0 0x000d4 |
| 454 | #define A6XX_RBBM_CLOCK_DELAY2_TP1 0x000d5 |
| 455 | #define A6XX_RBBM_CLOCK_DELAY2_TP2 0x000d6 |
| 456 | #define A6XX_RBBM_CLOCK_DELAY2_TP3 0x000d7 |
| 457 | #define A6XX_RBBM_CLOCK_DELAY3_TP0 0x000d8 |
| 458 | #define A6XX_RBBM_CLOCK_DELAY3_TP1 0x000d9 |
| 459 | #define A6XX_RBBM_CLOCK_DELAY3_TP2 0x000da |
| 460 | #define A6XX_RBBM_CLOCK_DELAY3_TP3 0x000db |
| 461 | #define A6XX_RBBM_CLOCK_DELAY4_TP0 0x000dc |
| 462 | #define A6XX_RBBM_CLOCK_DELAY4_TP1 0x000dd |
| 463 | #define A6XX_RBBM_CLOCK_DELAY4_TP2 0x000de |
| 464 | #define A6XX_RBBM_CLOCK_DELAY4_TP3 0x000df |
| 465 | #define A6XX_RBBM_CLOCK_HYST_TP0 0x000e0 |
| 466 | #define A6XX_RBBM_CLOCK_HYST_TP1 0x000e1 |
| 467 | #define A6XX_RBBM_CLOCK_HYST_TP2 0x000e2 |
| 468 | #define A6XX_RBBM_CLOCK_HYST_TP3 0x000e3 |
| 469 | #define A6XX_RBBM_CLOCK_HYST2_TP0 0x000e4 |
| 470 | #define A6XX_RBBM_CLOCK_HYST2_TP1 0x000e5 |
| 471 | #define A6XX_RBBM_CLOCK_HYST2_TP2 0x000e6 |
| 472 | #define A6XX_RBBM_CLOCK_HYST2_TP3 0x000e7 |
| 473 | #define A6XX_RBBM_CLOCK_HYST3_TP0 0x000e8 |
| 474 | #define A6XX_RBBM_CLOCK_HYST3_TP1 0x000e9 |
| 475 | #define A6XX_RBBM_CLOCK_HYST3_TP2 0x000ea |
| 476 | #define A6XX_RBBM_CLOCK_HYST3_TP3 0x000eb |
| 477 | #define A6XX_RBBM_CLOCK_HYST4_TP0 0x000ec |
| 478 | #define A6XX_RBBM_CLOCK_HYST4_TP1 0x000ed |
| 479 | #define A6XX_RBBM_CLOCK_HYST4_TP2 0x000ee |
| 480 | #define A6XX_RBBM_CLOCK_HYST4_TP3 0x000ef |
| 481 | #define A6XX_RBBM_CLOCK_CNTL_RB0 0x000f0 |
| 482 | #define A6XX_RBBM_CLOCK_CNTL_RB1 0x000f1 |
| 483 | #define A6XX_RBBM_CLOCK_CNTL_RB2 0x000f2 |
| 484 | #define A6XX_RBBM_CLOCK_CNTL_RB3 0x000f3 |
| 485 | #define A6XX_RBBM_CLOCK_CNTL2_RB0 0x000f4 |
| 486 | #define A6XX_RBBM_CLOCK_CNTL2_RB1 0x000f5 |
| 487 | #define A6XX_RBBM_CLOCK_CNTL2_RB2 0x000f6 |
| 488 | #define A6XX_RBBM_CLOCK_CNTL2_RB3 0x000f7 |
| 489 | #define A6XX_RBBM_CLOCK_CNTL_CCU0 0x000f8 |
| 490 | #define A6XX_RBBM_CLOCK_CNTL_CCU1 0x000f9 |
| 491 | #define A6XX_RBBM_CLOCK_CNTL_CCU2 0x000fa |
| 492 | #define A6XX_RBBM_CLOCK_CNTL_CCU3 0x000fb |
| 493 | #define A6XX_RBBM_CLOCK_HYST_RB_CCU0 0x00100 |
| 494 | #define A6XX_RBBM_CLOCK_HYST_RB_CCU1 0x00101 |
| 495 | #define A6XX_RBBM_CLOCK_HYST_RB_CCU2 0x00102 |
| 496 | #define A6XX_RBBM_CLOCK_HYST_RB_CCU3 0x00103 |
| 497 | #define A6XX_RBBM_CLOCK_CNTL_RAC 0x00104 |
| 498 | #define A6XX_RBBM_CLOCK_CNTL2_RAC 0x00105 |
| 499 | #define A6XX_RBBM_CLOCK_DELAY_RAC 0x00106 |
| 500 | #define A6XX_RBBM_CLOCK_HYST_RAC 0x00107 |
| 501 | #define A6XX_RBBM_CLOCK_CNTL_TSE_RAS_RBBM 0x00108 |
| 502 | #define A6XX_RBBM_CLOCK_DELAY_TSE_RAS_RBBM 0x00109 |
| 503 | #define A6XX_RBBM_CLOCK_HYST_TSE_RAS_RBBM 0x0010a |
| 504 | #define A6XX_RBBM_CLOCK_CNTL_UCHE 0x0010b |
| 505 | #define A6XX_RBBM_CLOCK_CNTL2_UCHE 0x0010c |
| 506 | #define A6XX_RBBM_CLOCK_CNTL3_UCHE 0x0010d |
| 507 | #define A6XX_RBBM_CLOCK_CNTL4_UCHE 0x0010e |
| 508 | #define A6XX_RBBM_CLOCK_DELAY_UCHE 0x0010f |
| 509 | #define A6XX_RBBM_CLOCK_HYST_UCHE 0x00110 |
| 510 | #define A6XX_RBBM_CLOCK_MODE_VFD 0x00111 |
| 511 | #define A6XX_RBBM_CLOCK_DELAY_VFD 0x00112 |
| 512 | #define A6XX_RBBM_CLOCK_HYST_VFD 0x00113 |
| 513 | #define A6XX_RBBM_CLOCK_MODE_GPC 0x00114 |
| 514 | #define A6XX_RBBM_CLOCK_DELAY_GPC 0x00115 |
| 515 | #define A6XX_RBBM_CLOCK_HYST_GPC 0x00116 |
| 516 | #define A6XX_RBBM_CLOCK_DELAY_HLSQ_2 0x00117 |
| 517 | #define A6XX_RBBM_CLOCK_CNTL_GMU_GX 0x00118 |
| 518 | #define A6XX_RBBM_CLOCK_DELAY_GMU_GX 0x00119 |
| 519 | #define A6XX_RBBM_CLOCK_HYST_GMU_GX 0x0011a |
| 520 | #define A6XX_RBBM_CLOCK_MODE_HLSQ 0x0011b |
| 521 | #define A6XX_RBBM_CLOCK_DELAY_HLSQ 0x0011c |
| 522 | |
Lynus Vaz | 20c8127 | 2017-02-10 16:22:12 +0530 | [diff] [blame] | 523 | /* DBGC_CFG registers */ |
| 524 | #define A6XX_DBGC_CFG_DBGBUS_SEL_A 0x600 |
| 525 | #define A6XX_DBGC_CFG_DBGBUS_SEL_B 0x601 |
| 526 | #define A6XX_DBGC_CFG_DBGBUS_SEL_C 0x602 |
| 527 | #define A6XX_DBGC_CFG_DBGBUS_SEL_D 0x603 |
| 528 | #define A6XX_DBGC_CFG_DBGBUS_SEL_PING_INDEX_SHIFT 0x0 |
| 529 | #define A6XX_DBGC_CFG_DBGBUS_SEL_PING_BLK_SEL_SHIFT 0x8 |
| 530 | #define A6XX_DBGC_CFG_DBGBUS_CNTLT 0x604 |
| 531 | #define A6XX_DBGC_CFG_DBGBUS_CNTLT_TRACEEN_SHIFT 0x0 |
| 532 | #define A6XX_DBGC_CFG_DBGBUS_CNTLT_GRANU_SHIFT 0xC |
| 533 | #define A6XX_DBGC_CFG_DBGBUS_CNTLT_SEGT_SHIFT 0x1C |
| 534 | #define A6XX_DBGC_CFG_DBGBUS_CNTLM 0x605 |
| 535 | #define A6XX_DBGC_CFG_DBGBUS_CTLTM_ENABLE_SHIFT 0x18 |
Lokesh Batra | a8300e0 | 2017-05-25 11:17:40 -0700 | [diff] [blame] | 536 | #define A6XX_DBGC_CFG_DBGBUS_OPL 0x606 |
| 537 | #define A6XX_DBGC_CFG_DBGBUS_OPE 0x607 |
Lynus Vaz | 20c8127 | 2017-02-10 16:22:12 +0530 | [diff] [blame] | 538 | #define A6XX_DBGC_CFG_DBGBUS_IVTL_0 0x608 |
| 539 | #define A6XX_DBGC_CFG_DBGBUS_IVTL_1 0x609 |
| 540 | #define A6XX_DBGC_CFG_DBGBUS_IVTL_2 0x60a |
| 541 | #define A6XX_DBGC_CFG_DBGBUS_IVTL_3 0x60b |
| 542 | #define A6XX_DBGC_CFG_DBGBUS_MASKL_0 0x60c |
| 543 | #define A6XX_DBGC_CFG_DBGBUS_MASKL_1 0x60d |
| 544 | #define A6XX_DBGC_CFG_DBGBUS_MASKL_2 0x60e |
| 545 | #define A6XX_DBGC_CFG_DBGBUS_MASKL_3 0x60f |
| 546 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL_0 0x610 |
| 547 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL_1 0x611 |
| 548 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL0_SHIFT 0x0 |
| 549 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL1_SHIFT 0x4 |
| 550 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL2_SHIFT 0x8 |
| 551 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL3_SHIFT 0xC |
| 552 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL4_SHIFT 0x10 |
| 553 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL5_SHIFT 0x14 |
| 554 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL6_SHIFT 0x18 |
| 555 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL7_SHIFT 0x1C |
| 556 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL8_SHIFT 0x0 |
| 557 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL9_SHIFT 0x4 |
| 558 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL10_SHIFT 0x8 |
| 559 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL11_SHIFT 0xC |
| 560 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL12_SHIFT 0x10 |
| 561 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL13_SHIFT 0x14 |
| 562 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL14_SHIFT 0x18 |
| 563 | #define A6XX_DBGC_CFG_DBGBUS_BYTEL15_SHIFT 0x1C |
Lokesh Batra | a8300e0 | 2017-05-25 11:17:40 -0700 | [diff] [blame] | 564 | #define A6XX_DBGC_CFG_DBGBUS_IVTE_0 0x612 |
| 565 | #define A6XX_DBGC_CFG_DBGBUS_IVTE_1 0x613 |
| 566 | #define A6XX_DBGC_CFG_DBGBUS_IVTE_2 0x614 |
| 567 | #define A6XX_DBGC_CFG_DBGBUS_IVTE_3 0x615 |
| 568 | #define A6XX_DBGC_CFG_DBGBUS_MASKE_0 0x616 |
| 569 | #define A6XX_DBGC_CFG_DBGBUS_MASKE_1 0x617 |
| 570 | #define A6XX_DBGC_CFG_DBGBUS_MASKE_2 0x618 |
| 571 | #define A6XX_DBGC_CFG_DBGBUS_MASKE_3 0x619 |
| 572 | #define A6XX_DBGC_CFG_DBGBUS_NIBBLEE 0x61a |
| 573 | #define A6XX_DBGC_CFG_DBGBUS_PTRC0 0x61b |
| 574 | #define A6XX_DBGC_CFG_DBGBUS_PTRC1 0x61c |
| 575 | #define A6XX_DBGC_CFG_DBGBUS_LOADREG 0x61d |
| 576 | #define A6XX_DBGC_CFG_DBGBUS_IDX 0x61e |
| 577 | #define A6XX_DBGC_CFG_DBGBUS_CLRC 0x61f |
| 578 | #define A6XX_DBGC_CFG_DBGBUS_LOADIVT 0x620 |
| 579 | #define A6XX_DBGC_VBIF_DBG_CNTL 0x621 |
| 580 | #define A6XX_DBGC_DBG_LO_HI_GPIO 0x622 |
| 581 | #define A6XX_DBGC_EXT_TRACE_BUS_CNTL 0x623 |
| 582 | #define A6XX_DBGC_READ_AHB_THROUGH_DBG 0x624 |
Lynus Vaz | 20c8127 | 2017-02-10 16:22:12 +0530 | [diff] [blame] | 583 | #define A6XX_DBGC_CFG_DBGBUS_TRACE_BUF1 0x62f |
| 584 | #define A6XX_DBGC_CFG_DBGBUS_TRACE_BUF2 0x630 |
Lokesh Batra | a8300e0 | 2017-05-25 11:17:40 -0700 | [diff] [blame] | 585 | #define A6XX_DBGC_EVT_CFG 0x640 |
| 586 | #define A6XX_DBGC_EVT_INTF_SEL_0 0x641 |
| 587 | #define A6XX_DBGC_EVT_INTF_SEL_1 0x642 |
| 588 | #define A6XX_DBGC_PERF_ATB_CFG 0x643 |
| 589 | #define A6XX_DBGC_PERF_ATB_COUNTER_SEL_0 0x644 |
| 590 | #define A6XX_DBGC_PERF_ATB_COUNTER_SEL_1 0x645 |
| 591 | #define A6XX_DBGC_PERF_ATB_COUNTER_SEL_2 0x646 |
| 592 | #define A6XX_DBGC_PERF_ATB_COUNTER_SEL_3 0x647 |
| 593 | #define A6XX_DBGC_PERF_ATB_TRIG_INTF_SEL_0 0x648 |
| 594 | #define A6XX_DBGC_PERF_ATB_TRIG_INTF_SEL_1 0x649 |
| 595 | #define A6XX_DBGC_PERF_ATB_DRAIN_CMD 0x64a |
| 596 | #define A6XX_DBGC_ECO_CNTL 0x650 |
| 597 | #define A6XX_DBGC_AHB_DBG_CNTL 0x651 |
Lynus Vaz | 20c8127 | 2017-02-10 16:22:12 +0530 | [diff] [blame] | 598 | |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 599 | /* VSC registers */ |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 600 | #define A6XX_VSC_PERFCTR_VSC_SEL_0 0xCD8 |
| 601 | #define A6XX_VSC_PERFCTR_VSC_SEL_1 0xCD9 |
| 602 | |
| 603 | /* GRAS registers */ |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 604 | #define A6XX_GRAS_ADDR_MODE_CNTL 0x8601 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 605 | #define A6XX_GRAS_PERFCTR_TSE_SEL_0 0x8610 |
| 606 | #define A6XX_GRAS_PERFCTR_TSE_SEL_1 0x8611 |
| 607 | #define A6XX_GRAS_PERFCTR_TSE_SEL_2 0x8612 |
| 608 | #define A6XX_GRAS_PERFCTR_TSE_SEL_3 0x8613 |
| 609 | #define A6XX_GRAS_PERFCTR_RAS_SEL_0 0x8614 |
| 610 | #define A6XX_GRAS_PERFCTR_RAS_SEL_1 0x8615 |
| 611 | #define A6XX_GRAS_PERFCTR_RAS_SEL_2 0x8616 |
| 612 | #define A6XX_GRAS_PERFCTR_RAS_SEL_3 0x8617 |
| 613 | #define A6XX_GRAS_PERFCTR_LRZ_SEL_0 0x8618 |
| 614 | #define A6XX_GRAS_PERFCTR_LRZ_SEL_1 0x8619 |
| 615 | #define A6XX_GRAS_PERFCTR_LRZ_SEL_2 0x861A |
| 616 | #define A6XX_GRAS_PERFCTR_LRZ_SEL_3 0x861B |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 617 | |
| 618 | /* RB registers */ |
| 619 | #define A6XX_RB_ADDR_MODE_CNTL 0x8E05 |
| 620 | #define A6XX_RB_NC_MODE_CNTL 0x8E08 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 621 | #define A6XX_RB_PERFCTR_RB_SEL_0 0x8E10 |
| 622 | #define A6XX_RB_PERFCTR_RB_SEL_1 0x8E11 |
| 623 | #define A6XX_RB_PERFCTR_RB_SEL_2 0x8E12 |
| 624 | #define A6XX_RB_PERFCTR_RB_SEL_3 0x8E13 |
| 625 | #define A6XX_RB_PERFCTR_RB_SEL_4 0x8E14 |
| 626 | #define A6XX_RB_PERFCTR_RB_SEL_5 0x8E15 |
| 627 | #define A6XX_RB_PERFCTR_RB_SEL_6 0x8E16 |
| 628 | #define A6XX_RB_PERFCTR_RB_SEL_7 0x8E17 |
| 629 | #define A6XX_RB_PERFCTR_CCU_SEL_0 0x8E18 |
| 630 | #define A6XX_RB_PERFCTR_CCU_SEL_1 0x8E19 |
| 631 | #define A6XX_RB_PERFCTR_CCU_SEL_2 0x8E1A |
| 632 | #define A6XX_RB_PERFCTR_CCU_SEL_3 0x8E1B |
| 633 | #define A6XX_RB_PERFCTR_CCU_SEL_4 0x8E1C |
| 634 | #define A6XX_RB_PERFCTR_CMP_SEL_0 0x8E2C |
| 635 | #define A6XX_RB_PERFCTR_CMP_SEL_1 0x8E2D |
| 636 | #define A6XX_RB_PERFCTR_CMP_SEL_2 0x8E2E |
| 637 | #define A6XX_RB_PERFCTR_CMP_SEL_3 0x8E2F |
Harshdeep Dhatt | a0cf241 | 2017-06-22 11:53:31 -0600 | [diff] [blame] | 638 | #define A6XX_RB_RB_SUB_BLOCK_SEL_CNTL_HOST 0x8E3B |
| 639 | #define A6XX_RB_RB_SUB_BLOCK_SEL_CNTL_CD 0x8E3D |
Harshdeep Dhatt | 0cdc899 | 2017-05-31 15:44:05 -0600 | [diff] [blame] | 640 | #define A6XX_RB_CONTEXT_SWITCH_GMEM_SAVE_RESTORE 0x8E50 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 641 | |
| 642 | /* PC registers */ |
| 643 | #define A6XX_PC_DBG_ECO_CNTL 0x9E00 |
| 644 | #define A6XX_PC_ADDR_MODE_CNTL 0x9E01 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 645 | #define A6XX_PC_PERFCTR_PC_SEL_0 0x9E34 |
| 646 | #define A6XX_PC_PERFCTR_PC_SEL_1 0x9E35 |
| 647 | #define A6XX_PC_PERFCTR_PC_SEL_2 0x9E36 |
| 648 | #define A6XX_PC_PERFCTR_PC_SEL_3 0x9E37 |
| 649 | #define A6XX_PC_PERFCTR_PC_SEL_4 0x9E38 |
| 650 | #define A6XX_PC_PERFCTR_PC_SEL_5 0x9E39 |
| 651 | #define A6XX_PC_PERFCTR_PC_SEL_6 0x9E3A |
| 652 | #define A6XX_PC_PERFCTR_PC_SEL_7 0x9E3B |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 653 | |
| 654 | /* HLSQ registers */ |
| 655 | #define A6XX_HLSQ_ADDR_MODE_CNTL 0xBE05 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 656 | #define A6XX_HLSQ_PERFCTR_HLSQ_SEL_0 0xBE10 |
| 657 | #define A6XX_HLSQ_PERFCTR_HLSQ_SEL_1 0xBE11 |
| 658 | #define A6XX_HLSQ_PERFCTR_HLSQ_SEL_2 0xBE12 |
| 659 | #define A6XX_HLSQ_PERFCTR_HLSQ_SEL_3 0xBE13 |
| 660 | #define A6XX_HLSQ_PERFCTR_HLSQ_SEL_4 0xBE14 |
| 661 | #define A6XX_HLSQ_PERFCTR_HLSQ_SEL_5 0xBE15 |
Lynus Vaz | 461e238 | 2017-01-16 19:35:41 +0530 | [diff] [blame] | 662 | #define A6XX_HLSQ_DBG_AHB_READ_APERTURE 0xC800 |
| 663 | #define A6XX_HLSQ_DBG_READ_SEL 0xD000 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 664 | |
| 665 | /* VFD registers */ |
| 666 | #define A6XX_VFD_ADDR_MODE_CNTL 0xA601 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 667 | #define A6XX_VFD_PERFCTR_VFD_SEL_0 0xA610 |
| 668 | #define A6XX_VFD_PERFCTR_VFD_SEL_1 0xA611 |
| 669 | #define A6XX_VFD_PERFCTR_VFD_SEL_2 0xA612 |
| 670 | #define A6XX_VFD_PERFCTR_VFD_SEL_3 0xA613 |
| 671 | #define A6XX_VFD_PERFCTR_VFD_SEL_4 0xA614 |
| 672 | #define A6XX_VFD_PERFCTR_VFD_SEL_5 0xA615 |
| 673 | #define A6XX_VFD_PERFCTR_VFD_SEL_6 0xA616 |
| 674 | #define A6XX_VFD_PERFCTR_VFD_SEL_7 0xA617 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 675 | |
| 676 | /* VPC registers */ |
| 677 | #define A6XX_VPC_ADDR_MODE_CNTL 0x9601 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 678 | #define A6XX_VPC_PERFCTR_VPC_SEL_0 0x9604 |
| 679 | #define A6XX_VPC_PERFCTR_VPC_SEL_1 0x9605 |
| 680 | #define A6XX_VPC_PERFCTR_VPC_SEL_2 0x9606 |
| 681 | #define A6XX_VPC_PERFCTR_VPC_SEL_3 0x9607 |
| 682 | #define A6XX_VPC_PERFCTR_VPC_SEL_4 0x9608 |
| 683 | #define A6XX_VPC_PERFCTR_VPC_SEL_5 0x9609 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 684 | |
| 685 | /* UCHE registers */ |
| 686 | #define A6XX_UCHE_ADDR_MODE_CNTL 0xE00 |
| 687 | #define A6XX_UCHE_MODE_CNTL 0xE01 |
| 688 | #define A6XX_UCHE_WRITE_RANGE_MAX_LO 0xE05 |
| 689 | #define A6XX_UCHE_WRITE_RANGE_MAX_HI 0xE06 |
| 690 | #define A6XX_UCHE_WRITE_THRU_BASE_LO 0xE07 |
| 691 | #define A6XX_UCHE_WRITE_THRU_BASE_HI 0xE08 |
| 692 | #define A6XX_UCHE_TRAP_BASE_LO 0xE09 |
| 693 | #define A6XX_UCHE_TRAP_BASE_HI 0xE0A |
| 694 | #define A6XX_UCHE_GMEM_RANGE_MIN_LO 0xE0B |
| 695 | #define A6XX_UCHE_GMEM_RANGE_MIN_HI 0xE0C |
| 696 | #define A6XX_UCHE_GMEM_RANGE_MAX_LO 0xE0D |
| 697 | #define A6XX_UCHE_GMEM_RANGE_MAX_HI 0xE0E |
| 698 | #define A6XX_UCHE_CACHE_WAYS 0xE17 |
| 699 | #define A6XX_UCHE_FILTER_CNTL 0xE18 |
Lynus Vaz | 1fde74d | 2017-03-20 18:02:47 +0530 | [diff] [blame] | 700 | #define A6XX_UCHE_CLIENT_PF 0xE19 |
| 701 | #define A6XX_UCHE_CLIENT_PF_CLIENT_ID_MASK 0x7 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 702 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_0 0xE1C |
| 703 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_1 0xE1D |
| 704 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_2 0xE1E |
| 705 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_3 0xE1F |
| 706 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_4 0xE20 |
| 707 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_5 0xE21 |
| 708 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_6 0xE22 |
| 709 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_7 0xE23 |
| 710 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_8 0xE24 |
| 711 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_9 0xE25 |
| 712 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_10 0xE26 |
| 713 | #define A6XX_UCHE_PERFCTR_UCHE_SEL_11 0xE27 |
Rajesh Kemisetti | 1d4a697 | 2017-11-16 17:56:52 +0530 | [diff] [blame] | 714 | #define A6XX_UCHE_GBIF_GX_CONFIG 0xE3A |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 715 | |
| 716 | /* SP registers */ |
| 717 | #define A6XX_SP_ADDR_MODE_CNTL 0xAE01 |
| 718 | #define A6XX_SP_NC_MODE_CNTL 0xAE02 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 719 | #define A6XX_SP_PERFCTR_SP_SEL_0 0xAE10 |
| 720 | #define A6XX_SP_PERFCTR_SP_SEL_1 0xAE11 |
| 721 | #define A6XX_SP_PERFCTR_SP_SEL_2 0xAE12 |
| 722 | #define A6XX_SP_PERFCTR_SP_SEL_3 0xAE13 |
| 723 | #define A6XX_SP_PERFCTR_SP_SEL_4 0xAE14 |
| 724 | #define A6XX_SP_PERFCTR_SP_SEL_5 0xAE15 |
| 725 | #define A6XX_SP_PERFCTR_SP_SEL_6 0xAE16 |
| 726 | #define A6XX_SP_PERFCTR_SP_SEL_7 0xAE17 |
| 727 | #define A6XX_SP_PERFCTR_SP_SEL_8 0xAE18 |
| 728 | #define A6XX_SP_PERFCTR_SP_SEL_9 0xAE19 |
| 729 | #define A6XX_SP_PERFCTR_SP_SEL_10 0xAE1A |
| 730 | #define A6XX_SP_PERFCTR_SP_SEL_11 0xAE1B |
| 731 | #define A6XX_SP_PERFCTR_SP_SEL_12 0xAE1C |
| 732 | #define A6XX_SP_PERFCTR_SP_SEL_13 0xAE1D |
| 733 | #define A6XX_SP_PERFCTR_SP_SEL_14 0xAE1E |
| 734 | #define A6XX_SP_PERFCTR_SP_SEL_15 0xAE1F |
| 735 | #define A6XX_SP_PERFCTR_SP_SEL_16 0xAE20 |
| 736 | #define A6XX_SP_PERFCTR_SP_SEL_17 0xAE21 |
| 737 | #define A6XX_SP_PERFCTR_SP_SEL_18 0xAE22 |
| 738 | #define A6XX_SP_PERFCTR_SP_SEL_19 0xAE23 |
| 739 | #define A6XX_SP_PERFCTR_SP_SEL_20 0xAE24 |
| 740 | #define A6XX_SP_PERFCTR_SP_SEL_21 0xAE25 |
| 741 | #define A6XX_SP_PERFCTR_SP_SEL_22 0xAE26 |
| 742 | #define A6XX_SP_PERFCTR_SP_SEL_23 0xAE27 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 743 | |
| 744 | /* TP registers */ |
| 745 | #define A6XX_TPL1_ADDR_MODE_CNTL 0xB601 |
| 746 | #define A6XX_TPL1_NC_MODE_CNTL 0xB604 |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 747 | #define A6XX_TPL1_PERFCTR_TP_SEL_0 0xB610 |
| 748 | #define A6XX_TPL1_PERFCTR_TP_SEL_1 0xB611 |
| 749 | #define A6XX_TPL1_PERFCTR_TP_SEL_2 0xB612 |
| 750 | #define A6XX_TPL1_PERFCTR_TP_SEL_3 0xB613 |
| 751 | #define A6XX_TPL1_PERFCTR_TP_SEL_4 0xB614 |
| 752 | #define A6XX_TPL1_PERFCTR_TP_SEL_5 0xB615 |
| 753 | #define A6XX_TPL1_PERFCTR_TP_SEL_6 0xB616 |
| 754 | #define A6XX_TPL1_PERFCTR_TP_SEL_7 0xB617 |
| 755 | #define A6XX_TPL1_PERFCTR_TP_SEL_8 0xB618 |
| 756 | #define A6XX_TPL1_PERFCTR_TP_SEL_9 0xB619 |
| 757 | #define A6XX_TPL1_PERFCTR_TP_SEL_10 0xB61A |
| 758 | #define A6XX_TPL1_PERFCTR_TP_SEL_11 0xB61B |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 759 | |
| 760 | /* VBIF registers */ |
| 761 | #define A6XX_VBIF_VERSION 0x3000 |
Lynus Vaz | daac54073 | 2017-07-27 14:23:35 +0530 | [diff] [blame] | 762 | #define A6XX_VBIF_CLKON 0x3001 |
| 763 | #define A6XX_VBIF_CLKON_FORCE_ON_TESTBUS_MASK 0x1 |
| 764 | #define A6XX_VBIF_CLKON_FORCE_ON_TESTBUS_SHIFT 0x1 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 765 | #define A6XX_VBIF_GATE_OFF_WRREQ_EN 0x302A |
| 766 | #define A6XX_VBIF_XIN_HALT_CTRL0 0x3080 |
Carter Cooper | afc8591 | 2017-03-20 09:39:18 -0600 | [diff] [blame] | 767 | #define A6XX_VBIF_XIN_HALT_CTRL0_MASK 0xF |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 768 | #define A6XX_VBIF_XIN_HALT_CTRL1 0x3081 |
Lynus Vaz | daac54073 | 2017-07-27 14:23:35 +0530 | [diff] [blame] | 769 | #define A6XX_VBIF_TEST_BUS_OUT_CTRL 0x3084 |
| 770 | #define A6XX_VBIF_TEST_BUS_OUT_CTRL_EN_MASK 0x1 |
| 771 | #define A6XX_VBIF_TEST_BUS_OUT_CTRL_EN_SHIFT 0x0 |
| 772 | #define A6XX_VBIF_TEST_BUS1_CTRL0 0x3085 |
| 773 | #define A6XX_VBIF_TEST_BUS1_CTRL1 0x3086 |
| 774 | #define A6XX_VBIF_TEST_BUS1_CTRL1_DATA_SEL_MASK 0xF |
| 775 | #define A6XX_VBIF_TEST_BUS1_CTRL1_DATA_SEL_SHIFT 0x0 |
| 776 | #define A6XX_VBIF_TEST_BUS2_CTRL0 0x3087 |
| 777 | #define A6XX_VBIF_TEST_BUS2_CTRL1 0x3088 |
| 778 | #define A6XX_VBIF_TEST_BUS2_CTRL1_DATA_SEL_MASK 0x1FF |
| 779 | #define A6XX_VBIF_TEST_BUS2_CTRL1_DATA_SEL_SHIFT 0x0 |
| 780 | #define A6XX_VBIF_TEST_BUS_OUT 0x308C |
Lynus Vaz | 107d289 | 2017-03-01 13:48:06 +0530 | [diff] [blame] | 781 | #define A6XX_VBIF_PERF_CNT_SEL0 0x30d0 |
| 782 | #define A6XX_VBIF_PERF_CNT_SEL1 0x30d1 |
| 783 | #define A6XX_VBIF_PERF_CNT_SEL2 0x30d2 |
| 784 | #define A6XX_VBIF_PERF_CNT_SEL3 0x30d3 |
| 785 | #define A6XX_VBIF_PERF_CNT_LOW0 0x30d8 |
| 786 | #define A6XX_VBIF_PERF_CNT_LOW1 0x30d9 |
| 787 | #define A6XX_VBIF_PERF_CNT_LOW2 0x30da |
| 788 | #define A6XX_VBIF_PERF_CNT_LOW3 0x30db |
| 789 | #define A6XX_VBIF_PERF_CNT_HIGH0 0x30e0 |
| 790 | #define A6XX_VBIF_PERF_CNT_HIGH1 0x30e1 |
| 791 | #define A6XX_VBIF_PERF_CNT_HIGH2 0x30e2 |
| 792 | #define A6XX_VBIF_PERF_CNT_HIGH3 0x30e3 |
| 793 | #define A6XX_VBIF_PERF_PWR_CNT_EN0 0x3100 |
| 794 | #define A6XX_VBIF_PERF_PWR_CNT_EN1 0x3101 |
| 795 | #define A6XX_VBIF_PERF_PWR_CNT_EN2 0x3102 |
| 796 | #define A6XX_VBIF_PERF_PWR_CNT_LOW0 0x3110 |
| 797 | #define A6XX_VBIF_PERF_PWR_CNT_LOW1 0x3111 |
| 798 | #define A6XX_VBIF_PERF_PWR_CNT_LOW2 0x3112 |
| 799 | #define A6XX_VBIF_PERF_PWR_CNT_HIGH0 0x3118 |
| 800 | #define A6XX_VBIF_PERF_PWR_CNT_HIGH1 0x3119 |
| 801 | #define A6XX_VBIF_PERF_PWR_CNT_HIGH2 0x311a |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 802 | |
Deepak Kumar | 84b9e03 | 2017-11-08 13:08:50 +0530 | [diff] [blame] | 803 | /* GBIF countables */ |
| 804 | #define GBIF_AXI0_READ_DATA_TOTAL_BEATS 34 |
| 805 | #define GBIF_AXI1_READ_DATA_TOTAL_BEATS 35 |
| 806 | #define GBIF_AXI0_WRITE_DATA_TOTAL_BEATS 46 |
| 807 | #define GBIF_AXI1_WRITE_DATA_TOTAL_BEATS 47 |
| 808 | |
Rajesh Kemisetti | 77b82ed | 2017-09-24 20:42:41 +0530 | [diff] [blame] | 809 | /* GBIF registers */ |
| 810 | #define A6XX_GBIF_HALT 0x3c45 |
| 811 | #define A6XX_GBIF_HALT_ACK 0x3c46 |
| 812 | #define A6XX_GBIF_HALT_MASK 0x1 |
| 813 | |
| 814 | #define A6XX_GBIF_PERF_PWR_CNT_EN 0x3cc0 |
| 815 | #define A6XX_GBIF_PERF_CNT_SEL 0x3cc2 |
| 816 | #define A6XX_GBIF_PERF_CNT_LOW0 0x3cc4 |
| 817 | #define A6XX_GBIF_PERF_CNT_LOW1 0x3cc5 |
| 818 | #define A6XX_GBIF_PERF_CNT_LOW2 0x3cc6 |
| 819 | #define A6XX_GBIF_PERF_CNT_LOW3 0x3cc7 |
| 820 | #define A6XX_GBIF_PERF_CNT_HIGH0 0x3cc8 |
| 821 | #define A6XX_GBIF_PERF_CNT_HIGH1 0x3cc9 |
| 822 | #define A6XX_GBIF_PERF_CNT_HIGH2 0x3cca |
| 823 | #define A6XX_GBIF_PERF_CNT_HIGH3 0x3ccb |
| 824 | #define A6XX_GBIF_PWR_CNT_LOW0 0x3ccc |
| 825 | #define A6XX_GBIF_PWR_CNT_LOW1 0x3ccd |
| 826 | #define A6XX_GBIF_PWR_CNT_LOW2 0x3cce |
| 827 | #define A6XX_GBIF_PWR_CNT_HIGH0 0x3ccf |
| 828 | #define A6XX_GBIF_PWR_CNT_HIGH1 0x3cd0 |
| 829 | #define A6XX_GBIF_PWR_CNT_HIGH2 0x3cd1 |
| 830 | |
| 831 | |
Lynus Vaz | ff24c97 | 2017-03-07 19:27:46 +0530 | [diff] [blame] | 832 | /* CX_DBGC_CFG registers */ |
| 833 | #define A6XX_CX_DBGC_CFG_DBGBUS_SEL_A 0x18400 |
| 834 | #define A6XX_CX_DBGC_CFG_DBGBUS_SEL_B 0x18401 |
| 835 | #define A6XX_CX_DBGC_CFG_DBGBUS_SEL_C 0x18402 |
| 836 | #define A6XX_CX_DBGC_CFG_DBGBUS_SEL_D 0x18403 |
Lokesh Batra | a8300e0 | 2017-05-25 11:17:40 -0700 | [diff] [blame] | 837 | #define A6XX_CX_DBGC_CFG_DBGBUS_SEL_PING_INDEX_SHIFT 0x0 |
| 838 | #define A6XX_CX_DBGC_CFG_DBGBUS_SEL_PING_BLK_SEL_SHIFT 0x8 |
Lynus Vaz | ff24c97 | 2017-03-07 19:27:46 +0530 | [diff] [blame] | 839 | #define A6XX_CX_DBGC_CFG_DBGBUS_CNTLT 0x18404 |
| 840 | #define A6XX_CX_DBGC_CFG_DBGBUS_CNTLT_TRACEEN_SHIFT 0x0 |
| 841 | #define A6XX_CX_DBGC_CFG_DBGBUS_CNTLT_GRANU_SHIFT 0xC |
| 842 | #define A6XX_CX_DBGC_CFG_DBGBUS_CNTLT_SEGT_SHIFT 0x1C |
| 843 | #define A6XX_CX_DBGC_CFG_DBGBUS_CNTLM 0x18405 |
| 844 | #define A6XX_CX_DBGC_CFG_DBGBUS_CNTLM_ENABLE_SHIFT 0x18 |
Lokesh Batra | a8300e0 | 2017-05-25 11:17:40 -0700 | [diff] [blame] | 845 | #define A6XX_CX_DBGC_CFG_DBGBUS_OPL 0x18406 |
| 846 | #define A6XX_CX_DBGC_CFG_DBGBUS_OPE 0x18407 |
Lynus Vaz | ff24c97 | 2017-03-07 19:27:46 +0530 | [diff] [blame] | 847 | #define A6XX_CX_DBGC_CFG_DBGBUS_IVTL_0 0x18408 |
| 848 | #define A6XX_CX_DBGC_CFG_DBGBUS_IVTL_1 0x18409 |
| 849 | #define A6XX_CX_DBGC_CFG_DBGBUS_IVTL_2 0x1840A |
| 850 | #define A6XX_CX_DBGC_CFG_DBGBUS_IVTL_3 0x1840B |
| 851 | #define A6XX_CX_DBGC_CFG_DBGBUS_MASKL_0 0x1840C |
| 852 | #define A6XX_CX_DBGC_CFG_DBGBUS_MASKL_1 0x1840D |
| 853 | #define A6XX_CX_DBGC_CFG_DBGBUS_MASKL_2 0x1840E |
| 854 | #define A6XX_CX_DBGC_CFG_DBGBUS_MASKL_3 0x1840F |
| 855 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_0 0x18410 |
| 856 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_1 0x18411 |
| 857 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL0_SHIFT 0x0 |
| 858 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL1_SHIFT 0x4 |
| 859 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL2_SHIFT 0x8 |
| 860 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL3_SHIFT 0xC |
| 861 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL4_SHIFT 0x10 |
| 862 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL5_SHIFT 0x14 |
| 863 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL6_SHIFT 0x18 |
| 864 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL7_SHIFT 0x1C |
| 865 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL8_SHIFT 0x0 |
| 866 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL9_SHIFT 0x4 |
| 867 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL10_SHIFT 0x8 |
| 868 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL11_SHIFT 0xC |
| 869 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL12_SHIFT 0x10 |
| 870 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL13_SHIFT 0x14 |
| 871 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL14_SHIFT 0x18 |
| 872 | #define A6XX_CX_DBGC_CFG_DBGBUS_BYTEL15_SHIFT 0x1C |
Lokesh Batra | a8300e0 | 2017-05-25 11:17:40 -0700 | [diff] [blame] | 873 | #define A6XX_CX_DBGC_CFG_DBGBUS_IVTE_0 0x18412 |
| 874 | #define A6XX_CX_DBGC_CFG_DBGBUS_IVTE_1 0x18413 |
| 875 | #define A6XX_CX_DBGC_CFG_DBGBUS_IVTE_2 0x18414 |
| 876 | #define A6XX_CX_DBGC_CFG_DBGBUS_IVTE_3 0x18415 |
| 877 | #define A6XX_CX_DBGC_CFG_DBGBUS_MASKE_0 0x18416 |
| 878 | #define A6XX_CX_DBGC_CFG_DBGBUS_MASKE_1 0x18417 |
| 879 | #define A6XX_CX_DBGC_CFG_DBGBUS_MASKE_2 0x18418 |
| 880 | #define A6XX_CX_DBGC_CFG_DBGBUS_MASKE_3 0x18419 |
| 881 | #define A6XX_CX_DBGC_CFG_DBGBUS_NIBBLEE 0x1841A |
| 882 | #define A6XX_CX_DBGC_CFG_DBGBUS_PTRC0 0x1841B |
| 883 | #define A6XX_CX_DBGC_CFG_DBGBUS_PTRC1 0x1841C |
| 884 | #define A6XX_CX_DBGC_CFG_DBGBUS_LOADREG 0x1841D |
| 885 | #define A6XX_CX_DBGC_CFG_DBGBUS_IDX 0x1841E |
| 886 | #define A6XX_CX_DBGC_CFG_DBGBUS_CLRC 0x1841F |
| 887 | #define A6XX_CX_DBGC_CFG_DBGBUS_LOADIVT 0x18420 |
| 888 | #define A6XX_CX_DBGC_VBIF_DBG_CNTL 0x18421 |
| 889 | #define A6XX_CX_DBGC_DBG_LO_HI_GPIO 0x18422 |
| 890 | #define A6XX_CX_DBGC_EXT_TRACE_BUS_CNTL 0x18423 |
| 891 | #define A6XX_CX_DBGC_READ_AHB_THROUGH_DBG 0x18424 |
Lynus Vaz | ff24c97 | 2017-03-07 19:27:46 +0530 | [diff] [blame] | 892 | #define A6XX_CX_DBGC_CFG_DBGBUS_TRACE_BUF1 0x1842F |
| 893 | #define A6XX_CX_DBGC_CFG_DBGBUS_TRACE_BUF2 0x18430 |
Lokesh Batra | a8300e0 | 2017-05-25 11:17:40 -0700 | [diff] [blame] | 894 | #define A6XX_CX_DBGC_EVT_CFG 0x18440 |
| 895 | #define A6XX_CX_DBGC_EVT_INTF_SEL_0 0x18441 |
| 896 | #define A6XX_CX_DBGC_EVT_INTF_SEL_1 0x18442 |
| 897 | #define A6XX_CX_DBGC_PERF_ATB_CFG 0x18443 |
| 898 | #define A6XX_CX_DBGC_PERF_ATB_COUNTER_SEL_0 0x18444 |
| 899 | #define A6XX_CX_DBGC_PERF_ATB_COUNTER_SEL_1 0x18445 |
| 900 | #define A6XX_CX_DBGC_PERF_ATB_COUNTER_SEL_2 0x18446 |
| 901 | #define A6XX_CX_DBGC_PERF_ATB_COUNTER_SEL_3 0x18447 |
| 902 | #define A6XX_CX_DBGC_PERF_ATB_TRIG_INTF_SEL_0 0x18448 |
| 903 | #define A6XX_CX_DBGC_PERF_ATB_TRIG_INTF_SEL_1 0x18449 |
| 904 | #define A6XX_CX_DBGC_PERF_ATB_DRAIN_CMD 0x1844A |
| 905 | #define A6XX_CX_DBGC_ECO_CNTL 0x18450 |
| 906 | #define A6XX_CX_DBGC_AHB_DBG_CNTL 0x18451 |
Lynus Vaz | ff24c97 | 2017-03-07 19:27:46 +0530 | [diff] [blame] | 907 | |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 908 | /* GMU control registers */ |
Oleg Perelet | cb9b621 | 2017-03-16 15:38:43 -0700 | [diff] [blame] | 909 | #define A6XX_GPU_GMU_GX_SPTPRAC_CLOCK_CONTROL 0x1A880 |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 910 | #define A6XX_GMU_GX_SPTPRAC_POWER_CONTROL 0x1A881 |
| 911 | #define A6XX_GMU_CM3_ITCM_START 0x1B400 |
| 912 | #define A6XX_GMU_CM3_DTCM_START 0x1C400 |
Shrenuj Bansal | d0fe746 | 2017-05-08 16:11:19 -0700 | [diff] [blame] | 913 | #define A6XX_GMU_NMI_CONTROL_STATUS 0x1CBF0 |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 914 | #define A6XX_GMU_BOOT_SLUMBER_OPTION 0x1CBF8 |
| 915 | #define A6XX_GMU_GX_VOTE_IDX 0x1CBF9 |
| 916 | #define A6XX_GMU_MX_VOTE_IDX 0x1CBFA |
| 917 | #define A6XX_GMU_DCVS_ACK_OPTION 0x1CBFC |
| 918 | #define A6XX_GMU_DCVS_PERF_SETTING 0x1CBFD |
| 919 | #define A6XX_GMU_DCVS_BW_SETTING 0x1CBFE |
| 920 | #define A6XX_GMU_DCVS_RETURN 0x1CBFF |
George Shen | 1f312ab | 2017-08-01 10:53:50 -0700 | [diff] [blame] | 921 | #define A6XX_GMU_SYS_BUS_CONFIG 0x1F40F |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 922 | #define A6XX_GMU_CM3_SYSRESET 0x1F800 |
| 923 | #define A6XX_GMU_CM3_BOOT_CONFIG 0x1F801 |
Kyle Piefer | 5c9478c | 2017-04-20 15:12:05 -0700 | [diff] [blame] | 924 | #define A6XX_GMU_CM3_FW_BUSY 0x1F81A |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 925 | #define A6XX_GMU_CM3_FW_INIT_RESULT 0x1F81C |
Shrenuj Bansal | d0fe746 | 2017-05-08 16:11:19 -0700 | [diff] [blame] | 926 | #define A6XX_GMU_CM3_CFG 0x1F82D |
Lynus Vaz | 856ca60 | 2017-05-24 16:56:36 +0530 | [diff] [blame] | 927 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_ENABLE 0x1F840 |
| 928 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_SELECT_0 0x1F841 |
Lynus Vaz | 4fc97e2 | 2017-06-01 20:03:35 +0530 | [diff] [blame] | 929 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_SELECT_1 0x1F842 |
Lynus Vaz | 856ca60 | 2017-05-24 16:56:36 +0530 | [diff] [blame] | 930 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_0_L 0x1F844 |
| 931 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_0_H 0x1F845 |
Lynus Vaz | 4fc97e2 | 2017-06-01 20:03:35 +0530 | [diff] [blame] | 932 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_1_L 0x1F846 |
| 933 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_1_H 0x1F847 |
| 934 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_2_L 0x1F848 |
| 935 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_2_H 0x1F849 |
| 936 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_3_L 0x1F84A |
| 937 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_3_H 0x1F84B |
| 938 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_4_L 0x1F84C |
| 939 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_4_H 0x1F84D |
| 940 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_5_L 0x1F84E |
| 941 | #define A6XX_GMU_CX_GMU_POWER_COUNTER_XOCLK_5_H 0x1F84F |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 942 | #define A6XX_GMU_PWR_COL_INTER_FRAME_CTRL 0x1F8C0 |
| 943 | #define A6XX_GMU_PWR_COL_INTER_FRAME_HYST 0x1F8C1 |
| 944 | #define A6XX_GMU_PWR_COL_SPTPRAC_HYST 0x1F8C2 |
| 945 | #define A6XX_GMU_SPTPRAC_PWR_CLK_STATUS 0x1F8D0 |
| 946 | #define A6XX_GMU_GPU_NAP_CTRL 0x1F8E4 |
| 947 | #define A6XX_GMU_RPMH_CTRL 0x1F8E8 |
| 948 | #define A6XX_GMU_RPMH_HYST_CTRL 0x1F8E9 |
George Shen | f2d4e05 | 2017-05-11 16:28:23 -0700 | [diff] [blame] | 949 | #define A6XX_GPU_GMU_CX_GMU_RPMH_POWER_STATE 0x1F8EC |
Kyle Piefer | 3a5ac09 | 2017-04-06 16:05:30 -0700 | [diff] [blame] | 950 | #define A6XX_GMU_BOOT_KMD_LM_HANDSHAKE 0x1F9F0 |
Kyle Piefer | e923b7a | 2017-03-28 17:31:48 -0700 | [diff] [blame] | 951 | #define A6XX_GMU_LLM_GLM_SLEEP_CTRL 0x1F957 |
| 952 | #define A6XX_GMU_LLM_GLM_SLEEP_STATUS 0x1F958 |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 953 | |
| 954 | /* HFI registers*/ |
| 955 | #define A6XX_GMU_ALWAYS_ON_COUNTER_L 0x1F888 |
| 956 | #define A6XX_GMU_ALWAYS_ON_COUNTER_H 0x1F889 |
| 957 | #define A6XX_GMU_GMU_PWR_COL_KEEPALIVE 0x1F8C3 |
| 958 | #define A6XX_GMU_HFI_CTRL_STATUS 0x1F980 |
| 959 | #define A6XX_GMU_HFI_VERSION_INFO 0x1F981 |
| 960 | #define A6XX_GMU_HFI_SFR_ADDR 0x1F982 |
| 961 | #define A6XX_GMU_HFI_MMAP_ADDR 0x1F983 |
| 962 | #define A6XX_GMU_HFI_QTBL_INFO 0x1F984 |
| 963 | #define A6XX_GMU_HFI_QTBL_ADDR 0x1F985 |
| 964 | #define A6XX_GMU_HFI_CTRL_INIT 0x1F986 |
| 965 | #define A6XX_GMU_GMU2HOST_INTR_SET 0x1F990 |
| 966 | #define A6XX_GMU_GMU2HOST_INTR_CLR 0x1F991 |
| 967 | #define A6XX_GMU_GMU2HOST_INTR_INFO 0x1F992 |
| 968 | #define A6XX_GMU_GMU2HOST_INTR_MASK 0x1F993 |
| 969 | #define A6XX_GMU_HOST2GMU_INTR_SET 0x1F994 |
| 970 | #define A6XX_GMU_HOST2GMU_INTR_CLR 0x1F995 |
| 971 | #define A6XX_GMU_HOST2GMU_INTR_RAW_INFO 0x1F996 |
| 972 | #define A6XX_GMU_HOST2GMU_INTR_EN_0 0x1F997 |
| 973 | #define A6XX_GMU_HOST2GMU_INTR_EN_1 0x1F998 |
| 974 | #define A6XX_GMU_HOST2GMU_INTR_EN_2 0x1F999 |
| 975 | #define A6XX_GMU_HOST2GMU_INTR_EN_3 0x1F99A |
| 976 | #define A6XX_GMU_HOST2GMU_INTR_INFO_0 0x1F99B |
| 977 | #define A6XX_GMU_HOST2GMU_INTR_INFO_1 0x1F99C |
| 978 | #define A6XX_GMU_HOST2GMU_INTR_INFO_2 0x1F99D |
| 979 | #define A6XX_GMU_HOST2GMU_INTR_INFO_3 0x1F99E |
Oleg Perelet | c2ab7f7 | 2017-06-22 16:45:57 -0700 | [diff] [blame] | 980 | #define A6XX_GMU_GENERAL_1 0x1F9C6 |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 981 | #define A6XX_GMU_GENERAL_7 0x1F9CC |
| 982 | |
Kyle Piefer | e923b7a | 2017-03-28 17:31:48 -0700 | [diff] [blame] | 983 | /* ISENSE registers */ |
| 984 | #define A6XX_GMU_ISENSE_CTRL 0x1F95D |
| 985 | #define A6XX_GPU_CS_ENABLE_REG 0x23120 |
Oleg Perelet | c2ab7f7 | 2017-06-22 16:45:57 -0700 | [diff] [blame] | 986 | #define A6XX_GPU_GMU_CX_GMU_ISENSE_CTRL 0x1f95d |
| 987 | #define A6XX_GPU_CS_AMP_CALIBRATION_CONTROL3 0x22d78 |
| 988 | #define A6XX_GPU_CS_AMP_CALIBRATION_CONTROL2 0x22d58 |
| 989 | #define A6XX_GPU_CS_A_SENSOR_CTRL_0 0x22d80 |
| 990 | #define A6XX_GPU_CS_A_SENSOR_CTRL_2 0x422da |
| 991 | #define A6XX_GPU_CS_SENSOR_GENERAL_STATUS 0x2301a |
| 992 | #define A6XX_GPU_CS_AMP_CALIBRATION_CONTROL1 0x23157 |
| 993 | #define A6XX_GPU_CS_SENSOR_GENERAL_STATUS 0x2301a |
| 994 | #define A6XX_GPU_CS_AMP_CALIBRATION_STATUS1_0 0x2301d |
| 995 | #define A6XX_GPU_CS_AMP_CALIBRATION_STATUS1_2 0x2301f |
| 996 | #define A6XX_GPU_CS_AMP_CALIBRATION_STATUS1_4 0x23021 |
| 997 | #define A6XX_GPU_CS_AMP_CALIBRATION_DONE 0x23165 |
| 998 | #define A6XX_GPU_CS_AMP_PERIOD_CTRL 0x2316d |
| 999 | #define A6XX_GPU_CS_AMP_CALIBRATION_DONE 0x23165 |
| 1000 | |
| 1001 | #define CS_PWR_ON_STATUS (10) |
| 1002 | #define AMP_SW_WRM_TRIM_START (24) |
| 1003 | #define AMP_TRIM_TIMER (6) |
| 1004 | #define AMP_SW_TRIM_START (0) |
| 1005 | #define SS_AMPTRIM_DONE (11) |
| 1006 | #define AMP_OFFSET_CHECK_MIN_ERR (1) |
| 1007 | #define AMP_OFFSET_CHECK_MAX_ERR (2) |
| 1008 | #define AMP_OUT_OF_RANGE_ERR (4) |
| 1009 | #define TRIM_CNT_VALUE (1) |
| 1010 | #define RUNTIME_CNT_VALUE (16) |
| 1011 | #define TRIM_ENABLE (0) |
| 1012 | |
| 1013 | #define AMP_ERR (BIT(AMP_OFFSET_CHECK_MIN_ERR) || \ |
| 1014 | BIT(AMP_OFFSET_CHECK_MAX_ERR) || \ |
| 1015 | BIT(AMP_OUT_OF_RANGE_ERR)) |
| 1016 | |
| 1017 | /* LM registers */ |
| 1018 | #define A6XX_GPU_GMU_CX_GMU_PWR_THRESHOLD 0x1F94D |
| 1019 | |
Kyle Piefer | e923b7a | 2017-03-28 17:31:48 -0700 | [diff] [blame] | 1020 | |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 1021 | #define A6XX_GMU_AO_INTERRUPT_EN 0x23B03 |
Kyle Piefer | e7b06b4 | 2017-04-06 13:53:01 -0700 | [diff] [blame] | 1022 | #define A6XX_GMU_AO_HOST_INTERRUPT_CLR 0x23B04 |
| 1023 | #define A6XX_GMU_AO_HOST_INTERRUPT_STATUS 0x23B05 |
| 1024 | #define A6XX_GMU_AO_HOST_INTERRUPT_MASK 0x23B06 |
Oleg Perelet | cb9b621 | 2017-03-16 15:38:43 -0700 | [diff] [blame] | 1025 | #define A6XX_GPU_GMU_AO_GMU_CGC_MODE_CNTL 0x23B09 |
| 1026 | #define A6XX_GPU_GMU_AO_GMU_CGC_DELAY_CNTL 0x23B0A |
| 1027 | #define A6XX_GPU_GMU_AO_GMU_CGC_HYST_CNTL 0x23B0B |
Oleg Perelet | 62d5cec | 2017-03-27 16:14:52 -0700 | [diff] [blame] | 1028 | #define A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS 0x23B0C |
Kyle Piefer | 247e35c | 2017-06-08 11:13:11 -0700 | [diff] [blame] | 1029 | #define A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS2 0x23B0D |
Lynus Vaz | 856ca60 | 2017-05-24 16:56:36 +0530 | [diff] [blame] | 1030 | #define A6XX_GPU_GMU_AO_GPU_CX_BUSY_MASK 0x23B0E |
Shrenuj Bansal | d197bf6 | 2017-04-07 11:00:09 -0700 | [diff] [blame] | 1031 | #define A6XX_GMU_AO_AHB_FENCE_CTRL 0x23B10 |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 1032 | #define A6XX_GMU_AHB_FENCE_STATUS 0x23B13 |
| 1033 | #define A6XX_GMU_RBBM_INT_UNMASKED_STATUS 0x23B15 |
| 1034 | #define A6XX_GMU_AO_SPARE_CNTL 0x23B16 |
| 1035 | |
| 1036 | /* GMU RSC control registers */ |
Kyle Piefer | 3e1f6bc | 2017-08-10 11:16:19 -0700 | [diff] [blame] | 1037 | #define A6XX_GPU_RSCC_RSC_STATUS0_DRV0 0x23404 |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 1038 | #define A6XX_GMU_RSCC_CONTROL_REQ 0x23B07 |
| 1039 | #define A6XX_GMU_RSCC_CONTROL_ACK 0x23B08 |
| 1040 | |
| 1041 | /* FENCE control registers */ |
| 1042 | #define A6XX_GMU_AHB_FENCE_RANGE_0 0x23B11 |
| 1043 | #define A6XX_GMU_AHB_FENCE_RANGE_1 0x23B12 |
| 1044 | |
Kyle Piefer | fa50d3e | 2017-05-24 12:35:24 -0700 | [diff] [blame] | 1045 | /* GPUCC registers */ |
| 1046 | #define A6XX_GPU_CC_GX_GDSCR 0x24403 |
George Shen | 6927d8f | 2017-07-19 11:38:10 -0700 | [diff] [blame] | 1047 | #define A6XX_GPU_CC_GX_DOMAIN_MISC 0x24542 |
Kyle Piefer | fa50d3e | 2017-05-24 12:35:24 -0700 | [diff] [blame] | 1048 | |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 1049 | /* GPU RSC sequencer registers */ |
| 1050 | #define A6XX_RSCC_PDC_SEQ_START_ADDR 0x23408 |
| 1051 | #define A6XX_RSCC_PDC_MATCH_VALUE_LO 0x23409 |
| 1052 | #define A6XX_RSCC_PDC_MATCH_VALUE_HI 0x2340A |
| 1053 | #define A6XX_RSCC_PDC_SLAVE_ID_DRV0 0x2340B |
| 1054 | #define A6XX_RSCC_HIDDEN_TCS_CMD0_ADDR 0x2340D |
| 1055 | #define A6XX_RSCC_HIDDEN_TCS_CMD0_DATA 0x2340E |
| 1056 | #define A6XX_RSCC_TIMESTAMP_UNIT0_TIMESTAMP_L_DRV0 0x23482 |
| 1057 | #define A6XX_RSCC_TIMESTAMP_UNIT0_TIMESTAMP_H_DRV0 0x23483 |
| 1058 | #define A6XX_RSCC_TIMESTAMP_UNIT1_EN_DRV0 0x23489 |
| 1059 | #define A6XX_RSCC_TIMESTAMP_UNIT1_OUTPUT_DRV0 0x2348C |
| 1060 | #define A6XX_RSCC_OVERRIDE_START_ADDR 0x23500 |
| 1061 | #define A6XX_RSCC_SEQ_BUSY_DRV0 0x23501 |
| 1062 | #define A6XX_RSCC_SEQ_MEM_0_DRV0 0x23580 |
Kyle Piefer | e923b7a | 2017-03-28 17:31:48 -0700 | [diff] [blame] | 1063 | #define A6XX_RSCC_TCS0_DRV0_STATUS 0x23746 |
| 1064 | #define A6XX_RSCC_TCS1_DRV0_STATUS 0x238AE |
| 1065 | #define A6XX_RSCC_TCS2_DRV0_STATUS 0x23A16 |
| 1066 | #define A6XX_RSCC_TCS3_DRV0_STATUS 0x23B7E |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 1067 | |
| 1068 | /* GPU PDC sequencer registers in AOSS.RPMh domain */ |
| 1069 | #define PDC_GPU_ENABLE_PDC 0x21140 |
| 1070 | #define PDC_GPU_SEQ_START_ADDR 0x21148 |
| 1071 | #define PDC_GPU_TCS0_CONTROL 0x21540 |
| 1072 | #define PDC_GPU_TCS0_CMD_ENABLE_BANK 0x21541 |
| 1073 | #define PDC_GPU_TCS0_CMD_WAIT_FOR_CMPL_BANK 0x21542 |
| 1074 | #define PDC_GPU_TCS0_CMD0_MSGID 0x21543 |
| 1075 | #define PDC_GPU_TCS0_CMD0_ADDR 0x21544 |
| 1076 | #define PDC_GPU_TCS0_CMD0_DATA 0x21545 |
| 1077 | #define PDC_GPU_TCS1_CONTROL 0x21572 |
| 1078 | #define PDC_GPU_TCS1_CMD_ENABLE_BANK 0x21573 |
| 1079 | #define PDC_GPU_TCS1_CMD_WAIT_FOR_CMPL_BANK 0x21574 |
| 1080 | #define PDC_GPU_TCS1_CMD0_MSGID 0x21575 |
| 1081 | #define PDC_GPU_TCS1_CMD0_ADDR 0x21576 |
| 1082 | #define PDC_GPU_TCS1_CMD0_DATA 0x21577 |
Kyle Piefer | 8714918 | 2017-10-05 15:01:33 -0700 | [diff] [blame] | 1083 | #define PDC_GPU_TCS2_CONTROL 0x215A4 |
| 1084 | #define PDC_GPU_TCS2_CMD_ENABLE_BANK 0x215A5 |
| 1085 | #define PDC_GPU_TCS2_CMD_WAIT_FOR_CMPL_BANK 0x215A6 |
| 1086 | #define PDC_GPU_TCS2_CMD0_MSGID 0x215A7 |
| 1087 | #define PDC_GPU_TCS2_CMD0_ADDR 0x215A8 |
| 1088 | #define PDC_GPU_TCS2_CMD0_DATA 0x215A9 |
| 1089 | #define PDC_GPU_TCS3_CONTROL 0x215D6 |
| 1090 | #define PDC_GPU_TCS3_CMD_ENABLE_BANK 0x215D7 |
| 1091 | #define PDC_GPU_TCS3_CMD_WAIT_FOR_CMPL_BANK 0x215D8 |
| 1092 | #define PDC_GPU_TCS3_CMD0_MSGID 0x215D9 |
| 1093 | #define PDC_GPU_TCS3_CMD0_ADDR 0x215DA |
| 1094 | #define PDC_GPU_TCS3_CMD0_DATA 0x215DB |
Kyle Piefer | b1027b0 | 2017-02-10 13:58:58 -0800 | [diff] [blame] | 1095 | #define PDC_GPU_SEQ_MEM_0 0xA0000 |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 1096 | |
Shrenuj Bansal | acf1ef4 | 2016-06-01 11:11:27 -0700 | [diff] [blame] | 1097 | #endif /* _A6XX_REG_H */ |
| 1098 | |