aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / scripts / gpu_bench / STEP2_gmc_read.bench
| 1 | # STEP2_gmc_read.bench -- GMC 8 memory controller state (reads only). |
| 2 | # BAR5 DWORD indices (byte offset / 4 in each comment). Source: amd_gpu_regs.h (gmc_8_1_d.h). |
| 3 | # No writes, so the allowlist does not apply. |
| 4 | |
| 5 | # MC_VM_FB_LOCATION: bits[15:0] FB_START (VRAM PA = FB_START << 24), bits[31:16] FB_TOP |
| 6 | # byte 0x24 |
| 7 | bar5_read 0x809 |
| 8 | |
| 9 | # System aperture window (PA >> 12) |
| 10 | # MC_VM_SYSTEM_APERTURE_LOW_ADDR, byte 0x38 |
| 11 | bar5_read 0x80d |
| 12 | # MC_VM_SYSTEM_APERTURE_HIGH_ADDR, byte 0x3C |
| 13 | bar5_read 0x80e |
| 14 | |
| 15 | # AGP window (GART address range): 0xb is TOP, 0xc is BOT |
| 16 | # MC_VM_AGP_TOP, byte 0x2C |
| 17 | bar5_read 0x80a |
| 18 | # MC_VM_AGP_BOT, byte 0x30 |
| 19 | bar5_read 0x80b |
| 20 | |
| 21 | # VM context 0 page table base |
| 22 | # VM_CONTEXT0_PAGE_TABLE_BASE_ADDR, byte 0x153C |
| 23 | bar5_read 0x54f |