OSDN Git Service

platform/x86: amd-pmc: Add support for AMD Smart Trace Buffer
authorSanket Goswami <Sanket.Goswami@amd.com>
Tue, 30 Nov 2021 11:23:18 +0000 (16:53 +0530)
committerHans de Goede <hdegoede@redhat.com>
Tue, 21 Dec 2021 17:48:01 +0000 (18:48 +0100)
commit426c0ff27b833939ed434b4a468bdc010864922a
tree1ead159ae937daa588d5b257aea6e27d65b1102a
parent6a5a14b18972ae03861e2ed15152f731de29baaa
platform/x86: amd-pmc: Add support for AMD Smart Trace Buffer

STB (Smart Trace Buffer), is a debug trace buffer that isolates the
failures by analyzing the last running feature of a system. This
non-intrusive way always runs in the background and stores the trace
into the SoC.

This patch enables the STB feature by passing module param
"enable_stb=1" while loading the driver and provides mechanism to
access the STB buffer using the read and write routines.

Co-developed-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Link: https://lore.kernel.org/r/20211130112318.92850-3-Sanket.Goswami@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c