]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/pseries/htmdump: Add memory configuration dump support to htmdump module
authorAthira Rajeev <atrajeev@linux.ibm.com>
Sat, 14 Mar 2026 13:29:53 +0000 (18:59 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 6 May 2026 01:59:18 +0000 (07:29 +0530)
commit0342545a29bc2edfbe132c68c68b51c92a12444c
treec68ffbb87720cf77bb13ef18511c7d150628cfd7
parent0031424cbc0a6eafc56a8f9201a4a69d3649981e
powerpc/pseries/htmdump: Add memory configuration dump support to htmdump module

H_HTM (Hardware Trace Macro) hypervisor call has capability
to capture SystemMemory Configuration. This information
helps to understand the address mapping for the partitions
in the system.

Support dumping system memory configuration from Hardware
Trace Macro (HTM) function via debugfs interface. Under
debugfs folder "/sys/kernel/debug/powerpc/htmdump", add
file "htmsystem_mem".

The interface allows only read of this file which will present the
content of HTM buffer from the hcall. The 16th offset of HTM
buffer has value for the number of entries for array of processors.
Use this information to copy data to the debugfs file

Signed-off-by: Athira Rajeev <atrajeev@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260314132953.27269-1-atrajeev@linux.ibm.com
arch/powerpc/platforms/pseries/htmdump.c