1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 28e1a6dd2SChris Zankel 3a99e07eeSMax Filippovconfig DEBUG_TLB_SANITY 4a99e07eeSMax Filippov bool "Debug TLB sanity" 5be603092SMax Filippov depends on DEBUG_KERNEL && MMU 6a99e07eeSMax Filippov help 7a99e07eeSMax Filippov Enable this to turn on TLB sanity check on each entry to userspace. 8a99e07eeSMax Filippov This check can spot missing TLB invalidation/wrong PTE permissions/ 9a99e07eeSMax Filippov premature page freeing. 10a99e07eeSMax Filippov 11a99e07eeSMax Filippov If unsure, say N. 12a99e07eeSMax Filippov 1365501622SChris Zankelconfig LD_NO_RELAX 1465501622SChris Zankel bool "Disable linker relaxation" 151f2fdbd0SChris Zankel default y 1665501622SChris Zankel help 1765501622SChris Zankel Enable this function to disable link-time optimizations. 1865501622SChris Zankel The default linker behavior is to combine identical literal 1965501622SChris Zankel values to reduce code size and remove unnecessary overhead from 2065501622SChris Zankel assembler-generated 'longcall' sequences. 2165501622SChris Zankel Enabling this option improves the link time but increases the 2265501622SChris Zankel code size, and possibly execution time. 2365501622SChris Zankel 2400273125SMax Filippovconfig S32C1I_SELFTEST 2500273125SMax Filippov bool "Perform S32C1I instruction self-test at boot" 2600273125SMax Filippov default y 2700273125SMax Filippov help 2800273125SMax Filippov Enable this option to test S32C1I instruction behavior at boot. 2900273125SMax Filippov Correct operation of this instruction requires some cooperation from hardware 3000273125SMax Filippov external to the processor (such as bus bridge, bus fabric, or memory controller). 3100273125SMax Filippov It is easy to make wrong hardware configuration, this test should catch it early. 3200273125SMax Filippov 3300273125SMax Filippov Say 'N' on stable hardware. 348951eb15SMax Filippov 358951eb15SMax Filippovconfig PRINT_STACK_DEPTH 368951eb15SMax Filippov int "Stack depth to print" if DEBUG_KERNEL 378951eb15SMax Filippov default 64 388951eb15SMax Filippov help 398951eb15SMax Filippov This option allows you to set the stack depth that the kernel 408951eb15SMax Filippov prints in stack traces. 41*f7667ca1SMax Filippov 42*f7667ca1SMax Filippovconfig PRINT_USER_CODE_ON_UNHANDLED_EXCEPTION 43*f7667ca1SMax Filippov bool "Dump user code around unhandled exception address" 44*f7667ca1SMax Filippov help 45*f7667ca1SMax Filippov Enable this option to display user code around PC of the unhandled 46*f7667ca1SMax Filippov exception (starting at address aligned on 16 byte boundary). 47*f7667ca1SMax Filippov This may simplify finding faulting code in the absence of other 48*f7667ca1SMax Filippov debug facilities. 49