| 1 |
## SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
config SOC_AMD_COMMON_BLOCK_STB |
| 4 |
bool |
| 5 |
select SOC_AMD_COMMON_BLOCK_SMN |
| 6 |
select SOC_AMD_COMMON_BLOCK_SMU |
| 7 |
help |
| 8 |
Select in the SOC if it supports the Smart Trace Buffer |
| 9 |
|
| 10 |
if SOC_AMD_COMMON_BLOCK_STB |
| 11 |
|
| 12 |
config WRITE_STB_BUFFER_TO_CONSOLE |
| 13 |
bool "Write STB entries to the console log" |
| 14 |
default n |
| 15 |
depends on !ENABLE_STB_SPILL_TO_DRAM |
| 16 |
help |
| 17 |
This option will tell coreboot to print the STB buffer at various |
| 18 |
points through the boot process. Note that this will prevent the |
| 19 |
entries from being stored if the Spill-to-DRAM feature is enabled. |
| 20 |
|
| 21 |
config ENABLE_STB_SPILL_TO_DRAM |
| 22 |
bool "Enable Smart Trace Buffer Spill-to-DRAM" |
| 23 |
default n |
| 24 |
help |
| 25 |
Spill-to-DRAM is an STB feature that extends the buffer from using |
| 26 |
just the small SRAM buffer to a much larger area reserved in main |
| 27 |
memory. |
| 28 |
|
| 29 |
config AMD_STB_SIZE_IN_MB |
| 30 |
int "Smart Trace Buffer Spill-to-DRAM buffer size in MB" |
| 31 |
default 3 |
| 32 |
range 3 16 |
| 33 |
depends on ENABLE_STB_SPILL_TO_DRAM |
| 34 |
help |
| 35 |
Size of the STB Spill-to-DRAM buffer in MB. |
| 36 |
|
| 37 |
config ADD_POSTCODES_TO_STB |
| 38 |
bool "Add coreboot postcodes to STB" |
| 39 |
default y |
| 40 |
help |
| 41 |
Add coreboot's postcodes to the smart trace buffer |
| 42 |
|
| 43 |
endif |