mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08:00
902861e34c
from hotplugged memory rather than only from main memory. Series "implement "memmap on memory" feature on s390". - More folio conversions from Matthew Wilcox in the series "Convert memcontrol charge moving to use folios" "mm: convert mm counter to take a folio" - Chengming Zhou has optimized zswap's rbtree locking, providing significant reductions in system time and modest but measurable reductions in overall runtimes. The series is "mm/zswap: optimize the scalability of zswap rb-tree". - Chengming Zhou has also provided the series "mm/zswap: optimize zswap lru list" which provides measurable runtime benefits in some swap-intensive situations. - And Chengming Zhou further optimizes zswap in the series "mm/zswap: optimize for dynamic zswap_pools". Measured improvements are modest. - zswap cleanups and simplifications from Yosry Ahmed in the series "mm: zswap: simplify zswap_swapoff()". - In the series "Add DAX ABI for memmap_on_memory", Vishal Verma has contributed several DAX cleanups as well as adding a sysfs tunable to control the memmap_on_memory setting when the dax device is hotplugged as system memory. - Johannes Weiner has added the large series "mm: zswap: cleanups", which does that. - More DAMON work from SeongJae Park in the series "mm/damon: make DAMON debugfs interface deprecation unignorable" "selftests/damon: add more tests for core functionalities and corner cases" "Docs/mm/damon: misc readability improvements" "mm/damon: let DAMOS feeds and tame/auto-tune itself" - In the series "mm/mempolicy: weighted interleave mempolicy and sysfs extension" Rakie Kim has developed a new mempolicy interleaving policy wherein we allocate memory across nodes in a weighted fashion rather than uniformly. This is beneficial in heterogeneous memory environments appearing with CXL. - Christophe Leroy has contributed some cleanup and consolidation work against the ARM pagetable dumping code in the series "mm: ptdump: Refactor CONFIG_DEBUG_WX and check_wx_pages debugfs attribute". - Luis Chamberlain has added some additional xarray selftesting in the series "test_xarray: advanced API multi-index tests". - Muhammad Usama Anjum has reworked the selftest code to make its human-readable output conform to the TAP ("Test Anything Protocol") format. Amongst other things, this opens up the use of third-party tools to parse and process out selftesting results. - Ryan Roberts has added fork()-time PTE batching of THP ptes in the series "mm/memory: optimize fork() with PTE-mapped THP". Mainly targeted at arm64, this significantly speeds up fork() when the process has a large number of pte-mapped folios. - David Hildenbrand also gets in on the THP pte batching game in his series "mm/memory: optimize unmap/zap with PTE-mapped THP". It implements batching during munmap() and other pte teardown situations. The microbenchmark improvements are nice. - And in the series "Transparent Contiguous PTEs for User Mappings" Ryan Roberts further utilizes arm's pte's contiguous bit ("contpte mappings"). Kernel build times on arm64 improved nicely. Ryan's series "Address some contpte nits" provides some followup work. - In the series "mm/hugetlb: Restore the reservation" Breno Leitao has fixed an obscure hugetlb race which was causing unnecessary page faults. He has also added a reproducer under the selftest code. - In the series "selftests/mm: Output cleanups for the compaction test", Mark Brown did what the title claims. - Kinsey Ho has added the series "mm/mglru: code cleanup and refactoring". - Even more zswap material from Nhat Pham. The series "fix and extend zswap kselftests" does as claimed. - In the series "Introduce cpu_dcache_is_aliasing() to fix DAX regression" Mathieu Desnoyers has cleaned up and fixed rather a mess in our handling of DAX on archiecctures which have virtually aliasing data caches. The arm architecture is the main beneficiary. - Lokesh Gidra's series "per-vma locks in userfaultfd" provides dramatic improvements in worst-case mmap_lock hold times during certain userfaultfd operations. - Some page_owner enhancements and maintenance work from Oscar Salvador in his series "page_owner: print stacks and their outstanding allocations" "page_owner: Fixup and cleanup" - Uladzislau Rezki has contributed some vmalloc scalability improvements in his series "Mitigate a vmap lock contention". It realizes a 12x improvement for a certain microbenchmark. - Some kexec/crash cleanup work from Baoquan He in the series "Split crash out from kexec and clean up related config items". - Some zsmalloc maintenance work from Chengming Zhou in the series "mm/zsmalloc: fix and optimize objects/page migration" "mm/zsmalloc: some cleanup for get/set_zspage_mapping()" - Zi Yan has taught the MM to perform compaction on folios larger than order=0. This a step along the path to implementaton of the merging of large anonymous folios. The series is named "Enable >0 order folio memory compaction". - Christoph Hellwig has done quite a lot of cleanup work in the pagecache writeback code in his series "convert write_cache_pages() to an iterator". - Some modest hugetlb cleanups and speedups in Vishal Moola's series "Handle hugetlb faults under the VMA lock". - Zi Yan has changed the page splitting code so we can split huge pages into sizes other than order-0 to better utilize large folios. The series is named "Split a folio to any lower order folios". - David Hildenbrand has contributed the series "mm: remove total_mapcount()", a cleanup. - Matthew Wilcox has sought to improve the performance of bulk memory freeing in his series "Rearrange batched folio freeing". - Gang Li's series "hugetlb: parallelize hugetlb page init on boot" provides large improvements in bootup times on large machines which are configured to use large numbers of hugetlb pages. - Matthew Wilcox's series "PageFlags cleanups" does that. - Qi Zheng's series "minor fixes and supplement for ptdesc" does that also. S390 is affected. - Cleanups to our pagemap utility functions from Peter Xu in his series "mm/treewide: Replace pXd_large() with pXd_leaf()". - Nico Pache has fixed a few things with our hugepage selftests in his series "selftests/mm: Improve Hugepage Test Handling in MM Selftests". - Also, of course, many singleton patches to many things. Please see the individual changelogs for details. -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTTMBEPP41GrTpTJgfdBJ7gKXxAjgUCZfJpPQAKCRDdBJ7gKXxA joxeAP9TrcMEuHnLmBlhIXkWbIR4+ki+pA3v+gNTlJiBhnfVSgD9G55t1aBaRplx TMNhHfyiHYDTx/GAV9NXW84tasJSDgA= =TG55 -----END PGP SIGNATURE----- Merge tag 'mm-stable-2024-03-13-20-04' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Pull MM updates from Andrew Morton: - Sumanth Korikkar has taught s390 to allocate hotplug-time page frames from hotplugged memory rather than only from main memory. Series "implement "memmap on memory" feature on s390". - More folio conversions from Matthew Wilcox in the series "Convert memcontrol charge moving to use folios" "mm: convert mm counter to take a folio" - Chengming Zhou has optimized zswap's rbtree locking, providing significant reductions in system time and modest but measurable reductions in overall runtimes. The series is "mm/zswap: optimize the scalability of zswap rb-tree". - Chengming Zhou has also provided the series "mm/zswap: optimize zswap lru list" which provides measurable runtime benefits in some swap-intensive situations. - And Chengming Zhou further optimizes zswap in the series "mm/zswap: optimize for dynamic zswap_pools". Measured improvements are modest. - zswap cleanups and simplifications from Yosry Ahmed in the series "mm: zswap: simplify zswap_swapoff()". - In the series "Add DAX ABI for memmap_on_memory", Vishal Verma has contributed several DAX cleanups as well as adding a sysfs tunable to control the memmap_on_memory setting when the dax device is hotplugged as system memory. - Johannes Weiner has added the large series "mm: zswap: cleanups", which does that. - More DAMON work from SeongJae Park in the series "mm/damon: make DAMON debugfs interface deprecation unignorable" "selftests/damon: add more tests for core functionalities and corner cases" "Docs/mm/damon: misc readability improvements" "mm/damon: let DAMOS feeds and tame/auto-tune itself" - In the series "mm/mempolicy: weighted interleave mempolicy and sysfs extension" Rakie Kim has developed a new mempolicy interleaving policy wherein we allocate memory across nodes in a weighted fashion rather than uniformly. This is beneficial in heterogeneous memory environments appearing with CXL. - Christophe Leroy has contributed some cleanup and consolidation work against the ARM pagetable dumping code in the series "mm: ptdump: Refactor CONFIG_DEBUG_WX and check_wx_pages debugfs attribute". - Luis Chamberlain has added some additional xarray selftesting in the series "test_xarray: advanced API multi-index tests". - Muhammad Usama Anjum has reworked the selftest code to make its human-readable output conform to the TAP ("Test Anything Protocol") format. Amongst other things, this opens up the use of third-party tools to parse and process out selftesting results. - Ryan Roberts has added fork()-time PTE batching of THP ptes in the series "mm/memory: optimize fork() with PTE-mapped THP". Mainly targeted at arm64, this significantly speeds up fork() when the process has a large number of pte-mapped folios. - David Hildenbrand also gets in on the THP pte batching game in his series "mm/memory: optimize unmap/zap with PTE-mapped THP". It implements batching during munmap() and other pte teardown situations. The microbenchmark improvements are nice. - And in the series "Transparent Contiguous PTEs for User Mappings" Ryan Roberts further utilizes arm's pte's contiguous bit ("contpte mappings"). Kernel build times on arm64 improved nicely. Ryan's series "Address some contpte nits" provides some followup work. - In the series "mm/hugetlb: Restore the reservation" Breno Leitao has fixed an obscure hugetlb race which was causing unnecessary page faults. He has also added a reproducer under the selftest code. - In the series "selftests/mm: Output cleanups for the compaction test", Mark Brown did what the title claims. - Kinsey Ho has added the series "mm/mglru: code cleanup and refactoring". - Even more zswap material from Nhat Pham. The series "fix and extend zswap kselftests" does as claimed. - In the series "Introduce cpu_dcache_is_aliasing() to fix DAX regression" Mathieu Desnoyers has cleaned up and fixed rather a mess in our handling of DAX on archiecctures which have virtually aliasing data caches. The arm architecture is the main beneficiary. - Lokesh Gidra's series "per-vma locks in userfaultfd" provides dramatic improvements in worst-case mmap_lock hold times during certain userfaultfd operations. - Some page_owner enhancements and maintenance work from Oscar Salvador in his series "page_owner: print stacks and their outstanding allocations" "page_owner: Fixup and cleanup" - Uladzislau Rezki has contributed some vmalloc scalability improvements in his series "Mitigate a vmap lock contention". It realizes a 12x improvement for a certain microbenchmark. - Some kexec/crash cleanup work from Baoquan He in the series "Split crash out from kexec and clean up related config items". - Some zsmalloc maintenance work from Chengming Zhou in the series "mm/zsmalloc: fix and optimize objects/page migration" "mm/zsmalloc: some cleanup for get/set_zspage_mapping()" - Zi Yan has taught the MM to perform compaction on folios larger than order=0. This a step along the path to implementaton of the merging of large anonymous folios. The series is named "Enable >0 order folio memory compaction". - Christoph Hellwig has done quite a lot of cleanup work in the pagecache writeback code in his series "convert write_cache_pages() to an iterator". - Some modest hugetlb cleanups and speedups in Vishal Moola's series "Handle hugetlb faults under the VMA lock". - Zi Yan has changed the page splitting code so we can split huge pages into sizes other than order-0 to better utilize large folios. The series is named "Split a folio to any lower order folios". - David Hildenbrand has contributed the series "mm: remove total_mapcount()", a cleanup. - Matthew Wilcox has sought to improve the performance of bulk memory freeing in his series "Rearrange batched folio freeing". - Gang Li's series "hugetlb: parallelize hugetlb page init on boot" provides large improvements in bootup times on large machines which are configured to use large numbers of hugetlb pages. - Matthew Wilcox's series "PageFlags cleanups" does that. - Qi Zheng's series "minor fixes and supplement for ptdesc" does that also. S390 is affected. - Cleanups to our pagemap utility functions from Peter Xu in his series "mm/treewide: Replace pXd_large() with pXd_leaf()". - Nico Pache has fixed a few things with our hugepage selftests in his series "selftests/mm: Improve Hugepage Test Handling in MM Selftests". - Also, of course, many singleton patches to many things. Please see the individual changelogs for details. * tag 'mm-stable-2024-03-13-20-04' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (435 commits) mm/zswap: remove the memcpy if acomp is not sleepable crypto: introduce: acomp_is_async to expose if comp drivers might sleep memtest: use {READ,WRITE}_ONCE in memory scanning mm: prohibit the last subpage from reusing the entire large folio mm: recover pud_leaf() definitions in nopmd case selftests/mm: skip the hugetlb-madvise tests on unmet hugepage requirements selftests/mm: skip uffd hugetlb tests with insufficient hugepages selftests/mm: dont fail testsuite due to a lack of hugepages mm/huge_memory: skip invalid debugfs new_order input for folio split mm/huge_memory: check new folio order when split a folio mm, vmscan: retry kswapd's priority loop with cache_trim_mode off on failure mm: add an explicit smp_wmb() to UFFDIO_CONTINUE mm: fix list corruption in put_pages_list mm: remove folio from deferred split list before uncharging it filemap: avoid unnecessary major faults in filemap_fault() mm,page_owner: drop unnecessary check mm,page_owner: check for null stack_record before bumping its refcount mm: swap: fix race between free_swap_and_cache() and swapoff() mm/treewide: align up pXd_leaf() retval across archs mm/treewide: drop pXd_large() ...
566 lines
15 KiB
Plaintext
566 lines
15 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
|
|
#
|
|
|
|
config ARC
|
|
def_bool y
|
|
select ARC_TIMERS
|
|
select ARCH_HAS_CPU_CACHE_ALIASING
|
|
select ARCH_HAS_CACHE_LINE_SIZE
|
|
select ARCH_HAS_DEBUG_VM_PGTABLE
|
|
select ARCH_HAS_DMA_PREP_COHERENT
|
|
select ARCH_HAS_PTE_SPECIAL
|
|
select ARCH_HAS_SETUP_DMA_OPS
|
|
select ARCH_HAS_SYNC_DMA_FOR_CPU
|
|
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
|
|
select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC
|
|
select ARCH_32BIT_OFF_T
|
|
select BUILDTIME_TABLE_SORT
|
|
select CLONE_BACKWARDS
|
|
select COMMON_CLK
|
|
select DMA_DIRECT_REMAP
|
|
select GENERIC_ATOMIC64 if !ISA_ARCV2 || !(ARC_HAS_LL64 && ARC_HAS_LLSC)
|
|
# for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
|
|
select GENERIC_IRQ_SHOW
|
|
select GENERIC_PCI_IOMAP
|
|
select GENERIC_PENDING_IRQ if SMP
|
|
select GENERIC_SCHED_CLOCK
|
|
select GENERIC_SMP_IDLE_THREAD
|
|
select GENERIC_IOREMAP
|
|
select GENERIC_STRNCPY_FROM_USER if MMU
|
|
select GENERIC_STRNLEN_USER if MMU
|
|
select HAVE_ARCH_KGDB
|
|
select HAVE_ARCH_TRACEHOOK
|
|
select HAVE_ARCH_TRANSPARENT_HUGEPAGE if ARC_MMU_V4
|
|
select HAVE_DEBUG_STACKOVERFLOW
|
|
select HAVE_DEBUG_KMEMLEAK
|
|
select HAVE_IOREMAP_PROT
|
|
select HAVE_KERNEL_GZIP
|
|
select HAVE_KERNEL_LZMA
|
|
select HAVE_KPROBES
|
|
select HAVE_KRETPROBES
|
|
select HAVE_REGS_AND_STACK_ACCESS_API
|
|
select HAVE_MOD_ARCH_SPECIFIC
|
|
select HAVE_PERF_EVENTS
|
|
select HAVE_SYSCALL_TRACEPOINTS
|
|
select IRQ_DOMAIN
|
|
select LOCK_MM_AND_FIND_VMA
|
|
select MODULES_USE_ELF_RELA
|
|
select OF
|
|
select OF_EARLY_FLATTREE
|
|
select PCI_SYSCALL if PCI
|
|
select HAVE_ARCH_JUMP_LABEL if ISA_ARCV2 && !CPU_ENDIAN_BE32
|
|
select TRACE_IRQFLAGS_SUPPORT
|
|
|
|
config LOCKDEP_SUPPORT
|
|
def_bool y
|
|
|
|
config SCHED_OMIT_FRAME_POINTER
|
|
def_bool y
|
|
|
|
config GENERIC_CSUM
|
|
def_bool y
|
|
|
|
config ARCH_FLATMEM_ENABLE
|
|
def_bool y
|
|
|
|
config MMU
|
|
def_bool y
|
|
|
|
config NO_IOPORT_MAP
|
|
def_bool y
|
|
|
|
config GENERIC_CALIBRATE_DELAY
|
|
def_bool y
|
|
|
|
config GENERIC_HWEIGHT
|
|
def_bool y
|
|
|
|
config STACKTRACE_SUPPORT
|
|
def_bool y
|
|
select STACKTRACE
|
|
|
|
menu "ARC Architecture Configuration"
|
|
|
|
menu "ARC Platform/SoC/Board"
|
|
|
|
source "arch/arc/plat-tb10x/Kconfig"
|
|
source "arch/arc/plat-axs10x/Kconfig"
|
|
source "arch/arc/plat-hsdk/Kconfig"
|
|
|
|
endmenu
|
|
|
|
choice
|
|
prompt "ARC Instruction Set"
|
|
default ISA_ARCV2
|
|
|
|
config ISA_ARCOMPACT
|
|
bool "ARCompact ISA"
|
|
select CPU_NO_EFFICIENT_FFS
|
|
help
|
|
The original ARC ISA of ARC600/700 cores
|
|
|
|
config ISA_ARCV2
|
|
bool "ARC ISA v2"
|
|
select ARC_TIMERS_64BIT
|
|
help
|
|
ISA for the Next Generation ARC-HS cores
|
|
|
|
endchoice
|
|
|
|
menu "ARC CPU Configuration"
|
|
|
|
choice
|
|
prompt "ARC Core"
|
|
default ARC_CPU_770 if ISA_ARCOMPACT
|
|
default ARC_CPU_HS if ISA_ARCV2
|
|
|
|
config ARC_CPU_770
|
|
bool "ARC770"
|
|
depends on ISA_ARCOMPACT
|
|
select ARC_HAS_SWAPE
|
|
help
|
|
Support for ARC770 core introduced with Rel 4.10 (Summer 2011)
|
|
This core has a bunch of cool new features:
|
|
-MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4)
|
|
Shared Address Spaces (for sharing TLB entries in MMU)
|
|
-Caches: New Prog Model, Region Flush
|
|
-Insns: endian swap, load-locked/store-conditional, time-stamp-ctr
|
|
|
|
config ARC_CPU_HS
|
|
bool "ARC-HS"
|
|
depends on ISA_ARCV2
|
|
help
|
|
Support for ARC HS38x Cores based on ARCv2 ISA
|
|
The notable features are:
|
|
- SMP configurations of up to 4 cores with coherency
|
|
- Optional L2 Cache and IO-Coherency
|
|
- Revised Interrupt Architecture (multiple priorites, reg banks,
|
|
auto stack switch, auto regfile save/restore)
|
|
- MMUv4 (PIPT dcache, Huge Pages)
|
|
- Instructions for
|
|
* 64bit load/store: LDD, STD
|
|
* Hardware assisted divide/remainder: DIV, REM
|
|
* Function prologue/epilogue: ENTER_S, LEAVE_S
|
|
* IRQ enable/disable: CLRI, SETI
|
|
* pop count: FFS, FLS
|
|
* SETcc, BMSKN, XBFU...
|
|
|
|
endchoice
|
|
|
|
config ARC_TUNE_MCPU
|
|
string "Override default -mcpu compiler flag"
|
|
default ""
|
|
help
|
|
Override default -mcpu=xxx compiler flag (which is set depending on
|
|
the ISA version) with the specified value.
|
|
NOTE: If specified flag isn't supported by current compiler the
|
|
ISA default value will be used as a fallback.
|
|
|
|
config CPU_BIG_ENDIAN
|
|
bool "Enable Big Endian Mode"
|
|
help
|
|
Build kernel for Big Endian Mode of ARC CPU
|
|
|
|
config SMP
|
|
bool "Symmetric Multi-Processing"
|
|
select ARC_MCIP if ISA_ARCV2
|
|
help
|
|
This enables support for systems with more than one CPU.
|
|
|
|
if SMP
|
|
|
|
config NR_CPUS
|
|
int "Maximum number of CPUs (2-4096)"
|
|
range 2 4096
|
|
default "4"
|
|
|
|
config ARC_SMP_HALT_ON_RESET
|
|
bool "Enable Halt-on-reset boot mode"
|
|
help
|
|
In SMP configuration cores can be configured as Halt-on-reset
|
|
or they could all start at same time. For Halt-on-reset, non
|
|
masters are parked until Master kicks them so they can start off
|
|
at designated entry point. For other case, all jump to common
|
|
entry point and spin wait for Master's signal.
|
|
|
|
endif #SMP
|
|
|
|
config ARC_MCIP
|
|
bool "ARConnect Multicore IP (MCIP) Support "
|
|
depends on ISA_ARCV2
|
|
default y if SMP
|
|
help
|
|
This IP block enables SMP in ARC-HS38 cores.
|
|
It provides for cross-core interrupts, multi-core debug
|
|
hardware semaphores, shared memory,....
|
|
|
|
menuconfig ARC_CACHE
|
|
bool "Enable Cache Support"
|
|
default y
|
|
|
|
if ARC_CACHE
|
|
|
|
config ARC_CACHE_LINE_SHIFT
|
|
int "Cache Line Length (as power of 2)"
|
|
range 5 7
|
|
default "6"
|
|
help
|
|
Starting with ARC700 4.9, Cache line length is configurable,
|
|
This option specifies "N", with Line-len = 2 power N
|
|
So line lengths of 32, 64, 128 are specified by 5,6,7, respectively
|
|
Linux only supports same line lengths for I and D caches.
|
|
|
|
config ARC_HAS_ICACHE
|
|
bool "Use Instruction Cache"
|
|
default y
|
|
|
|
config ARC_HAS_DCACHE
|
|
bool "Use Data Cache"
|
|
default y
|
|
|
|
config ARC_CACHE_PAGES
|
|
bool "Per Page Cache Control"
|
|
default y
|
|
depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE
|
|
help
|
|
This can be used to over-ride the global I/D Cache Enable on a
|
|
per-page basis (but only for pages accessed via MMU such as
|
|
Kernel Virtual address or User Virtual Address)
|
|
TLB entries have a per-page Cache Enable Bit.
|
|
Note that Global I/D ENABLE + Per Page DISABLE works but corollary
|
|
Global DISABLE + Per Page ENABLE won't work
|
|
|
|
endif #ARC_CACHE
|
|
|
|
config ARC_HAS_ICCM
|
|
bool "Use ICCM"
|
|
help
|
|
Single Cycle RAMS to store Fast Path Code
|
|
|
|
config ARC_ICCM_SZ
|
|
int "ICCM Size in KB"
|
|
default "64"
|
|
depends on ARC_HAS_ICCM
|
|
|
|
config ARC_HAS_DCCM
|
|
bool "Use DCCM"
|
|
help
|
|
Single Cycle RAMS to store Fast Path Data
|
|
|
|
config ARC_DCCM_SZ
|
|
int "DCCM Size in KB"
|
|
default "64"
|
|
depends on ARC_HAS_DCCM
|
|
|
|
config ARC_DCCM_BASE
|
|
hex "DCCM map address"
|
|
default "0xA0000000"
|
|
depends on ARC_HAS_DCCM
|
|
|
|
choice
|
|
prompt "MMU Version"
|
|
default ARC_MMU_V3 if ISA_ARCOMPACT
|
|
default ARC_MMU_V4 if ISA_ARCV2
|
|
|
|
config ARC_MMU_V3
|
|
bool "MMU v3"
|
|
depends on ISA_ARCOMPACT
|
|
help
|
|
Introduced with ARC700 4.10: New Features
|
|
Variable Page size (1k-16k), var JTLB size 128 x (2 or 4)
|
|
Shared Address Spaces (SASID)
|
|
|
|
config ARC_MMU_V4
|
|
bool "MMU v4"
|
|
depends on ISA_ARCV2
|
|
|
|
endchoice
|
|
|
|
|
|
choice
|
|
prompt "MMU Page Size"
|
|
default ARC_PAGE_SIZE_8K
|
|
|
|
config ARC_PAGE_SIZE_8K
|
|
bool "8KB"
|
|
select HAVE_PAGE_SIZE_8KB
|
|
help
|
|
Choose between 8k vs 16k
|
|
|
|
config ARC_PAGE_SIZE_16K
|
|
select HAVE_PAGE_SIZE_16KB
|
|
bool "16KB"
|
|
|
|
config ARC_PAGE_SIZE_4K
|
|
bool "4KB"
|
|
select HAVE_PAGE_SIZE_4KB
|
|
depends on ARC_MMU_V3 || ARC_MMU_V4
|
|
|
|
endchoice
|
|
|
|
choice
|
|
prompt "MMU Super Page Size"
|
|
depends on ISA_ARCV2 && TRANSPARENT_HUGEPAGE
|
|
default ARC_HUGEPAGE_2M
|
|
|
|
config ARC_HUGEPAGE_2M
|
|
bool "2MB"
|
|
|
|
config ARC_HUGEPAGE_16M
|
|
bool "16MB"
|
|
|
|
endchoice
|
|
|
|
config PGTABLE_LEVELS
|
|
int "Number of Page table levels"
|
|
default 2
|
|
|
|
config ARC_COMPACT_IRQ_LEVELS
|
|
depends on ISA_ARCOMPACT
|
|
bool "Setup Timer IRQ as high Priority"
|
|
# if SMP, LV2 enabled ONLY if ARC implementation has LV2 re-entrancy
|
|
depends on !SMP
|
|
|
|
config ARC_FPU_SAVE_RESTORE
|
|
bool "Enable FPU state persistence across context switch"
|
|
help
|
|
ARCompact FPU has internal registers to assist with Double precision
|
|
Floating Point operations. There are control and stauts registers
|
|
for floating point exceptions and rounding modes. These are
|
|
preserved across task context switch when enabled.
|
|
|
|
config ARC_CANT_LLSC
|
|
def_bool n
|
|
|
|
config ARC_HAS_LLSC
|
|
bool "Insn: LLOCK/SCOND (efficient atomic ops)"
|
|
default y
|
|
depends on !ARC_CANT_LLSC
|
|
|
|
config ARC_HAS_SWAPE
|
|
bool "Insn: SWAPE (endian-swap)"
|
|
default y
|
|
|
|
if ISA_ARCV2
|
|
|
|
config ARC_USE_UNALIGNED_MEM_ACCESS
|
|
bool "Enable unaligned access in HW"
|
|
default y
|
|
select HAVE_EFFICIENT_UNALIGNED_ACCESS
|
|
help
|
|
The ARC HS architecture supports unaligned memory access
|
|
which is disabled by default. Enable unaligned access in
|
|
hardware and use software to use it
|
|
|
|
config ARC_HAS_LL64
|
|
bool "Insn: 64bit LDD/STD"
|
|
help
|
|
Enable gcc to generate 64-bit load/store instructions
|
|
ISA mandates even/odd registers to allow encoding of two
|
|
dest operands with 2 possible source operands.
|
|
default y
|
|
|
|
config ARC_HAS_DIV_REM
|
|
bool "Insn: div, divu, rem, remu"
|
|
default y
|
|
|
|
config ARC_HAS_ACCL_REGS
|
|
bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6 and/or DSP)"
|
|
default y
|
|
help
|
|
Depending on the configuration, CPU can contain accumulator reg-pair
|
|
(also referred to as r58:r59). These can also be used by gcc as GPR so
|
|
kernel needs to save/restore per process
|
|
|
|
config ARC_DSP_HANDLED
|
|
def_bool n
|
|
|
|
config ARC_DSP_SAVE_RESTORE_REGS
|
|
def_bool n
|
|
|
|
choice
|
|
prompt "DSP support"
|
|
default ARC_DSP_NONE
|
|
help
|
|
Depending on the configuration, CPU can contain DSP registers
|
|
(ACC0_GLO, ACC0_GHI, DSP_BFLY0, DSP_CTRL, DSP_FFT_CTRL).
|
|
Below are options describing how to handle these registers in
|
|
interrupt entry / exit and in context switch.
|
|
|
|
config ARC_DSP_NONE
|
|
bool "No DSP extension presence in HW"
|
|
help
|
|
No DSP extension presence in HW
|
|
|
|
config ARC_DSP_KERNEL
|
|
bool "DSP extension in HW, no support for userspace"
|
|
select ARC_HAS_ACCL_REGS
|
|
select ARC_DSP_HANDLED
|
|
help
|
|
DSP extension presence in HW, no support for DSP-enabled userspace
|
|
applications. We don't save / restore DSP registers and only do
|
|
some minimal preparations so userspace won't be able to break kernel
|
|
|
|
config ARC_DSP_USERSPACE
|
|
bool "Support DSP for userspace apps"
|
|
select ARC_HAS_ACCL_REGS
|
|
select ARC_DSP_HANDLED
|
|
select ARC_DSP_SAVE_RESTORE_REGS
|
|
help
|
|
DSP extension presence in HW, support save / restore DSP registers to
|
|
run DSP-enabled userspace applications
|
|
|
|
config ARC_DSP_AGU_USERSPACE
|
|
bool "Support DSP with AGU for userspace apps"
|
|
select ARC_HAS_ACCL_REGS
|
|
select ARC_DSP_HANDLED
|
|
select ARC_DSP_SAVE_RESTORE_REGS
|
|
help
|
|
DSP and AGU extensions presence in HW, support save / restore DSP
|
|
and AGU registers to run DSP-enabled userspace applications
|
|
endchoice
|
|
|
|
config ARC_IRQ_NO_AUTOSAVE
|
|
bool "Disable hardware autosave regfile on interrupts"
|
|
default n
|
|
help
|
|
On HS cores, taken interrupt auto saves the regfile on stack.
|
|
This is programmable and can be optionally disabled in which case
|
|
software INTERRUPT_PROLOGUE/EPILGUE do the needed work
|
|
|
|
config ARC_LPB_DISABLE
|
|
bool "Disable loop buffer (LPB)"
|
|
help
|
|
On HS cores, loop buffer (LPB) is programmable in runtime and can
|
|
be optionally disabled.
|
|
|
|
endif # ISA_ARCV2
|
|
|
|
endmenu # "ARC CPU Configuration"
|
|
|
|
config LINUX_LINK_BASE
|
|
hex "Kernel link address"
|
|
default "0x80000000"
|
|
help
|
|
ARC700 divides the 32 bit phy address space into two equal halves
|
|
-Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU
|
|
-Upper 2G (0x8000_0000 onwards) is untranslated, for kernel
|
|
Typically Linux kernel is linked at the start of untransalted addr,
|
|
hence the default value of 0x8zs.
|
|
However some customers have peripherals mapped at this addr, so
|
|
Linux needs to be scooted a bit.
|
|
If you don't know what the above means, leave this setting alone.
|
|
This needs to match memory start address specified in Device Tree
|
|
|
|
config LINUX_RAM_BASE
|
|
hex "RAM base address"
|
|
default LINUX_LINK_BASE
|
|
help
|
|
By default Linux is linked at base of RAM. However in some special
|
|
cases (such as HSDK), Linux can't be linked at start of DDR, hence
|
|
this option.
|
|
|
|
config HIGHMEM
|
|
bool "High Memory Support"
|
|
select HAVE_ARCH_PFN_VALID
|
|
select KMAP_LOCAL
|
|
help
|
|
With ARC 2G:2G address split, only upper 2G is directly addressable by
|
|
kernel. Enable this to potentially allow access to rest of 2G and PAE
|
|
in future
|
|
|
|
config ARC_HAS_PAE40
|
|
bool "Support for the 40-bit Physical Address Extension"
|
|
depends on ISA_ARCV2
|
|
select HIGHMEM
|
|
select PHYS_ADDR_T_64BIT
|
|
help
|
|
Enable access to physical memory beyond 4G, only supported on
|
|
ARC cores with 40 bit Physical Addressing support
|
|
|
|
config ARC_KVADDR_SIZE
|
|
int "Kernel Virtual Address Space size (MB)"
|
|
range 0 512
|
|
default "256"
|
|
help
|
|
The kernel address space is carved out of 256MB of translated address
|
|
space for catering to vmalloc, modules, pkmap, fixmap. This however may
|
|
not suffice vmalloc requirements of a 4K CPU EZChip system. So allow
|
|
this to be stretched to 512 MB (by extending into the reserved
|
|
kernel-user gutter)
|
|
|
|
config ARC_CURR_IN_REG
|
|
bool "cache current task pointer in gp"
|
|
default y
|
|
help
|
|
This reserves gp register to point to Current Task in
|
|
kernel mode eliding memory access for each access
|
|
|
|
|
|
config ARC_EMUL_UNALIGNED
|
|
bool "Emulate unaligned memory access (userspace only)"
|
|
select SYSCTL_ARCH_UNALIGN_NO_WARN
|
|
select SYSCTL_ARCH_UNALIGN_ALLOW
|
|
depends on ISA_ARCOMPACT
|
|
help
|
|
This enables misaligned 16 & 32 bit memory access from user space.
|
|
Use ONLY-IF-ABS-NECESSARY as it will be very slow and also can hide
|
|
potential bugs in code
|
|
|
|
config HZ
|
|
int "Timer Frequency"
|
|
default 100
|
|
|
|
config ARC_METAWARE_HLINK
|
|
bool "Support for Metaware debugger assisted Host access"
|
|
help
|
|
This options allows a Linux userland apps to directly access
|
|
host file system (open/creat/read/write etc) with help from
|
|
Metaware Debugger. This can come in handy for Linux-host communication
|
|
when there is no real usable peripheral such as EMAC.
|
|
|
|
menuconfig ARC_DBG
|
|
bool "ARC debugging"
|
|
default y
|
|
|
|
if ARC_DBG
|
|
|
|
config ARC_DW2_UNWIND
|
|
bool "Enable DWARF specific kernel stack unwind"
|
|
default y
|
|
select KALLSYMS
|
|
help
|
|
Compiles the kernel with DWARF unwind information and can be used
|
|
to get stack backtraces.
|
|
|
|
If you say Y here the resulting kernel image will be slightly larger
|
|
but not slower, and it will give very useful debugging information.
|
|
If you don't debug the kernel, you can say N, but we may not be able
|
|
to solve problems without frame unwind information
|
|
|
|
config ARC_DBG_JUMP_LABEL
|
|
bool "Paranoid checks in Static Keys (jump labels) code"
|
|
depends on JUMP_LABEL
|
|
default y if STATIC_KEYS_SELFTEST
|
|
help
|
|
Enable paranoid checks and self-test of both ARC-specific and generic
|
|
part of static keys (jump labels) related code.
|
|
endif
|
|
|
|
config ARC_BUILTIN_DTB_NAME
|
|
string "Built in DTB"
|
|
help
|
|
Set the name of the DTB to embed in the vmlinux binary
|
|
Leaving it blank selects the minimal "skeleton" dtb
|
|
|
|
endmenu # "ARC Architecture Configuration"
|
|
|
|
config ARCH_FORCE_MAX_ORDER
|
|
int "Maximum zone order"
|
|
default "11" if ARC_HUGEPAGE_16M
|
|
default "10"
|
|
|
|
source "kernel/power/Kconfig"
|