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