From: Palmer Dabbelt Date: Fri, 1 Jul 2022 02:18:51 +0000 (-0700) Subject: riscv: Kconfig: Style cleanups X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=54f0f3b298e21ca9a5684aa120e6bcf70e66f0c5;p=linux.git riscv: Kconfig: Style cleanups The majority of the Kconfig files use a single tab for basic indentation and a single tab followed by two whitespaces for help text indentation. Fix the lines that don't follow this convention. While at it, add trailing comments to endif/endmenu statements for better readability. * 'riscv-kconfig_cleanups' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/palmer/linux: riscv: Kconfig.socs: Add comments riscv: Kconfig.erratas: Add comments riscv: Kconfig: Fix indentation and add comments --- 54f0f3b298e21ca9a5684aa120e6bcf70e66f0c5 diff --cc arch/riscv/Kconfig index 32ffef9f6e5b4,4507847d7c9c5..b17fd4666b0c6 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@@ -352,30 -328,12 +352,30 @@@ config RISCV_ISA_ bool "Emit compressed instructions when building Linux" default y help - Adds "C" to the ISA subsets that the toolchain is allowed to emit - when building Linux, which results in compressed instructions in the - Linux binary. + Adds "C" to the ISA subsets that the toolchain is allowed to emit + when building Linux, which results in compressed instructions in the + Linux binary. - If you don't know what to do here, say Y. + If you don't know what to do here, say Y. +config RISCV_ISA_SVPBMT + bool "SVPBMT extension support" + depends on 64BIT && MMU + select RISCV_ALTERNATIVE + default y + help + Adds support to dynamically detect the presence of the SVPBMT + ISA-extension (Supervisor-mode: page-based memory types) and + enable its usage. + + The memory type for a page contains a combination of attributes + that indicate the cacheability, idempotency, and ordering + properties for access to that page. + + The SVPBMT extension is only available on 64Bit cpus. + + If you don't know what to do here, say Y. + config FPU bool "FPU support" default y @@@ -462,19 -394,7 +462,19 @@@ config CRASH_DUM For more details see Documentation/admin-guide/kdump/kdump.rst +config COMPAT + bool "Kernel support for 32-bit U-mode" + default 64BIT + depends on 64BIT && MMU + help + This option enables support for a 32-bit U-mode running under a 64-bit + kernel at S-mode. riscv32-specific components such as system calls, + the user helper functions (vdso), signal rt_frame functions and the + ptrace interface are handled appropriately by the kernel. + + If you want to execute 32-bit userspace applications, say Y. + - endmenu + endmenu # "Kernel features" menu "Boot options" diff --cc arch/riscv/Kconfig.erratas index 457ac72c9b36d,076005c5dad59..f62b62807e853 --- a/arch/riscv/Kconfig.erratas +++ b/arch/riscv/Kconfig.erratas @@@ -33,26 -42,4 +33,26 @@@ config ERRATA_SIFIVE_CIP_120 If you don't know what to do here, say "Y". +config ERRATA_THEAD + bool "T-HEAD errata" + depends on !XIP_KERNEL + select RISCV_ALTERNATIVE + help + All T-HEAD errata Kconfig depend on this Kconfig. Disabling + this Kconfig will disable all T-HEAD errata. Please say "Y" + here if your platform uses T-HEAD CPU cores. + + Otherwise, please say "N" here to avoid unnecessary overhead. + +config ERRATA_THEAD_PBMT + bool "Apply T-Head memory type errata" + depends on ERRATA_THEAD && 64BIT + select RISCV_ALTERNATIVE_EARLY + default y + help + This will apply the memory type errata to handle the non-standard + memory type bits in page-table-entries on T-Head SoCs. + + If you don't know what to do here, say "Y". + - endmenu + endmenu # "CPU errata selection"