The hardware trace macro feature requires access to a chunk of real memory. This patch provides a debugfs interface to do this. By writing an integer containing the size of memory to be unplugged into /sys/kernel/debug/powerpc/memtrace/enable, the code will attempt to remove that much memory from the end of each NUMA node. This patch also adds additional debugsfs files for each node that allows the tracer to interact with the removed memory, as well as a trace file that allows userspace to read the generated trace. Note that this patch does not invoke the hardware trace macro, it only allows memory to be removed during runtime for the trace macro to utilise. Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com> [mpe: Minor formatting etc fixups] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
config PPC_POWERNV
|
|
depends on PPC64 && PPC_BOOK3S
|
|
bool "IBM PowerNV (Non-Virtualized) platform support"
|
|
select PPC_NATIVE
|
|
select PPC_XICS
|
|
select PPC_ICP_NATIVE
|
|
select PPC_XIVE_NATIVE
|
|
select PPC_P7_NAP
|
|
select PCI
|
|
select PCI_MSI
|
|
select EPAPR_BOOT
|
|
select PPC_INDIRECT_PIO
|
|
select PPC_UDBG_16550
|
|
select PPC_SCOM
|
|
select ARCH_RANDOM
|
|
select CPU_FREQ
|
|
select CPU_FREQ_GOV_PERFORMANCE
|
|
select CPU_FREQ_GOV_POWERSAVE
|
|
select CPU_FREQ_GOV_USERSPACE
|
|
select CPU_FREQ_GOV_ONDEMAND
|
|
select CPU_FREQ_GOV_CONSERVATIVE
|
|
select PPC_DOORBELL
|
|
select MMU_NOTIFIER
|
|
select FORCE_SMP
|
|
default y
|
|
|
|
config OPAL_PRD
|
|
tristate 'OPAL PRD driver'
|
|
depends on PPC_POWERNV
|
|
help
|
|
This enables the opal-prd driver, a facility to run processor
|
|
recovery diagnostics on OpenPower machines
|
|
|
|
config PPC_MEMTRACE
|
|
bool "Enable removal of RAM from kernel mappings for tracing"
|
|
depends on PPC_POWERNV && MEMORY_HOTREMOVE
|
|
default n
|
|
help
|
|
Enabling this option allows for the removal of memory (RAM)
|
|
from the kernel mappings to be used for hardware tracing.
|