xref: /linux/arch/xtensa/Kconfig.debug (revision 4ba24fef3eb3b142197135223b90ced2f319cd53)
18e1a6dd2SChris Zankelmenu "Kernel hacking"
28e1a6dd2SChris Zankel
38e1a6dd2SChris Zankelsource "lib/Kconfig.debug"
48e1a6dd2SChris Zankel
5a99e07eeSMax Filippovconfig DEBUG_TLB_SANITY
6a99e07eeSMax Filippov	bool "Debug TLB sanity"
7be603092SMax Filippov	depends on DEBUG_KERNEL && MMU
8a99e07eeSMax Filippov	help
9a99e07eeSMax Filippov	  Enable this to turn on TLB sanity check on each entry to userspace.
10a99e07eeSMax Filippov	  This check can spot missing TLB invalidation/wrong PTE permissions/
11a99e07eeSMax Filippov	  premature page freeing.
12a99e07eeSMax Filippov
13a99e07eeSMax Filippov	  If unsure, say N.
14a99e07eeSMax Filippov
1565501622SChris Zankelconfig LD_NO_RELAX
1665501622SChris Zankel	bool "Disable linker relaxation"
17*1f2fdbd0SChris Zankel	default y
1865501622SChris Zankel	help
1965501622SChris Zankel	  Enable this function to disable link-time optimizations.
2065501622SChris Zankel	  The default linker behavior is to combine identical literal
2165501622SChris Zankel	  values to reduce code size and remove unnecessary overhead from
2265501622SChris Zankel	  assembler-generated 'longcall' sequences.
2365501622SChris Zankel	  Enabling this option improves the link time but increases the
2465501622SChris Zankel	  code size, and possibly execution time.
2565501622SChris Zankel
2600273125SMax Filippovconfig S32C1I_SELFTEST
2700273125SMax Filippov	bool "Perform S32C1I instruction self-test at boot"
2800273125SMax Filippov	default y
2900273125SMax Filippov	help
3000273125SMax Filippov	  Enable this option to test S32C1I instruction behavior at boot.
3100273125SMax Filippov	  Correct operation of this instruction requires some cooperation from hardware
3200273125SMax Filippov	  external to the processor (such as bus bridge, bus fabric, or memory controller).
3300273125SMax Filippov	  It is easy to make wrong hardware configuration, this test should catch it early.
3400273125SMax Filippov
3500273125SMax Filippov	  Say 'N' on stable hardware.
3600273125SMax Filippov
378e1a6dd2SChris Zankelendmenu
38