All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] platform/x86/amd/hsmp: add metrics table support
@ 2023-08-18 12:51 Suma Hegde
  2023-08-18 12:51 ` [PATCH 1/4] platform/x86/amd/hsmp: create plat specific struct Suma Hegde
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Suma Hegde @ 2023-08-18 12:51 UTC (permalink / raw)
  To: hdegoede; +Cc: platform-driver-x86, Suma Hegde

From: Suma Hegde <suma.hegde@amd.com>

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-09-04 11:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-18 12:51 [PATCH 0/3] platform/x86/amd/hsmp: add metrics table support Suma Hegde
2023-08-18 12:51 ` [PATCH 1/4] platform/x86/amd/hsmp: create plat specific struct Suma Hegde
2023-08-18 12:51 ` [PATCH 2/4] platform/x86/amd/hsmp: add support for metrics tbl Suma Hegde
2023-08-21 11:25   ` Ilpo Järvinen
2023-08-22 12:45     ` Hegde, Suma
2023-08-22  8:57   ` Ilpo Järvinen
2023-09-04 11:14     ` Hegde, Suma
2023-08-18 12:51 ` [PATCH 3/4] platform/x86/amd/hsmp: change the print message Suma Hegde
2023-08-21 10:45   ` Ilpo Järvinen
2023-08-22 12:27     ` Hegde, Suma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.