include/regs.h — Register offsets
GPU control registers shared by several files: offsets from the public
pvr_rogue_cr_defs.h or from the specification, the CR_EVENT_STATUS
bits, the remap configuration fields and the debug scratch registers the
host-side tools read. Registers used by one file only are defined there.
-
CR_CORE_REVISION
Core revision (read-only); also read to drain posted writes.
-
CR_SOFT_RESET
Soft reset of the GPU units (64-bit).
-
CR_EVENT_ENABLE
Events routed to the host interrupt (must stay 0, E011).
-
CR_EVENT_STATUS
Pending GPU events (
EV_*).
-
CR_EVENT_CLEAR
Write 1 to clear GPU events.
-
CR_TIMER
GPU timer, core clock / 256 (48 bits used).
-
CR_MIPS_WRAPPER_CONFIG
MIPS wrapper configuration.
-
CR_MIPS_ADDR_REMAP_RANGE_CONFIG
Address-remap entry configuration (low word: entry, input address, enable; high word: output address).
-
CR_MIPS_ADDR_REMAP_RANGE_READ
Address-remap entry read-back select.
-
CR_MIPS_ADDR_REMAP_RANGE_DATA
Address-remap entry read-back data.
-
CR_MIPS_WRAPPER_IRQ_ENABLE
Firmware-to-host interrupt enable.
-
CR_MIPS_WRAPPER_IRQ_STATUS
Firmware-to-host interrupt status; writing 1 raises the host interrupt.
-
CR_MIPS_EXCEPTION_STATUS
MIPS exception status.
-
CR_XPU_BROADCAST
XPU broadcast: register writes go to every core.
-
CR_MTS_SCHEDULE
MTS schedule request: writing it asks for a background task.
-
CR_MTS_TASK_END
End of the current MTS task (no public name; from the specification).
-
CR_MTS_BGCTX_THREAD0_DM_ASSOC
Data masters served by the MTS background task.
-
CR_MTS_INTCTX_THREAD0_DM_ASSOC
Data masters served by the MTS interrupt task.
-
CR_MTS_GARTEN_WRAPPER_CONFIG
MTS Garten wrapper configuration.
-
CR_MTS_DM0_INTERRUPT_ENABLE
Events that start the interrupt task for DM0; DMn at
+8n.
-
CR_MTS_INTCTX
MTS interrupt task context.
-
CR_MTS_BGCTX
MTS background task context.
-
CR_MTS_BGCTX_COUNTED_SCHEDULE
MTS counted background schedule.
-
CR_MTS_GPU_INT_STATUS
MTS GPU interrupt status.
-
CR_MTS_SCHEDULE_ENABLE
MTS schedule enable.
-
CR_BIF_CAT_BASE0
BIF page-catalogue base of slot 0; slot n at
+8n.
-
CR_BIF_CAT_BASE_INDEX
BIF slot used by each data master.
-
CR_BIF_CTRL_INVAL
BIF MMU cache invalidation (PT, PD, PC, TLB bits).
-
CR_BIF_FAULT_BANK0_MMU_STATUS
MMU fault status of bank 0; the request status follows at
+8.
-
CR_SLC_CTRL_FLUSH_INVAL
SLC flush and invalidate control.
-
CR_SLC_STATUS0
SLC status.
-
SLC_FLUSH_INVAL_ALL
CR_SLC_CTRL_FLUSH_INVAL: flush and invalidate the whole SLC.
-
SLC_STATUS_FLUSH_PENDING
CR_SLC_STATUS0: a flush is in progress.
-
CR_SCRATCH15
Scratch register 15: bit n set while data master n is busy (debug).
-
CR_MULTICORE_SYSTEM
Multicore system configuration.
-
EV_KERNEL_FINISHED
Event: kernel finished.
-
EV_COMPUTE_FINISHED
Event: the compute data master finished.
-
EV_PIXELBE_END_RENDER
Event: the pixel back end finished a render.
-
EV_TA_FINISHED
Event: the TA (geometry) finished.
-
EV_TA_TERMINATE
Event: the TA stopped (out of memory).
-
EV_PM_OUT_OF_MEMORY
Event: the PM ran out of free-list pages.
-
EV_PM_3D_MEM_FREE
Event: the PM returned a render’s pages.
-
EV_MMU_PAGE_FAULT
Event: MMU page fault.
-
EV_POWER_COMPLETE
Event: a power-island transition completed.
-
EV_POWER_ABORT
Event: a power-island transition was aborted.
-
EV_GPIO_REQ
Event: GPIO request.
-
EV_GPIO_ACK
Event: GPIO acknowledge.
-
EV_USC_TRIGGER
Event: USC trigger.
-
REMAP_ENTRY_SHIFT
Position of the entry index in a remap configuration word.
-
REMAP_ENABLE
Remap configuration: entry enabled.
-
REMAP_SIZE_4K
Remap configuration: 4 KiB region.
-
CR_DBG_STAGE
Debug: boot stage (
0xC0DE000n/0xB007n).
-
CR_DBG_REFILLS
Debug: number of TLB refills.
-
CR_DBG_LASTVA
Debug: address of the last TLB refill.
-
CR_DBG_EXC_CAUSE
Debug:
Causeof the last fatal exception.
-
CR_DBG_EXC_EPC
Debug:
EPCof the last fatal exception.
-
CR_DBG_EXC_BADVA
Debug:
BadVAddrof the last fatal exception.
-
CR_DBG_UNITS_PDS
Debug: read-back of the PDS execution base (high word).
-
CR_DBG_UNITS_USC
Debug: read-back of the USC execution base (high word).
-
CR_DBG_IRQ_TIMER
HW0 count.
-
CR_DBG_IRQ_BG
HW1 (MTS BG task) count.
-
CR_DBG_IRQ_IRQ
HW2 (MTS IRQ task) count.
-
CR_DBG_IRQ_LASTEV
EVENT_STATUS seen by the last IRQ task.
-
CR_DBG_EVENTS_SEEN
OR of every event handled by kick_events.
-
CR_DBG_HWR_COUNT
Completed hardware recoveries.
-
CR_DBG_BG_WITH_EV
BG tasks entered with a DM completion pending (E018).
-
CR_DBG_BG_LASTEV
EVENT_STATUS at the last such BG task.
-
CR_DBG_BG_CTX
MTS_BGCTX at the last BG task entry.
-
CR_DBG_IRQ_COMPUTE
IRQ tasks that carried COMPUTE_FINISHED (shares EXC_EPC).
-
CR_DBG_KICKS_CDM
CDM kicks issued (shares EXC_CAUSE).
-
CR_DBG_INT_CTX
MTS_INTCTX at the last IRQ task entry (shares EXC_BADVA).
-
CR_POWER_REQ
Dust / unit power request (bit 0 on/off, bit 1 trigger).
-
CR_ACTIVE_DUSTS
Active-dusts mask.
-
CR_PDS_EXEC_BASE
PDS execution base (64-bit).
-
CR_USC_EXEC_BASE0
USC execution bases (64-bit).
-
CR_INIT_DONE_A
Init-done handshakes (USC bank, PDS buffers, TE/PPP).
-
CR_UNIT_RESET_PULSE
Unit reset pulse.
-
CR_SLC_CTRL_BYPASS
SLC bypass control (64-bit, pvr_rogue_cr_defs.h).
-
CR_PM_TLB_INVAL
PM TLB / BIF-PM memory invalidate: write 1, clears itself (no public name).