[PATCH 0/3] platform/x86/amd/hsmp: add metrics table support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Suma Hegde <suma.hegde@xxxxxxx>

AMD MI300A processor supports metrics table, a structure of data shared by the SMU to the CPU,
Which provides a bunch of information in one go, this reduces the latency in telemetry and
adds atomicity to the information.
The following modifications and additions are needed to support reading the metrics table.

1. Create a separate platform structure for platform specific data (such as socket index and lock).
2. Create binary sysfs file for metrics table which can be read by userspace and decoded using
   hsmp_metric_table structure defined in uapi header.
   	2.a E-SMI library and esmi_tool [https://github.com/amd/esmi_ib_library]
	    will be updated with API and option respectively.
3. A general patch to modify logs to specify failure reasons.

Suma Hegde (3):
  platform/x86/amd/hsmp: create plat specific struct
  platform/x86/amd/hsmp: add support for metrics tbl
  platform/x86/amd/hsmp: change the print message

 arch/x86/include/uapi/asm/amd_hsmp.h | 109 ++++++++++++++
 drivers/platform/x86/amd/hsmp.c      | 206 +++++++++++++++++++++++----
 2 files changed, 291 insertions(+), 24 deletions(-)

-- 
2.25.1




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux