]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powerpc/pseries/htmdump: Add htm_hcall_wrapper to integrate other htm operations
authorAthira Rajeev <atrajeev@linux.ibm.com>
Sun, 20 Apr 2025 18:08:36 +0000 (23:38 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Sun, 4 May 2025 03:35:47 +0000 (09:05 +0530)
commit6e204ef3b73e41e46784fdd298c3d81caed84873
tree5598943e1ca324ee7974f5efe82eff737d6e8e98
parent5ea6a980b5da58a8dff550dbc2c2523ea492dd14
powerpc/pseries/htmdump: Add htm_hcall_wrapper to integrate other htm operations

H_HTM (Hardware Trace Macro) hypervisor call is an HCALL to export data
from Hardware Trace Macro (HTM) function. The debugfs interface to
export the HTM function data in an lpar currently supports only dumping
of HTM data in an lpar. To add support for setup, configuration and
control of HTM function via debugfs interface, update the hcall wrapper
function. Rename and update htm_get_dump_hardware to htm_hcall_wrapper()
so that it can be used for other HTM operations as well. Additionally
include parameter "htm_op". Update htmdump module to check the return
code of hcall in a separate function so that it can be reused for other
option too. Add check to disable the interface in guest environment.

Signed-off-by: Athira Rajeev <atrajeev@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250420180844.53128-2-atrajeev@linux.ibm.com
arch/powerpc/include/asm/plpar_wrappers.h
arch/powerpc/platforms/pseries/htmdump.c