Skip to content

Commit d39423f

Browse files
author
Igor Bagnucki
authored
WIP: Add more undocumented registers (#46)
* Add tables for newly discovered registers Signed-off-by: Igor Bagnucki <[email protected]> * Add more comment to extracted registers Signed-off-by: Igor Bagnucki <[email protected]>
1 parent 152c812 commit d39423f

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

devnotes/undocumented_registers.md

+40-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,50 @@ and registers that code analysis proofed to work differently than described.
99
| --------- | ---------------------------- | -------------- |
1010
| 56-63 | According to documentation, this range is read-only and constant to 0 | hostboot is writing to it in [p9_nx_scom.C:668](https://github.com/open-power/hostboot/blob/3e6bf45bea9b61ef6b3da1df9f7e63e0b8ec5403/src/import/chips/p9/procedures/hwp/initfiles/p9_nx_scom.C#L668) |
1111

12+
**PU_IOE_PB_OLINK_DLY_0123_REG 501380E**
13+
**PU_IOE_PB_OLINK_DLY_4567_REG 501380F**
14+
| Bit range | Description in documentation | Actual working |
15+
| --------- | ---------------------------- | -------------- |
16+
| 0-3 | Constant = 0b0000 | |
17+
| 4-15 | ROX Reserved. | Results of round-trip delay calculation can be read from here after triggering it using PB_ELINK_RT_DELAY_CTL_REG register |
18+
| 16-19 | RO Constant = 0b0000 | |
19+
| 20-31 | ROX Reserved. | Same as above |
20+
| 32-35 | RO Constant = 0b0000 | |
21+
| 36-47 | ROX Reserved. | Same as above |
22+
| 48-51 | RO Constant = 0b0000 | |
23+
| 52-63 | ROX Reserved. | Same as above |
24+
25+
1226
## Undocumented registers
1327

28+
**P9N2_C_RAM_CTRL 20010A4F**
29+
| Bit range | Name | Description |
30+
| --------- | ------------------------- | ----------- |
31+
| 0-1 | C_RAM_CTRL_RAM_VTID | |
32+
| 2-5 | C_RAM_CTRL_PPC_PREDCD | |
33+
| 8-39 | C_RAM_CTRL_PPC_INSTR | |
34+
35+
**P9N2_C_RAM_STATUS 20010A50**
36+
| Bit range | Name | Description |
37+
| --------- | -------------------------------------------- | ----------- |
38+
| 0 | C_RAM_STATUS_RAM_CONTROL_ACCESS_DURING_RECOV | |
39+
| 2 | C_RAM_STATUS_RAM_EXCEPTION | |
40+
| 1 | C_RAM_STATUS_RAM_COMPLETION | |
41+
| 3 | C_RAM_STATUS_LSU_EMPTY | |
42+
43+
44+
**P9N2_C_DIRECT_CONTROLS 20010A9C**
45+
| Bit range | Name | Description |
46+
| --------- | -------------------------------------- | -------------- |
47+
| | C_DIRECT_CONTROLS_DC_T0_SRESET_REQUEST | | // shift of 4 in Hostboot code
48+
| | C_DIRECT_CONTROLS_DC_T0_CORE_START | | // shift of 6 in Hostboot code
49+
| | C_DIRECT_CONTROLS_DC_T0_CORE_STOP | | // shift of 7 in Hostboot code
50+
| | C_DIRECT_CONTROLS_DC_T0_CORE_STEP | | // shift of 5 in Hostboot code
51+
1452
**P9N2_MCS_PORT02_MCPERF0 5010823**
1553
| Bit range | Name | Value assigned in code | Description |
1654
| --------- | --------- | ---------------------- | ----------- |
17-
| 22-27 | AMO_LIMIT | 20 | |
55+
| 22-27 | AMO_LIMIT | 20 | |
1856

1957
**P9N2_MCS_PORT02_MCPERF2 5010824**
2058
| Bit range | Name | Value assigned in code | Description |
@@ -36,7 +74,7 @@ and registers that code analysis proofed to work differently than described.
3674
| Bit range | Name | Value assigned in code | Description |
3775
| --------- | --------------------------------- | ---------------------- | ----------- |
3876
| 1 | FORCE_PF_DROP0 | 0 | |
39-
| 4-28 | WRTO_AMO_COLLISION_RULES | 19FFFFF | |
77+
| 4-28 | WRTO_AMO_COLLISION_RULES | 19FFFFF | |
4078
| 29-31 | AMO_SIZE_SELECT, 128B_RW_64B_DATA | 1 | |
4179

4280
**P9N2_MCS_PORT02_MCEPSQ 5010826** \

0 commit comments

Comments
 (0)