Lines Matching +full:default +full:- +full:on

1 # SPDX-License-Identifier: GPL-2.0-only
4 # see Documentation/kbuild/kconfig-language.rst.
65 # clang >= 17: https://github.com/llvm/llvm-project/commit/62fa708ceb027713b386c7e0efda994f8bdc27e2
234 depends on 64BIT
236 # -Zsanitizer=shadow-call-stack flag.
237 depends on !SHADOW_CALL_STACK || RUSTC_VERSION >= 108200
242 depends on AS_IS_GNU || (AS_IS_LLVM && (LD_IS_LLD || LD_VERSION >= 23600))
246 depends on $(cc-option,-fpatchable-function-entry=8)
247 depends on CC_HAS_MIN_FUNCTION_ALIGNMENT || !RISCV_ISA_C
250 def_bool $(cc-option,-fsanitize=shadow-call-stack)
251 …# https://github.com/riscv-non-isa/riscv-elf-psabi-doc/commit/a484e843e6eeb51f0cb7b8819e50da6d2444…
252 depends on $(ld-option,--no-relax-gp)
254 # https://github.com/llvm/llvm-project/commit/bbc0f99f3bc96f1db16f649fc21dd18e5b0918f6
257 # https://github.com/llvm/llvm-project/commit/1df5ea29b43690b6622db2cad7b745607ca4de6a
258 depends on AS_IS_LLVM && AS_VERSION < 180000
259 # https://github.com/llvm/llvm-project/commit/7ffabb61a5569444b5ac9322e22e5471cc5e4a77
260 depends on LD_IS_LLD && LLD_VERSION < 180000
263 default 18 if 64BIT
264 default 8
267 default 8
270 # VA_BITS - PAGE_SHIFT - 3
272 default 24 if 64BIT # SV39 based
273 default 17
276 default 17
281 depends on !MMU
282 default y
284 Select this option if you want to run the kernel in M-mode,
287 # set if we are running in S-mode and can use SBI calls
290 depends on !RISCV_M_MODE
291 default y
294 bool "MMU-based Paged Memory Management Support"
295 default y
297 Select if you want MMU-based virtualised addressing space
302 depends on KASAN_GENERIC
303 default 0xdfffffff00000000 if 64BIT
304 default 0xffffffff if 32BIT
311 depends on MMU
326 depends on BUG
346 default 0 if 32BIT
347 default 0xdead000000000000 if 64BIT
351 default 5 if 64BIT
352 default 2
368 This enables function pointer support for non-standard noncoherent
372 def_bool $(as-instr,.insn 0x100000f)
375 # https://github.com/llvm/llvm-project/commit/9e8ed3403c191ab9c4903e8eeb8f732ff8a43cb4
377 depends on $(as-instr, .option arch$(comma) +m)
385 bool "Allow configurations that result in non-portable kernels"
387 RISC-V kernel binaries are compatible between all known systems
401 default ARCH_RV64I
408 depends on NONPORTABLE
428 default CMODEL_MEDLOW if 32BIT
429 default CMODEL_MEDANY if 64BIT
442 bool "Symmetric Multi-Processing"
445 you say N here, the kernel will run on single and
448 on many, but not all, single processor machines. On a single
455 int "Maximum number of CPUs (2-512)"
456 depends on SMP
460 default "32" if 32BIT
461 default "64" if 64BIT
464 bool "Support for hot-pluggable CPUs"
465 depends on SMP
469 Say Y here to experiment with turning CPUs off and on. CPUs
476 default TUNE_GENERIC
486 depends on SMP && MMU
495 Enable NUMA (Non-Uniform Memory Access) support.
497 The kernel will try to allocate memory used by a CPU on the
503 default "2"
504 depends on NUMA
506 Specify the maximum number of NUMA Nodes available on the target
510 prompt "RISC-V spinlock type"
511 default RISCV_COMBO_SPINLOCKS
518 depends on SMP && MMU && NONPORTABLE
525 Select this if and only if Zabha or Ziccrse is available on your
534 depends on SMP && MMU
544 depends on !XIP_KERNEL
549 once at boot and once on each module load.
553 depends on RISCV_ALTERNATIVE
559 default y
563 Linux binary. This option produces a kernel that will not run on
570 depends on 64BIT
571 default y
581 depends on 64BIT && MMU
582 depends on RISCV_ALTERNATIVE
583 default y
585 Enable support for the Svnapot ISA-extension when it is detected
589 of contiguous virtual-to-physical translations for a naturally
590 aligned power-of-2 (NAPOT) granularity larger than the base 4KB page
599 bool "Svpbmt extension support for supervisor mode page-based memory types"
600 depends on 64BIT && MMU
601 depends on RISCV_ALTERNATIVE
602 default y
604 Add support for the Svpbmt ISA-extension (Supervisor-mode:
605 page-based memory types) in the kernel when it is detected at boot.
611 The Svpbmt extension is only available on 64-bit cpus.
617 default y
618 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64imv)
619 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32imv)
620 depends on LD_IS_LLD || LD_VERSION >= 23800
621 depends on AS_HAS_OPTION_ARCH
625 depends on TOOLCHAIN_HAS_V
626 depends on FPU
628 default y
637 bool "Enable userspace Vector by default"
638 depends on RISCV_ISA_V
639 default y
641 Say Y here if you want to enable Vector in userspace by default.
649 depends on RISCV_ISA_V
650 default 768
656 bool "Run kernel-mode Vector with kernel preemption"
657 depends on PREEMPTION
658 depends on RISCV_ISA_V
659 default y
661 Usually, in-kernel SIMD routines are run with preemption disabled.
667 due to the allocation of per-task's kernel Vector context.
671 depends on RISCV_ALTERNATIVE
672 default y
675 which allow a hart to enter a low-power state or to trap to the
676 hypervisor while waiting on a store to a memory location. Enable the
682 default y
683 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zabha)
684 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zabha)
685 depends on AS_HAS_OPTION_ARCH
689 depends on TOOLCHAIN_HAS_ZABHA
690 depends on RISCV_ALTERNATIVE
691 default y
693 Enable the use of the Zabha ISA-extension to implement kernel
700 default y
701 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zacas)
702 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zacas)
703 depends on AS_HAS_OPTION_ARCH
707 depends on RISCV_ALTERNATIVE
708 default y
710 Enable the use of the Zacas ISA-extension to implement kernel atomic
717 default y
718 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zbb)
719 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zbb)
720 depends on LD_IS_LLD || LD_VERSION >= 23900
721 depends on AS_HAS_OPTION_ARCH
727 def_bool $(as-instr, .option arch$(comma) +v$(comma) +zvkb)
728 depends on AS_HAS_OPTION_ARCH
732 default y
733 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zba)
734 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zba)
735 depends on LD_IS_LLD || LD_VERSION >= 23900
736 depends on AS_HAS_OPTION_ARCH
740 default y
752 depends on RISCV_ALTERNATIVE
753 default y
757 additionally depend on toolchain support for Zbb.
760 of bit-specific operations (count bit population, sign extending,
767 default y
768 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zbc)
769 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zbc)
770 depends on LD_IS_LLD || LD_VERSION >= 23900
771 depends on AS_HAS_OPTION_ARCH
774 bool "Zbc extension support for carry-less multiplication instructions"
775 depends on TOOLCHAIN_HAS_ZBC
776 depends on MMU
777 depends on RISCV_ALTERNATIVE
778 default y
781 extension (carry-less multiplication) and enable its usage.
790 default y
791 depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64ima_zbkb)
792 depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32ima_zbkb)
793 depends on LD_IS_LLD || LD_VERSION >= 23900
794 depends on AS_HAS_OPTION_ARCH
798 depends on TOOLCHAIN_HAS_ZBKB
799 depends on RISCV_ALTERNATIVE
800 default y
811 bool "Zicbom extension support for non-coherent DMA operation"
812 depends on MMU
813 depends on RISCV_ALTERNATIVE
814 default y
823 non-coherent DMA support on devices that need it.
829 depends on RISCV_ALTERNATIVE
830 default y
841 depends on MMU
842 depends on RISCV_ALTERNATIVE
843 default y
856 depends on MMU && 64BIT
857 depends on RISCV_ALTERNATIVE
858 default y
870 …# https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=aed44286efa8ae8717a77d94b51ac3614e2ca6…
872 depends on AS_IS_GNU && AS_VERSION >= 23600
874 Binutils-2.38 and GCC-12.1.0 bumped the default ISA spec to the newer
879 To make life easier, and avoid forcing toolchains that default to a
886 depends on TOOLCHAIN_NEEDS_EXPLICIT_ZICSR_ZIFENCEI
887 # https://github.com/llvm/llvm-project/commit/22e199e6afb1263c943c0c0d4498694e15bf8a16
889 depends on (CC_IS_CLANG && CLANG_VERSION < 170000) || (CC_IS_GCC && GCC_VERSION < 110300)
892 -march. This option causes an older ISA spec compatible with these older
894 as passing zicsr and zifencei to -march.
898 default y
908 default y
916 int "Kernel stack size (in power-of-two numbers of page size)" if VMAP_STACK && EXPERT
918 default 1 if 32BIT
919 default 2
940 depends on RISCV_ISA_V
946 default RISCV_PROBE_UNALIGNED_ACCESS
951 probed at boot by default.
959 the speed of unaligned accesses on the underlying system. If unaligned
975 depends on NONPORTABLE
978 kernel and userspace programs may not be able to run at all on systems
983 depends on NONPORTABLE
988 enabled, this option improves the performance of the kernel on such
990 slowly, or will not be able to run at all, on systems that do not
997 depends on RISCV_ISA_V
998 default RISCV_PROBE_VECTOR_UNALIGNED_ACCESS
1003 probed at boot by default.
1008 depends on RISCV_ISA_V
1012 will dynamically determine the speed of vector unaligned accesses on
1017 depends on NONPORTABLE
1020 kernel and userspace programs may not be able to run at all on systems
1025 depends on NONPORTABLE
1028 enabled, this option improves the performance of the kernel on such
1030 slowly, or will not be able to run at all, on systems that do not
1045 depends on RISCV_SBI
1048 deprecated in future once legacy M-mode software are no longer in use.
1052 depends on SMP
1053 default y if RISCV_SBI_V01 || RISCV_M_MODE
1057 gets chosen via lottery and all other keep spinning on a percpu
1059 scheme. It should be only enabled for M-mode Linux or platforms relying
1060 on older firmware without SBI HSM extension. All other platforms should
1061 rely on ordered booting via SBI HSM extension which gets chosen
1075 depends on KEXEC
1083 depends on KEXEC_FILE
1100 bool "Kernel support for 32-bit U-mode"
1101 default 64BIT
1102 depends on 64BIT && MMU
1104 This option enables support for a 32-bit U-mode running under a 64-bit
1105 kernel at S-mode. riscv32-specific components such as system calls,
1109 If you want to execute 32-bit userspace applications, say Y.
1113 depends on RISCV_SBI
1121 depends on PARAVIRT
1132 depends on !XIP_KERNEL
1149 depends on MMU && 64BIT && !XIP_KERNEL
1153 relying on knowledge of the location of kernel internals.
1156 random u64 value in /chosen/kaslr-seed at kernel entry.
1170 string "Built-in kernel command line"
1173 are provided at run-time, during boot. However, there are cases
1177 When that occurs, it is possible to define a built-in command
1178 line here and choose how the kernel should use it later on.
1181 prompt "Built-in command line usage"
1182 depends on CMDLINE != ""
1183 default CMDLINE_FALLBACK
1185 Choose how the kernel will handle the provided built-in command
1191 Use the built-in command line as fallback in case we get nothing
1192 during boot. This is the default behaviour.
1197 The built-in command line will be appended to the command-
1203 bool "Always use the default kernel command string"
1205 Always use the built-in command line, even if we get one during
1207 command line on systems where you don't have or want control
1217 depends on OF && !XIP_KERNEL
1218 depends on MMU
1219 default y
1230 by UEFI firmware (such as non-volatile variables, realtime
1233 is only useful on systems that have UEFI firmware.
1237 depends on EFI
1238 default y
1242 This option is only useful on systems that have UEFI firmware.
1244 continue to boot on existing non-UEFI platforms.
1247 …def_bool $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=tp -mstack-protector-
1251 depends on !RANDSTRUCT
1252 depends on STACKPROTECTOR && CC_HAVE_STACKPROTECTOR_TLS
1256 depends on NONPORTABLE
1257 default n
1261 depends on PHYS_RAM_BASE_FIXED
1262 default "0x80000000"
1265 explicitly specified to run early relocations of read-write data
1269 bool "Kernel Execute-In-Place from ROM"
1270 depends on MMU && SPARSEMEM && NONPORTABLE
1273 depends on !COMPILE_TEST
1276 Execute-In-Place allows the kernel to run from non-volatile storage
1279 to RAM. Read-write sections, such as the data section and stack,
1285 store the kernel image depending on your own flash memory usage.
1293 a struct page on those regions will trigger a fault.
1299 depends on XIP_KERNEL
1300 default "0x21000000"
1303 be linked for and stored to. This address is dependent on your
1307 bool "Permit falling back to parsing riscv,isa for extension support by default"
1308 default y
1319 Please see the dt-binding, located at
1321 on the replacement properties, "riscv,isa-base" and
1322 "riscv,isa-extensions".
1325 bool "Built-in device tree"
1326 depends on OF && NONPORTABLE
1335 string "Built-in device tree source"
1336 depends on BUILTIN_DTB
1346 default !NONPORTABLE