amd / esmi_oob_library

for hosting E-SMI Out-of-band code
Other
18 stars 7 forks source link

Errors with `esmi_oob_tool` and EPYC Rome CPUs #1

Closed Kostr closed 1 year ago

Kostr commented 2 years ago

Is it possible to run esmi_oob_tool with EPYC Rome CPUs? I'm trying to run esmi_oob_tool under OpenBMC on the ASPEED AST2500 in the AMD EthanolX CRB. esmi_oob_ex runs fine, but esmi_oob_tool fails on the last read_esb_boost_limit function:

root@ethanolx:~# esmi_oob_ex 0x3c
-----------------------------------------
Power(Watts)             | 34.218       |
PowerLimit(Watts)        | 155.000      |
PowerLimitMax(Watts)     | 155.000      |
-----------------------------------------
root@ethanolx:~# esmi_oob_tool 0 0x3c

=============== APML System Management Interface ===============

                 *** SB-RMI SUMMARY ***
----------------------------------------------------------------
| Power (Watts)          | 34.142
| PowerLimit (Watts)     | 155.000
| PowerLimitMax (Watts)  | 155.000
| C0 Residency (%)       | 0
| DDR Max BW (GB/s)      | 0
| DDR Utilized BW (GB/s) | 0
| DDR Utilized Percent(%)| 0
| BIOS boostlimit(MHz)   | 3300
| APML boostlimit(MHz)   |
Invalid I2C Bus or Address
Failed: For Mailbox Err[15]: Input value is invalid
Failed: For TSI Err[7]: Unknown error
----------------------------------------------------------------
Try `esmi_oob_tool --help' for more information.

====================== End of APML SMI Log =====================

I'm using Rome EPYC CPUs:

cpu family      : 23
model           : 49
model name      : AMD EPYC 7302 16-Core Processor

Just in case here is an output from the esmi_ib_library which looks fine and doesn't have any errors:

esmi_ib_library/Build$ sudo ./e_smi_tool
=============== EPYC System Management Interface ===============

--------------------------------------
| CPU Family            | 0x17 (23 ) |
| CPU Model             | 0x31 (49 ) |
| NR_CPUS               | 64         |
| NR_SOCKETS            | 2          |
| THREADS PER CORE      | 2 (SMT ON) |
--------------------------------------

----------------------------------------------------------------
| Sensor Name            | Socket 0         | Socket 1         |
----------------------------------------------------------------
| Energy (K Joules)      | 86.434           | 78.392           |
| Power (Watts)          | 35.106           | 31.925           |
| PowerLimit (Watts)     | 155.000          | 155.000          |
| PowerLimitMax (Watts)  | 155.000          | 155.000          |
| C0 Residency (%)       | 0                | 1                |
----------------------------------------------------------------
| Core[0] Energy (Joules)| 32.777           | 32.777           |
| Core[0] boostlimit(MHz)| 3300             | 3300             |
----------------------------------------------------------------
nchatrad commented 1 year ago

We have supported from Milan and later, Could you try with the latest version of the library from this github,