AMD SB-RMI Driver Coming For Linux 5.15

Written by Michael Larabel in AMD on 2 August 2021 at 04:00 PM EDT. 12 Comments
AMD
AMD continues pushing new code out for Linux in better exposing their platform's capabilities in the open-source world. The latest AMD driver work now queued via "-next" branches for introduction this autumn in Linux 5.15 is SB-RMI sensor support.

AMD SB-RMI is the Side-Band Remote Management Interface for out-of-band communication between the AMD SoC/CPU and the baseboard management controller (BMC) via the Advanced Platform Management Link (APML / SBI). Queued via the hwmon-next Git branch is an initial AMD SB-RMI sensor driver for Linux.

This SB-RMI driver (simply named SBRMI) allows for reading the CPU socket power consumption, power limit, and maximum power limit. Additionally, the driver allows setting/limiting the maximum power limit of a CPU socket. Though given SB-RMI, it's important to reiterate this is just for server platforms with a supported BMC configuration and just not any AMD platform / desktop. Capable dual socket servers are supported by the driver.

The SB-RMI driver exposes the current socket power, the read/write current socket cap, and maximum cap via the hwmon sysfs interface. The code is ready to go once the Linux 5.15 merge window opens up in the coming weeks.

It's nice seeing progress being made by AMD engineers on exposing these additional capabilities under Linux. For EPYC processors there is currently RAPL support while Zen voltage/current support was previously dropped from Linux with the mainline k10temp driver over lack of public AMD documentation. There was also the AMD energy monitoring driver that was removed from the Linux kernel earlier this year over a disagreement on handling of the CPU metrics being restricted to root-only for security purposes. Hopefully there is progress made on those fronts particularly for desktop/mobile users moving forward.

This SB-RMI work does appear to be motivated at least in part over AMD's growing OpenBMC support just like the SB-TSI sensor support for Linux that landed a few kernels ago.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week