1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun 3*4882a593Smuzhiyunconfig DEBUG_TLB_SANITY 4*4882a593Smuzhiyun bool "Debug TLB sanity" 5*4882a593Smuzhiyun depends on DEBUG_KERNEL && MMU 6*4882a593Smuzhiyun help 7*4882a593Smuzhiyun Enable this to turn on TLB sanity check on each entry to userspace. 8*4882a593Smuzhiyun This check can spot missing TLB invalidation/wrong PTE permissions/ 9*4882a593Smuzhiyun premature page freeing. 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun If unsure, say N. 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunconfig LD_NO_RELAX 14*4882a593Smuzhiyun bool "Disable linker relaxation" 15*4882a593Smuzhiyun default y 16*4882a593Smuzhiyun help 17*4882a593Smuzhiyun Enable this function to disable link-time optimizations. 18*4882a593Smuzhiyun The default linker behavior is to combine identical literal 19*4882a593Smuzhiyun values to reduce code size and remove unnecessary overhead from 20*4882a593Smuzhiyun assembler-generated 'longcall' sequences. 21*4882a593Smuzhiyun Enabling this option improves the link time but increases the 22*4882a593Smuzhiyun code size, and possibly execution time. 23*4882a593Smuzhiyun 24*4882a593Smuzhiyunconfig S32C1I_SELFTEST 25*4882a593Smuzhiyun bool "Perform S32C1I instruction self-test at boot" 26*4882a593Smuzhiyun default y 27*4882a593Smuzhiyun help 28*4882a593Smuzhiyun Enable this option to test S32C1I instruction behavior at boot. 29*4882a593Smuzhiyun Correct operation of this instruction requires some cooperation from hardware 30*4882a593Smuzhiyun external to the processor (such as bus bridge, bus fabric, or memory controller). 31*4882a593Smuzhiyun It is easy to make wrong hardware configuration, this test should catch it early. 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun Say 'N' on stable hardware. 34*4882a593Smuzhiyun 35*4882a593Smuzhiyunconfig PRINT_STACK_DEPTH 36*4882a593Smuzhiyun int "Stack depth to print" if DEBUG_KERNEL 37*4882a593Smuzhiyun default 64 38*4882a593Smuzhiyun help 39*4882a593Smuzhiyun This option allows you to set the stack depth that the kernel 40*4882a593Smuzhiyun prints in stack traces. 41