192c2fb8fSShyam Sundar S K# SPDX-License-Identifier: GPL-2.0-only 292c2fb8fSShyam Sundar S K# 392c2fb8fSShyam Sundar S K# AMD PMC Driver 492c2fb8fSShyam Sundar S K# 592c2fb8fSShyam Sundar S K 692c2fb8fSShyam Sundar S Kconfig AMD_PMC 792c2fb8fSShyam Sundar S K tristate "AMD SoC PMC driver" 892c2fb8fSShyam Sundar S K depends on ACPI && PCI && RTC_CLASS && AMD_NB 95ee473bbSShyam Sundar S K depends on SUSPEND 1092c2fb8fSShyam Sundar S K select SERIO 1192c2fb8fSShyam Sundar S K help 1292c2fb8fSShyam Sundar S K The driver provides support for AMD Power Management Controller 1392c2fb8fSShyam Sundar S K primarily responsible for S2Idle transactions that are driven from 1492c2fb8fSShyam Sundar S K a platform firmware running on SMU. This driver also provides a debug 1592c2fb8fSShyam Sundar S K mechanism to investigate the S2Idle transactions and failures. 1692c2fb8fSShyam Sundar S K 1792c2fb8fSShyam Sundar S K Say Y or M here if you have a notebook powered by AMD RYZEN CPU/APU. 1892c2fb8fSShyam Sundar S K 1992c2fb8fSShyam Sundar S K If you choose to compile this driver as a module the module will be 2092c2fb8fSShyam Sundar S K called amd-pmc. 21*2dc77993SBasavaraj Natikar 22*2dc77993SBasavaraj Natikarconfig AMD_MP2_STB 23*2dc77993SBasavaraj Natikar bool "AMD SoC MP2 STB function" 24*2dc77993SBasavaraj Natikar depends on AMD_PMC 25*2dc77993SBasavaraj Natikar default AMD_PMC 26*2dc77993SBasavaraj Natikar help 27*2dc77993SBasavaraj Natikar AMD MP2 STB function provides a data buffer used to log debug 28*2dc77993SBasavaraj Natikar information about the system execution during S2Idle suspend/resume. 29*2dc77993SBasavaraj Natikar A data buffer known as the STB (Smart Trace Buffer) is a circular 30*2dc77993SBasavaraj Natikar buffer which is a low-level log for the SoC which is used to debug 31*2dc77993SBasavaraj Natikar any hangs/stalls during S2Idle suspend/resume. 32*2dc77993SBasavaraj Natikar 33*2dc77993SBasavaraj Natikar Creates debugfs to get STB, a userspace daemon can access STB log of 34*2dc77993SBasavaraj Natikar last S2Idle suspend/resume which can help to debug if hangs/stalls 35*2dc77993SBasavaraj Natikar during S2Idle suspend/resume. 36