Coder Social home page Coder Social logo

esmi_oob_library's People

Contributors

akky16 avatar khashaik avatar mkv14 avatar muralimk-amd avatar nchatrad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esmi_oob_library's Issues

Errors with `esmi_oob_tool` and EPYC Rome CPUs

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             |
----------------------------------------------------------------

Correct recipe for yocto integration

I'm trying to integrate esmi_oob_library to the OpenBMC (48915: meta-amd: Add APML recipe | https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/48915)

Unfortunately it is not possible with the current version of CMakeLists.txt if we don't override cmake do_install task. The build fails with the following error:

ERROR: amd-apml-1.0+gitAUTOINC+697a8ccf50-r0 do_package: QA Issue: amd-apml: Files/directories were installed but not shipped in any package:
  /usr/esmi_oob/include
  /usr/esmi_oob/include/esmi_oob
  /usr/esmi_oob/include/esmi_oob/esmi_rmi.h
  /usr/esmi_oob/include/esmi_oob/esmi_tsi.h
  /usr/esmi_oob/include/esmi_oob/esmi_common.h
  /usr/esmi_oob/include/esmi_oob/esmi_mailbox.h
  /usr/esmi_oob/include/esmi_oob/esmi_i2c.h
  /usr/esmi_oob/include/esmi_oob/esmi_cpuid_msr.h
  /usr/esmi_oob/lib/libesmi_oob64.so.0.1.0
  /usr/esmi_oob/lib/libesmi_oob64.so
  /usr/esmi_oob/lib/libesmi_oob64.so.0
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
amd-apml: 11 installed and not shipped files. [installed-vs-shipped]

It looks like install paths needs some correction. The path prefix should be /usr, but not /usr/esmi_oob.

Also it would be good to have an option for examples compilation. By them I mean:

  • esmi_oob_ex
  • esmi_oob_tool
  • esmi_oob_cpuid_tool

Bad link to User Guide on developer site

There is an issue with the links to the Users Guide on https://developer.amd.com/e-sms/apml-library/ - they point to a file that no longer exists on github.

There are two links with this problem, the "User Guide" near the upper right hand area of the page and under the Resources and Technical Support section near the bottom.

I'm guessing those links should perhaps point now to here: https://github.com/amd/esmi_oob_library/blob/master/APML_Library_Manual.pdf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.