Debian Codegraph @

src/freedreno/registers/adreno/adreno_control_regs.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <database xmlns="http://nouveau.freedesktop.org/"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="https://gitlab.freedesktop.org/freedreno/ rules-fd.xsd">
5 <import file="freedreno_copyright.xml"/>
6
7 <!--
8 This documents the internal register spaces used by the CP firmware since
9 the afuc instruction set was introduced.
10 -->
11
12 <domain name="A6XX_SQE_REG" width="32">
13 <!-- TODO: the carry flag is probably here somewhere -->
14
15 <doc>
16 Instruction to jump to when the CP is preempted to perform a
17 context switch, initialized to entry 15 of the jump table at
18 bootup.
19 </doc>
20 <reg32 name="PREEMPT_INSTR" offset="0x04"/>
21
22 <doc> Stack Pointer for call/ret return address stack </doc>
23 <reg32 name="SP" offset="0x05"/>
24
25 <!-- TODO: make asm can handle arrays so we can use an array here -->
26 <reg32 name="STACK0" offset="0x08" type="hex"/>
27 <reg32 name="STACK1" offset="0x09" type="hex"/>
28 <reg32 name="STACK2" offset="0x0a" type="hex"/>
29 <reg32 name="STACK3" offset="0x0b" type="hex"/>
30 <reg32 name="STACK4" offset="0x0c" type="hex"/>
31 <reg32 name="STACK5" offset="0x0d" type="hex"/>
32 <reg32 name="STACK6" offset="0x0e" type="hex"/>
33 <reg32 name="STACK7" offset="0x0f" type="hex"/>
34 </domain>
35
36 <domain name="A5XX_CONTROL_REG" width="32">
37 <reg32 name="REG_WRITE_ADDR" offset="0x010"/>
38 <reg32 name="REG_WRITE" offset="0x011"/>
39
40 <doc> Controls high 32 bits used by store afuc instruction </doc>
41 <reg32 name="STORE_HI" offset="0x038"/>
42
43 <reg64 name="IB1_BASE" offset="0x0b0"/>
44 <reg32 name="IB1_DWORDS" offset="0x0b2"/>
45 <reg64 name="IB2_BASE" offset="0x0b4"/>
46 <reg32 name="IB2_DWORDS" offset="0x0b6"/>
47
48 <doc>
49 To use these, write the address and number of dwords, then read
50 the result from $addr.
51 </doc>
52 <reg64 name="MEM_READ_ADDR" offset="0x0b8"/>
53 <reg32 name="MEM_READ_DWORDS" offset="0x0ba"/>
54 </domain>
55
56 <domain name="A6XX_CONTROL_REG" width="32">
57 <reg32 name="RB_RPTR" offset="0x001"/>
58
59 <reg64 name="IB1_BASE" offset="0x010"/>
60 <reg32 name="IB1_DWORDS" offset="0x012"/>
61 <reg64 name="IB2_BASE" offset="0x014"/>
62 <reg32 name="IB2_DWORDS" offset="0x016"/>
63
64 <reg64 name="MEM_READ_ADDR" offset="0x018"/>
65 <reg32 name="MEM_READ_DWORDS" offset="0x01a"/>
66
67 <reg32 name="REG_WRITE_ADDR" offset="0x024"/>
68 <doc>
69 Writing to this triggers a register write and auto-increments
70 REG_WRITE_ADDR.
71
72 Note that there seems to be some upper bits that are possilby
73 flags, ie:
74
75 l284: 0d12: 8a8c0003 mov $0c, 0x0003 &lt;&lt; 20
76 GPR: $0c: 00300000
77 0d13: 318c9e0b or $0c, $0c, 0x9e0b
78 GPR: $0c: 00309e0b
79 0d14: a80c0024 cwrite $0c, [$00 + @REG_WRITE_ADDR], 0x0
80 CTRL: @REG_WRITE_ADDR: 00309e0b
81
82 </doc>
83 <reg32 name="REG_WRITE" offset="0x025"/>
84
85 <doc> After setting these, read result from $regdata </doc>
86 <reg32 name="REG_READ_DWORDS" offset="0x026"/>
87 <reg32 name="REG_READ_ADDR" offset="0x027"/>
88
89 <doc>
90 Write to increase WFI_PEND_CTR, decremented by WFI_PEND_DECR
91 pipe register.
92 </doc>
93 <reg32 name="WFI_PEND_INCR" offset="0x030"/>
94 <reg32 name="QUERY_PEND_INCR" offset="0x031"/>
95 <reg32 name="CACHE_FLUSH_PEND_INCR" offset="0x032"/>
96
97 <reg32 name="WFI_PEND_CTR" offset="0x038"/>
98 <reg32 name="QUERY_PEND_CTR" offset="0x039"/>
99 <reg32 name="CACHE_FLUSH_PEND_CTR" offset="0x03a"/>
100
101 <reg32 name="DRAW_STATE_SEL" offset="0x041">
102 <doc>
103 SQE writes DRAW_STATE_SEL to select the SDS state group, and
104 then reads out the SDS header (DRAW_STATE_HDR), ie. the first
105 dword in the state group entry (see CP_SET_DRAW_STATE), and
106 base address of the state group cmdstream (DRAW_STATE_BASE)
107 </doc>
108 </reg32>
109 <reg64 name="SDS_BASE" offset="0x042">
110 <doc>
111 base address for executing draw state group when IB_LEVEL
112 is set to 3 (ie. it's a bit like IB3 equiv of IBn_BASE)
113
114 Note that SDS_BASE/SDS_DWORDS seem to be per-state-group,
115 the values reflected switch when DRAW_STATE_SEL is written.
116 </doc>
117 </reg64>
118 <reg32 name="SDS_DWORDS" offset="0x044">
119 <doc>
120 state group equiv of IBn_DWORDS
121 </doc>
122 </reg32>
123
124 <reg64 name="DRAW_STATE_BASE" offset="0x045"/>
125 <reg32 name="DRAW_STATE_HDR" offset="0x047">
126 <doc>
127 Contains information from the first dword of the state group
128 entry in CP_SET_DRAW_STATE, but format isn't exactly the
129 same. The # of dwords is in low 16b, and mode mask is in
130 high 16 bits
131 </doc>
132 </reg32>
133 <reg32 name="DRAW_STATE_ACTIVE_BITMASK" offset="0x049"/>
134
135 <doc>
136 This register is written for each state group entry in
137 CP_SET_DRAW_STATE. The value is copied directly from the packet
138 to these registers so the format is identical to the first word.
139 The draw state base is set via the (sds2) modifier.
140 </doc>
141 <reg32 name="DRAW_STATE_SET_HDR" offset="0x04a"/>
142
143 <reg32 name="DRAW_STATE_SET_HDR_LPAC" offset="0x04c"/>
144
145 <doc>Set to 1 before setting draw states, introduced in a660_sqe.fw</doc>
146 <reg32 name="DRAW_STATE_SET_PENDING" offset="0x04d"/>
147
148 <reg64 name="DRAW_STATE_SET_BASE_LPAC" offset="0x04f"/>
149
150 <doc> Controls whether RB, IB1, or IB2 is executed </doc>
151 <reg32 name="IB_LEVEL" offset="0x054"/>
152
153 <doc> Controls high 32 bits used by load and store afuc instructions </doc>
154 <reg32 name="LOAD_STORE_HI" offset="0x058"/>
155
156 <doc>
157 Used for testing whether register protection does not allow a
158 read. To use this register, write the register address to $usraddr
159 with bit 20 or'd in and then write the register count to $data. Then
160 the results of the test will be available in this register when
161 bit 0 is set.
162 </doc>
163 <reg32 name="REG_READ_TEST_RESULT" offset="0x05b">
164 <bitfield name="READY" pos="0" type="boolean"/>
165 <doc> Whether there was a register protection violation. </doc>
166 <bitfield name="VIOLATION" pos="2" type="boolean"/>
167 </reg32>
168
169 <enum name="sqe_perfcntr_cntl">
170 <!-- 0 doesn't do anything -->
171 <value value="1" name="INCR"/>
172 <value value="2" name="START"/>
173 <value value="3" name="STOP"/>
174 </enum>
175
176 <doc>
177 An array of 2-bit fields each controlling a single countable.
178 TODO: Test with modified firmware to confirm which countables each field controls
179 </doc>
180 <reg32 name="PERFCNTR_CNTL" offset="0x05d">
181 <bitfield name="NUM_PREEMPTIONS" low="0" high="1" type="sqe_perfcntr_cntl"/>
182 <bitfield name="PREEMPTION_REACTION_DELAY" low="2" high="3" type="sqe_perfcntr_cntl"/>
183 <bitfield name="PREEMPTION_SWITCH_OUT_TIME" low="4" high="5" type="sqe_perfcntr_cntl"/>
184 <bitfield name="PREEMPTION_SWITCH_IN_TIME" low="6" high="7" type="sqe_perfcntr_cntl"/>
185 <bitfield name="DEAD_DRAWS_IN_BIN_RENDER" low="8" high="9" type="sqe_perfcntr_cntl"/>
186 <bitfield name="PREDICATED_DRAWS_KILLED" low="10" high="11" type="sqe_perfcntr_cntl"/>
187 <!-- MODE_SWITCH? -->
188 <bitfield name="ZPASS_DONE" low="14" high="15" type="sqe_perfcntr_cntl"/>
189 <bitfield name="CONTEXT_DONE" low="16" high="17" type="sqe_perfcntr_cntl"/>
190 <bitfield name="CACHE_FLUSH" low="18" high="19" type="sqe_perfcntr_cntl"/>
191 <bitfield name="LONG_PREEMPTIONS" low="20" high="21" type="sqe_perfcntr_cntl"/>
192 <bitfield name="VSD_DECODE_STARVE" low="22" high="23" type="sqe_perfcntr_cntl"/>
193 <bitfield name="SYNC_STALL" low="24" high="25" type="sqe_perfcntr_cntl"/>
194 <bitfield name="PM4_WFI_STALL" low="26" high="27" type="sqe_perfcntr_cntl"/>
195 <bitfield name="SYS_WFI_STALL" low="28" high="29" type="sqe_perfcntr_cntl"/>
196 </reg32>
197
198 <doc> Used to initialize the jump table for handling packets at bootup </doc>
199 <reg32 name="PACKET_TABLE_WRITE_ADDR" offset="0x060"/>
200 <reg32 name="PACKET_TABLE_WRITE" offset="0x061"/>
201
202 <doc>
203 The zap shader uses the base address of itself, adding the offset of the embedded
204 shader instructions, to program SP_CS_OBJ_START with the address of the shader
205 part of the zap "shader"
206 </doc>
207 <reg64 name="ZAP_SHADER_ADDR" offset="0x062"/>
208
209 <doc> Resettable counter used to implement PERF_CP_LONG_PREEMPTIONS </doc>
210 <reg32 name="PREEMPTION_TIMER" offset="0x06e"/>
211 <doc> Seemingly used to start/stop PREEMPTION_TIMER </doc>
212 <reg32 name="PREEMPTION_TIMER_CNTL" offset="0x06f">
213 <bitfield name="RUNNING" pos="0"/>
214 </reg32>
215
216 <doc> Private mirror of CP_CONTEXT_SWITCH_CNTL </doc>
217 <reg32 name="CONTEXT_SWITCH_CNTL" offset="0x70"/>
218
219 <reg32 name="PREEMPT_ENABLE" offset="0x071"/>
220 <reg32 name="SECURE_MODE" offset="0x075"/>
221
222 <doc> Write 1 to trigger a preemption from SQE. Reads return 1 if SQE triggered preemption. </doc>
223 <reg32 name="PREEMPT_TRIGGER" offset="0x072"/>
224
225 <doc>
226 Written by SQE throughout the preemption routine, with mostly
227 monotonically increasing values, presumably used to determine where
228 it is when it crashes.
229 TODO: How do we read this?
230 </doc>
231 <reg32 name="PREEMPT_COOKIE" offset="0x078"/>
232
233 <doc>
234 This is a mirror of PC_MARKER. At preemption time, it's used to
235 read the data written by CP_SET_MARKER to see what state the GPU
236 is in. Because PC_MARKER is "just" a normal GPU register, writes
237 to it are pipelined, so reading this gives the firmware the
238 state the GPU is in when preempted, rather than the SQE which
239 may be well ahead of the GPU. This is used e.g. to determine
240 whether to save/restore GMEM.
241 </doc>
242 <reg32 name="MARKER" offset="0x098"/>
243
244 <!--
245 Note: I think that registers above 0x100 are actually just a
246 scratch space which can be used by firmware however it wants,
247 so these might change if the the firmware is updated.
248 -->
249
250 <doc>
251 These are addresses of various preemption records for the
252 current context. When context switching, the CP will save the
253 current state into these buffers, restore the state of the
254 next context from the buffers in the corresponding
255 CP_CONTEXT_SWITCH_PRIV_* registers written by the kernel,
256 then set these internal registers to the contents of
257 those registers. The kernel sets the initial values via
258 CP_SET_PSEUDO_REG on startup, and from then on the firmware
259 keeps track of them.
260 </doc>
261 <reg64 name="SAVE_REGISTER_SMMU_INFO" offset="0x110"/>
262 <reg64 name="SAVE_REGISTER_PRIV_NON_SECURE" offset="0x112"/>
263 <reg64 name="SAVE_REGISTER_PRIV_SECURE" offset="0x114"/>
264 <reg64 name="SAVE_REGISTER_NON_PRIV" offset="0x116"/>
265 <reg64 name="SAVE_REGISTER_COUNTER" offset="0x118"/>
266
267 <doc>
268 Used only during preemption, saved and restored from the "info"
269 field of a6xx_preemption_record. From the downstream kernel:
270
271 "Type of record. Written non-zero (usually) by CP.
272 we must set to zero for all ringbuffers."
273 </doc>
274
275 <reg32 name="PREEMPTION_INFO" offset="0x126"/>
276
277 <doc>
278 Used to keep track of last value PC_MARKER was written to. Not
279 necessarily equal to @MARKER due to pending writes.
280 </doc>
281 <reg32 name="MARKER_TEMP" offset="0x12a"/>
282
283 <doc>
284 Set by SET_MARKER, used to conditionally execute
285 CP_COND_REG_EXEC and draw states.
286 </doc>
287 <reg32 name="MODE_BITMASK" offset="0x12b"/>
288
289 <reg32 name="SCRATCH_REG0" offset="0x170"/>
290 <reg32 name="SCRATCH_REG1" offset="0x171"/>
291 <reg32 name="SCRATCH_REG2" offset="0x172"/>
292 <reg32 name="SCRATCH_REG3" offset="0x173"/>
293 <reg32 name="SCRATCH_REG4" offset="0x174"/>
294 <reg32 name="SCRATCH_REG5" offset="0x175"/>
295 <reg32 name="SCRATCH_REG6" offset="0x176"/>
296 <reg32 name="SCRATCH_REG7" offset="0x177"/>
297
298 <!-- new in gen3+ -->
299 <reg32 name="PRED_REG" offset="0x17f"/>
300
301 <reg32 name="THREAD_SYNC" offset="0x200"/>
302 </domain>
303
304 <domain name="A7XX_CONTROL_REG" width="32">
305 <reg32 name="RB_RPTR" offset="0x001"/>
306 <reg32 name="PREEMPT_INSTR" offset="0x004"/>
307
308 <reg64 name="IB1_BASE" offset="0x010"/>
309 <reg32 name="IB1_DWORDS" offset="0x012"/>
310 <reg64 name="IB2_BASE" offset="0x014"/>
311 <reg32 name="IB2_DWORDS" offset="0x016"/>
312 <reg64 name="IB3_BASE" offset="0x018"/>
313 <reg32 name="IB3_DWORDS" offset="0x01a"/>
314
315 <reg64 name="MEM_READ_ADDR" offset="0x01c"/>
316 <reg32 name="MEM_READ_DWORDS" offset="0x01e"/>
317
318 <reg32 name="WFI_PEND_INCR" offset="0x030"/>
319 <reg32 name="QUERY_PEND_INCR" offset="0x031"/>
320 <reg32 name="CACHE_CLEAN_PEND_INCR" offset="0x032"/>
321
322 <reg32 name="REG_WRITE_ADDR" offset="0x036"/>
323 <reg32 name="REG_WRITE" offset="0x037"/>
324
325 <doc> After setting these, read result from $regdata </doc>
326 <reg32 name="REG_READ_DWORDS" offset="0x038"/>
327 <reg32 name="REG_READ_ADDR" offset="0x039"/>
328
329 <reg32 name="CACHE_CLEAN_PEND_CTR" offset="0x03a"/>
330 <reg32 name="WFI_PEND_CTR" offset="0x03e"/>
331 <reg32 name="QUERY_PEND_CTR" offset="0x03f"/>
332
333 <!--
334 These seem to be the same as a6xx, however they are only used
335 for clearing draw state and preemption save/restore.
336 -->
337 <reg32 name="DRAW_STATE_SEL" offset="0x041"/>
338 <reg64 name="SDS_BASE" offset="0x042"/>
339 <reg32 name="SDS_DWORDS" offset="0x044"/>
340 <reg64 name="DRAW_STATE_BASE" offset="0x045"/>
341 <reg32 name="DRAW_STATE_HDR" offset="0x047"/>
342 <reg32 name="DRAW_STATE_ACTIVE_BITMASK" offset="0x049"/>
343 <doc>
344 This is now a register on a7xx and not a scratch temporary
345 because draw states are fetched automatically. However it has
346 the same meaning and is written the same as before by
347 CP_SET_MARKER.
348 </doc>
349 <reg32 name="MODE_BITMASK" offset="0x4b"/>
350
351 <reg32 name="DRAW_STATE_SET_HDR" offset="0x04c"/>
352
353 <doc>Set to 1 before setting draw states</doc>
354 <reg32 name="DRAW_STATE_SET_PENDING" offset="0x04d"/>
355
356 <doc>This is used by LPAC instead of (sds2) to write the base</doc>
357 <reg64 name="DRAW_STATE_SET_BASE" offset="0x04f"/>
358
359 <doc> Controls whether RB, IB1, IB2, IB3, or SDS is executed </doc>
360 <reg32 name="IB_LEVEL" offset="0x054"/>
361
362 <doc> Controls high 32 bits used by load and store afuc instructions </doc>
363 <reg32 name="LOAD_STORE_HI" offset="0x058"/>
364
365 <reg32 name="REG_READ_TEST_RESULT" offset="0x05b">
366 <bitfield name="READY" pos="0" type="boolean"/>
367 <doc> Whether there was a register protection violation. </doc>
368 <bitfield name="VIOLATION" pos="2" type="boolean"/>
369 <bitfield name="CLUSTER" low="4" high="6"/>
370 </reg32>
371
372 <!-- This seems to be the same as a6xx because the CP perfcntrs are the same -->
373 <reg32 name="PERFCNTR_CNTL" offset="0x05d">
374 <bitfield name="NUM_PREEMPTIONS" low="0" high="1" type="sqe_perfcntr_cntl"/>
375 <bitfield name="PREEMPTION_REACTION_DELAY" low="2" high="3" type="sqe_perfcntr_cntl"/>
376 <bitfield name="PREEMPTION_SWITCH_OUT_TIME" low="4" high="5" type="sqe_perfcntr_cntl"/>
377 <bitfield name="PREEMPTION_SWITCH_IN_TIME" low="6" high="7" type="sqe_perfcntr_cntl"/>
378 <bitfield name="DEAD_DRAWS_IN_BIN_RENDER" low="8" high="9" type="sqe_perfcntr_cntl"/>
379 <bitfield name="PREDICATED_DRAWS_KILLED" low="10" high="11" type="sqe_perfcntr_cntl"/>
380 <!-- MODE_SWITCH? -->
381 <bitfield name="ZPASS_DONE" low="14" high="15" type="sqe_perfcntr_cntl"/>
382 <bitfield name="CONTEXT_DONE" low="16" high="17" type="sqe_perfcntr_cntl"/>
383 <bitfield name="CACHE_FLUSH" low="18" high="19" type="sqe_perfcntr_cntl"/>
384 <bitfield name="LONG_PREEMPTIONS" low="20" high="21" type="sqe_perfcntr_cntl"/>
385 <bitfield name="VSD_DECODE_STARVE" low="22" high="23" type="sqe_perfcntr_cntl"/>
386 <bitfield name="SYNC_STALL" low="24" high="25" type="sqe_perfcntr_cntl"/>
387 <bitfield name="PM4_WFI_STALL" low="26" high="27" type="sqe_perfcntr_cntl"/>
388 <bitfield name="SYS_WFI_STALL" low="28" high="29" type="sqe_perfcntr_cntl"/>
389 </reg32>
390
391 <doc> Used to initialize the jump table for handling packets at bootup </doc>
392 <reg32 name="PACKET_TABLE_WRITE_ADDR" offset="0x060"/>
393 <reg32 name="PACKET_TABLE_WRITE" offset="0x061"/>
394
395 <!-- see a6xx above for explanation, these registers are the same -->
396 <reg32 name="PREEMPTION_TIMER" offset="0x06e"/>
397 <reg32 name="PREEMPTION_TIMER_CNTL" offset="0x06f">
398 <bitfield name="RUNNING" pos="0"/>
399 </reg32>
400 <reg32 name="CONTEXT_SWITCH_CNTL" offset="0x70"/>
401 <reg32 name="PREEMPT_ENABLE" offset="0x071"/>
402 <reg32 name="PREEMPT_TRIGGER" offset="0x072"/>
403 <reg32 name="SECURE_MODE" offset="0x075"/>
404 <reg32 name="PREEMPT_COOKIE" offset="0x078"/>
405
406 <reg32 name="MARKER" offset="0x098"/>
407
408 <doc>These registers seem to define a range that load/store instructions can access</doc>
409 <reg32 name="LOAD_STORE_RANGE_MIN" offset="0x0a0"/>
410 <reg32 name="LOAD_STORE_RANGE_LEN" offset="0x0a1"/>
411
412 <doc>
413 Register used to create critical sections when reading/writing
414 shared memory (0x200-0x2ff). Each bit contains a lock. Writing 1
415 to the bit initiates a lock, reads return 1 once the lock is
416 taken. Writing 0 unlocks.
417 </doc>
418 <reg32 name="COPROCESSOR_LOCK" offset="0x0b1"/>
419
420 <doc> Replaces CP_APERTURE_CNTL_SQE on a7xx. Uses same format as CP_APERTURE_CNTL_HOST. </doc>
421 <reg32 name="APERTURE_CNTL" offset="0x0d4"/>
422 <doc>
423 Aperture control used specially for preemption save and restore.
424 Has extra fields compared to @APERTURE_CNTL.
425 </doc>
426 <reg32 name="APERTURE_CNTL_PREEMPT" offset="0x0d5">
427 <doc>
428 When this is set this seems to redirect register writes
429 to a special register space for triggering preemption
430 save/restore actions.
431 </doc>
432 <bitfield name="USEPREEMPTREG" pos="16" type="boolean"/>
433 <bitfield name="PIPE" low="12" high="13"/>
434 <bitfield name="CLUSTER" low="8" high="10"/>
435 <bitfield name="CONTEXT" low="4" high="5"/>
436 </reg32>
437
438 <reg64 name="BV_INSTR_BASE" offset="0x0d6"/>
439 <reg32 name="BV_CNTL" offset="0x0d8"/>
440
441 <reg64 name="LPAC_INSTR_BASE" offset="0x0d9"/>
442 <reg32 name="LPAC_CNTL" offset="0x0db"/>
443
444 <reg32 name="GLOBAL_TIMESTAMP" offset="0x0e2"/>
445 <reg32 name="LOCAL_TIMESTAMP" offset="0x0e3"/>
446
447 <!-- 0x100-0x1ff - thread-private scratch space as before -->
448 <!-- 0x200-0x2ff - global register space for cross-thread communication -->
449
450 <doc>
451 The low 3 bits are used as a semaphore to let SQE wait for other
452 coprocessors to start. SQE sets it to 0x7 before starting the
453 coprocessors, then each coprocessor atomically clears a bit.
454 Other bits are used for CP_THREAD_CONTROL::SYNC_THREADS and
455 other internal syncing.
456 </doc>
457 <reg32 name="THREAD_SYNC" offset="0x23f"/>
458 </domain>
459
460 <!-- Starting with a750, the control registers are shuffled around -->
461
462 <domain name="A7XX_GEN3_CONTROL_REG" width="32">
463 <reg32 name="COPROCESSOR_LOCK" offset="0x014"/>
464
465 <reg32 name="REG_WRITE_ADDR" offset="0x018"/>
466 <reg32 name="REG_WRITE" offset="0x019"/>
467
468 <doc> After setting these, read result from $regdata </doc>
469 <reg32 name="REG_READ_DWORDS" offset="0x01a"/>
470 <reg32 name="REG_READ_ADDR" offset="0x01b"/>
471
472 <reg32 name="APERTURE_CNTL" offset="0x01c"/>
473 <reg32 name="APERTURE_CNTL_PREEMPT" offset="0x01d"/>
474
475 <reg64 name="IB1_BASE" offset="0x020"/>
476 <reg32 name="IB1_DWORDS" offset="0x022"/>
477 <reg64 name="IB2_BASE" offset="0x024"/>
478 <reg32 name="IB2_DWORDS" offset="0x026"/>
479 <reg32 name="IB2_BASE_HI_PREEMPTION" offset="0x27"/>
480 <reg64 name="IB3_BASE" offset="0x028"/>
481 <reg32 name="IB3_DWORDS" offset="0x02a"/>
482
483 <reg64 name="MEM_READ_ADDR" offset="0x02c"/>
484 <reg32 name="MEM_READ_DWORDS" offset="0x02e"/>
485 <reg32 name="MEM_READ_ADDR_HI_PREEMPTION" offset="0x02f"/>
486
487 <reg32 name="IB_LEVEL" offset="0x03d"/>
488
489 <reg32 name="MODE_BITMASK" offset="0x5b"/>
490
491 <reg32 name="PACKET_TABLE_WRITE_ADDR" offset="0x070"/>
492 <reg32 name="PACKET_TABLE_WRITE" offset="0x071"/>
493
494 <reg32 name="LOAD_STORE_HI" offset="0x07a"/>
495
496 <reg64 name="BV_INSTR_BASE" offset="0x080"/>
497 <reg32 name="BV_CNTL" offset="0x082"/>
498
499 <reg64 name="LPAC_INSTR_BASE" offset="0x083"/>
500 <reg32 name="LPAC_CNTL" offset="0x085"/>
501
502 <reg32 name="LOAD_STORE_RANGE_MIN" offset="0x0a2"/>
503 <reg32 name="LOAD_STORE_RANGE_LEN" offset="0x0a3"/>
504
505 <reg32 name="REG_READ_TEST_RESULT" offset="0x0a8">
506 <bitfield name="READY" pos="0" type="boolean"/>
507 <doc> Whether there was a register protection violation. </doc>
508 <bitfield name="VIOLATION" pos="2" type="boolean"/>
509 <bitfield name="CLUSTER" low="4" high="6"/>
510 </reg32>
511
512 <reg32 name="WFI_PEND_INCR" offset="0x0b0"/>
513 <reg32 name="QUERY_PEND_INCR" offset="0x0b1"/>
514
515 <reg32 name="WFI_PEND_CTR" offset="0x0b2"/>
516 <reg32 name="QUERY_PEND_CTR" offset="0x0b3"/>
517
518 <reg32 name="CACHE_CLEAN_PEND_INCR" offset="0x0b4"/>
519 <reg32 name="CACHE_CLEAN_PEND_CTR" offset="0x0b8"/>
520
521 <reg32 name="PERFCNTR_CNTL" offset="0x0c9">
522 <bitfield name="NUM_PREEMPTIONS" low="0" high="1" type="sqe_perfcntr_cntl"/>
523 <bitfield name="PREEMPTION_REACTION_DELAY" low="2" high="3" type="sqe_perfcntr_cntl"/>
524 <bitfield name="PREEMPTION_SWITCH_OUT_TIME" low="4" high="5" type="sqe_perfcntr_cntl"/>
525 <bitfield name="PREEMPTION_SWITCH_IN_TIME" low="6" high="7" type="sqe_perfcntr_cntl"/>
526 <bitfield name="DEAD_DRAWS_IN_BIN_RENDER" low="8" high="9" type="sqe_perfcntr_cntl"/>
527 <bitfield name="PREDICATED_DRAWS_KILLED" low="10" high="11" type="sqe_perfcntr_cntl"/>
528 <!-- MODE_SWITCH? -->
529 <bitfield name="ZPASS_DONE" low="14" high="15" type="sqe_perfcntr_cntl"/>
530 <bitfield name="CONTEXT_DONE" low="16" high="17" type="sqe_perfcntr_cntl"/>
531 <bitfield name="CACHE_FLUSH" low="18" high="19" type="sqe_perfcntr_cntl"/>
532 <bitfield name="LONG_PREEMPTIONS" low="20" high="21" type="sqe_perfcntr_cntl"/>
533 <bitfield name="VSD_DECODE_STARVE" low="22" high="23" type="sqe_perfcntr_cntl"/>
534 <bitfield name="SYNC_STALL" low="24" high="25" type="sqe_perfcntr_cntl"/>
535 <bitfield name="PM4_WFI_STALL" low="26" high="27" type="sqe_perfcntr_cntl"/>
536 <bitfield name="SYS_WFI_STALL" low="28" high="29" type="sqe_perfcntr_cntl"/>
537 </reg32>
538
539 <reg32 name="COMPLETED_BR_COUNT" offset="0x101"/>
540 <reg32 name="COMPLETED_BV_COUNT" offset="0x102"/>
541 <reg32 name="TIMESTAMP_SUM" offset="0x103"/>
542 <reg32 name="GLOBAL_TIMESTAMP" offset="0x104"/>
543 <reg32 name="LOCAL_TIMESTAMP" offset="0x105"/>
544
545 <reg32 name="CONTEXT_SWITCH_CNTL" offset="0x131"/>
546 <reg32 name="PREEMPT_COOKIE" offset="0x132"/>
547 <reg32 name="PREEMPT_ENABLE" offset="0x133"/>
548 <reg32 name="PREEMPT_TRIGGER" offset="0x0134"/>
549 <reg32 name="SECURE_MODE" offset="0x136"/>
550
551 <reg32 name="MARKER" offset="0x138"/>
552
553 <reg32 name="PREEMPTION_TIMER" offset="0x140"/>
554 <reg32 name="PREEMPTION_TIMER_CNTL" offset="0x141">
555 <bitfield name="RUNNING" pos="0"/>
556 </reg32>
557
558 <reg64 name="AQE1_PREEMPT_BASE" offset="0x26e"/>
559 <reg64 name="AQE0_PREEMPT_BASE" offset="0x275"/>
560
561 <reg32 name="THREAD_SYNC" offset="0x27f"/>
562
563 <!-- the scratch control registers are now at 0x400-0x5ff instead of 0x100-0x1ff -->
564 </domain>
565
566 </database>