1cad82448SPaul Mundtmenu "Memory management options" 2cad82448SPaul Mundt 35f8c9908SPaul Mundtconfig QUICKLIST 45f8c9908SPaul Mundt def_bool y 55f8c9908SPaul Mundt 6cad82448SPaul Mundtconfig MMU 7cad82448SPaul Mundt bool "Support for memory management hardware" 8cad82448SPaul Mundt depends on !CPU_SH2 9cad82448SPaul Mundt default y 10cad82448SPaul Mundt help 11cad82448SPaul Mundt Some SH processors (such as SH-2/SH-2A) lack an MMU. In order to 12cad82448SPaul Mundt boot on these systems, this option must not be set. 13cad82448SPaul Mundt 14cad82448SPaul Mundt On other systems (such as the SH-3 and 4) where an MMU exists, 15cad82448SPaul Mundt turning this off will boot the kernel on these machines with the 16cad82448SPaul Mundt MMU implicitly switched off. 17cad82448SPaul Mundt 18e7f93a35SPaul Mundtconfig PAGE_OFFSET 19e7f93a35SPaul Mundt hex 2036763b22SPaul Mundt default "0x80000000" if MMU && SUPERH32 2136763b22SPaul Mundt default "0x20000000" if MMU && SUPERH64 22e7f93a35SPaul Mundt default "0x00000000" 23e7f93a35SPaul Mundt 24ad3256e3SPaul Mundtconfig FORCE_MAX_ZONEORDER 25ad3256e3SPaul Mundt int "Maximum zone order" 26ad3256e3SPaul Mundt range 9 64 if PAGE_SIZE_16KB 27ad3256e3SPaul Mundt default "9" if PAGE_SIZE_16KB 28ad3256e3SPaul Mundt range 7 64 if PAGE_SIZE_64KB 29ad3256e3SPaul Mundt default "7" if PAGE_SIZE_64KB 30ad3256e3SPaul Mundt range 11 64 31ad3256e3SPaul Mundt default "14" if !MMU 32ad3256e3SPaul Mundt default "11" 33ad3256e3SPaul Mundt help 34ad3256e3SPaul Mundt The kernel memory allocator divides physically contiguous memory 35ad3256e3SPaul Mundt blocks into "zones", where each zone is a power of two number of 36ad3256e3SPaul Mundt pages. This option selects the largest power of two that the kernel 37ad3256e3SPaul Mundt keeps in the memory allocator. If you need to allocate very large 38ad3256e3SPaul Mundt blocks of physically contiguous memory, then you may need to 39ad3256e3SPaul Mundt increase this value. 40ad3256e3SPaul Mundt 41ad3256e3SPaul Mundt This config option is actually maximum order plus one. For example, 42ad3256e3SPaul Mundt a value of 11 means that the largest free memory block is 2^10 pages. 43ad3256e3SPaul Mundt 44ad3256e3SPaul Mundt The page size is not necessarily 4KB. Keep this in mind when 45ad3256e3SPaul Mundt choosing a value for this option. 46ad3256e3SPaul Mundt 47e7f93a35SPaul Mundtconfig MEMORY_START 48e7f93a35SPaul Mundt hex "Physical memory start address" 49e7f93a35SPaul Mundt default "0x08000000" 50e7f93a35SPaul Mundt ---help--- 51e7f93a35SPaul Mundt Computers built with Hitachi SuperH processors always 52e7f93a35SPaul Mundt map the ROM starting at address zero. But the processor 53e7f93a35SPaul Mundt does not specify the range that RAM takes. 54e7f93a35SPaul Mundt 55e7f93a35SPaul Mundt The physical memory (RAM) start address will be automatically 56e7f93a35SPaul Mundt set to 08000000. Other platforms, such as the Solution Engine 57e7f93a35SPaul Mundt boards typically map RAM at 0C000000. 58e7f93a35SPaul Mundt 59e7f93a35SPaul Mundt Tweak this only when porting to a new machine which does not 60e7f93a35SPaul Mundt already have a defconfig. Changing it from the known correct 61e7f93a35SPaul Mundt value on any of the known systems will only lead to disaster. 62e7f93a35SPaul Mundt 63e7f93a35SPaul Mundtconfig MEMORY_SIZE 64e7f93a35SPaul Mundt hex "Physical memory size" 65711fe436SPaul Mundt default "0x04000000" 66e7f93a35SPaul Mundt help 67e7f93a35SPaul Mundt This sets the default memory size assumed by your SH kernel. It can 68e7f93a35SPaul Mundt be overridden as normal by the 'mem=' argument on the kernel command 69e7f93a35SPaul Mundt line. If unsure, consult your board specifications or just leave it 70711fe436SPaul Mundt as 0x04000000 which was the default value before this became 71e7f93a35SPaul Mundt configurable. 72e7f93a35SPaul Mundt 7336bcd39dSPaul Mundt# Physical addressing modes 7436bcd39dSPaul Mundt 7536bcd39dSPaul Mundtconfig 29BIT 7636bcd39dSPaul Mundt def_bool !32BIT 7736bcd39dSPaul Mundt depends on SUPERH32 78b0f3ae03SPaul Mundt select UNCACHED_MAPPING 7936bcd39dSPaul Mundt 80cad82448SPaul Mundtconfig 32BIT 8136bcd39dSPaul Mundt bool 8236bcd39dSPaul Mundt default y if CPU_SH5 8336bcd39dSPaul Mundt 84a0ab3668SPaul Mundtconfig PMB 85cad82448SPaul Mundt bool "Support 32-bit physical addressing through PMB" 86b4e2a2a2SPaul Mundt depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP 87a0ab3668SPaul Mundt select 32BIT 88b0f3ae03SPaul Mundt select UNCACHED_MAPPING 89cad82448SPaul Mundt help 90cad82448SPaul Mundt If you say Y here, physical addressing will be extended to 91cad82448SPaul Mundt 32-bits through the SH-4A PMB. If this is not set, legacy 92cad82448SPaul Mundt 29-bit physical addressing will be used. 93cad82448SPaul Mundt 9421440cf0SPaul Mundtconfig X2TLB 95782bb5a5SPaul Mundt def_bool y 96782bb5a5SPaul Mundt depends on (CPU_SHX2 || CPU_SHX3) && MMU 9721440cf0SPaul Mundt 9819f9a34fSPaul Mundtconfig VSYSCALL 9919f9a34fSPaul Mundt bool "Support vsyscall page" 100a09063daSPaul Mundt depends on MMU && (CPU_SH3 || CPU_SH4) 10119f9a34fSPaul Mundt default y 10219f9a34fSPaul Mundt help 10319f9a34fSPaul Mundt This will enable support for the kernel mapping a vDSO page 10419f9a34fSPaul Mundt in process space, and subsequently handing down the entry point 10519f9a34fSPaul Mundt to the libc through the ELF auxiliary vector. 10619f9a34fSPaul Mundt 10719f9a34fSPaul Mundt From the kernel side this is used for the signal trampoline. 10819f9a34fSPaul Mundt For systems with an MMU that can afford to give up a page, 10919f9a34fSPaul Mundt (the default value) say Y. 11019f9a34fSPaul Mundt 111b241cb0cSPaul Mundtconfig NUMA 112b241cb0cSPaul Mundt bool "Non Uniform Memory Access (NUMA) Support" 113357d5946SPaul Mundt depends on MMU && SYS_SUPPORTS_NUMA && EXPERIMENTAL 114b241cb0cSPaul Mundt default n 115b241cb0cSPaul Mundt help 116b241cb0cSPaul Mundt Some SH systems have many various memories scattered around 117b241cb0cSPaul Mundt the address space, each with varying latencies. This enables 118b241cb0cSPaul Mundt support for these blocks by binding them to nodes and allowing 119b241cb0cSPaul Mundt memory policies to be used for prioritizing and controlling 120b241cb0cSPaul Mundt allocation behaviour. 121b241cb0cSPaul Mundt 12201066625SPaul Mundtconfig NODES_SHIFT 12301066625SPaul Mundt int 1249904494dSPaul Mundt default "3" if CPU_SUBTYPE_SHX3 12501066625SPaul Mundt default "1" 12601066625SPaul Mundt depends on NEED_MULTIPLE_NODES 12701066625SPaul Mundt 12801066625SPaul Mundtconfig ARCH_FLATMEM_ENABLE 12901066625SPaul Mundt def_bool y 130357d5946SPaul Mundt depends on !NUMA 13101066625SPaul Mundt 132dfbb9042SPaul Mundtconfig ARCH_SPARSEMEM_ENABLE 133dfbb9042SPaul Mundt def_bool y 134dfbb9042SPaul Mundt select SPARSEMEM_STATIC 135dfbb9042SPaul Mundt 136dfbb9042SPaul Mundtconfig ARCH_SPARSEMEM_DEFAULT 137dfbb9042SPaul Mundt def_bool y 138dfbb9042SPaul Mundt 1391ce7ddd5SPaul Mundtconfig MAX_ACTIVE_REGIONS 1401ce7ddd5SPaul Mundt int 1417da3b8efSPaul Mundt default "6" if (CPU_SUBTYPE_SHX3 && SPARSEMEM) 142dc47e9ddSPaul Mundt default "2" if SPARSEMEM && (CPU_SUBTYPE_SH7722 || \ 143dc47e9ddSPaul Mundt CPU_SUBTYPE_SH7785) 1441ce7ddd5SPaul Mundt default "1" 1451ce7ddd5SPaul Mundt 14601066625SPaul Mundtconfig ARCH_POPULATES_NODE_MAP 14701066625SPaul Mundt def_bool y 14801066625SPaul Mundt 149dfbb9042SPaul Mundtconfig ARCH_SELECT_MEMORY_MODEL 150dfbb9042SPaul Mundt def_bool y 151dfbb9042SPaul Mundt 15233d63bd8SPaul Mundtconfig ARCH_ENABLE_MEMORY_HOTPLUG 15333d63bd8SPaul Mundt def_bool y 154b85641bdSPaul Mundt depends on SPARSEMEM && MMU 15533d63bd8SPaul Mundt 1563159e7d6SPaul Mundtconfig ARCH_ENABLE_MEMORY_HOTREMOVE 1573159e7d6SPaul Mundt def_bool y 158b85641bdSPaul Mundt depends on SPARSEMEM && MMU 1593159e7d6SPaul Mundt 16033d63bd8SPaul Mundtconfig ARCH_MEMORY_PROBE 16133d63bd8SPaul Mundt def_bool y 16233d63bd8SPaul Mundt depends on MEMORY_HOTPLUG 16333d63bd8SPaul Mundt 1644d35b93aSMatt Flemingconfig IOREMAP_FIXED 1654d35b93aSMatt Fleming def_bool y 1664d35b93aSMatt Fleming depends on X2TLB || SUPERH64 1674d35b93aSMatt Fleming 168b0f3ae03SPaul Mundtconfig UNCACHED_MAPPING 169b0f3ae03SPaul Mundt bool 170b0f3ae03SPaul Mundt 171*c993487eSPaul Mundtconfig HAVE_SRAM_POOL 172*c993487eSPaul Mundt bool 173*c993487eSPaul Mundt select GENERIC_ALLOCATOR 174*c993487eSPaul Mundt 175cad82448SPaul Mundtchoice 17621440cf0SPaul Mundt prompt "Kernel page size" 17721440cf0SPaul Mundt default PAGE_SIZE_4KB 17821440cf0SPaul Mundt 17921440cf0SPaul Mundtconfig PAGE_SIZE_4KB 18021440cf0SPaul Mundt bool "4kB" 18121440cf0SPaul Mundt help 18221440cf0SPaul Mundt This is the default page size used by all SuperH CPUs. 18321440cf0SPaul Mundt 18421440cf0SPaul Mundtconfig PAGE_SIZE_8KB 18521440cf0SPaul Mundt bool "8kB" 1863f5ab768SMatt Fleming depends on !MMU || X2TLB 18721440cf0SPaul Mundt help 18821440cf0SPaul Mundt This enables 8kB pages as supported by SH-X2 and later MMUs. 18921440cf0SPaul Mundt 19066dfe181SPaul Mundtconfig PAGE_SIZE_16KB 19166dfe181SPaul Mundt bool "16kB" 19266dfe181SPaul Mundt depends on !MMU 19366dfe181SPaul Mundt help 19466dfe181SPaul Mundt This enables 16kB pages on MMU-less SH systems. 19566dfe181SPaul Mundt 19621440cf0SPaul Mundtconfig PAGE_SIZE_64KB 19721440cf0SPaul Mundt bool "64kB" 1983f5ab768SMatt Fleming depends on !MMU || CPU_SH4 || CPU_SH5 19921440cf0SPaul Mundt help 20021440cf0SPaul Mundt This enables support for 64kB pages, possible on all SH-4 2014d2cab7cSPaul Mundt CPUs and later. 20221440cf0SPaul Mundt 20321440cf0SPaul Mundtendchoice 20421440cf0SPaul Mundt 20521440cf0SPaul Mundtchoice 206cad82448SPaul Mundt prompt "HugeTLB page size" 207ffb4a73dSPaul Mundt depends on HUGETLB_PAGE 20868b7c24cSPaul Mundt default HUGETLB_PAGE_SIZE_1MB if PAGE_SIZE_64KB 209cad82448SPaul Mundt default HUGETLB_PAGE_SIZE_64K 210cad82448SPaul Mundt 211cad82448SPaul Mundtconfig HUGETLB_PAGE_SIZE_64K 21221440cf0SPaul Mundt bool "64kB" 21368b7c24cSPaul Mundt depends on !PAGE_SIZE_64KB 21421440cf0SPaul Mundt 21521440cf0SPaul Mundtconfig HUGETLB_PAGE_SIZE_256K 21621440cf0SPaul Mundt bool "256kB" 21721440cf0SPaul Mundt depends on X2TLB 218cad82448SPaul Mundt 219cad82448SPaul Mundtconfig HUGETLB_PAGE_SIZE_1MB 220cad82448SPaul Mundt bool "1MB" 221cad82448SPaul Mundt 22221440cf0SPaul Mundtconfig HUGETLB_PAGE_SIZE_4MB 22321440cf0SPaul Mundt bool "4MB" 22421440cf0SPaul Mundt depends on X2TLB 22521440cf0SPaul Mundt 22621440cf0SPaul Mundtconfig HUGETLB_PAGE_SIZE_64MB 22721440cf0SPaul Mundt bool "64MB" 22821440cf0SPaul Mundt depends on X2TLB 22921440cf0SPaul Mundt 230a09063daSPaul Mundtconfig HUGETLB_PAGE_SIZE_512MB 231a09063daSPaul Mundt bool "512MB" 232a09063daSPaul Mundt depends on CPU_SH5 233a09063daSPaul Mundt 234cad82448SPaul Mundtendchoice 235cad82448SPaul Mundt 236cad82448SPaul Mundtsource "mm/Kconfig" 237cad82448SPaul Mundt 238896f0c0eSPaul Mundtconfig SCHED_MC 239896f0c0eSPaul Mundt bool "Multi-core scheduler support" 240896f0c0eSPaul Mundt depends on SMP 241896f0c0eSPaul Mundt default y 242896f0c0eSPaul Mundt help 243896f0c0eSPaul Mundt Multi-core scheduler support improves the CPU scheduler's decision 244896f0c0eSPaul Mundt making when dealing with multi-core CPU chips at a cost of slightly 245896f0c0eSPaul Mundt increased overhead in some places. If unsure say N here. 246896f0c0eSPaul Mundt 247cad82448SPaul Mundtendmenu 248cad82448SPaul Mundt 249cad82448SPaul Mundtmenu "Cache configuration" 250cad82448SPaul Mundt 251cad82448SPaul Mundtconfig SH7705_CACHE_32KB 252cad82448SPaul Mundt bool "Enable 32KB cache size for SH7705" 253cad82448SPaul Mundt depends on CPU_SUBTYPE_SH7705 254cad82448SPaul Mundt default y 255cad82448SPaul Mundt 256e7bd34a1SPaul Mundtchoice 257e7bd34a1SPaul Mundt prompt "Cache mode" 258a09063daSPaul Mundt default CACHE_WRITEBACK if CPU_SH2A || CPU_SH3 || CPU_SH4 || CPU_SH5 259e7bd34a1SPaul Mundt default CACHE_WRITETHROUGH if (CPU_SH2 && !CPU_SH2A) 260e7bd34a1SPaul Mundt 261e7bd34a1SPaul Mundtconfig CACHE_WRITEBACK 262e7bd34a1SPaul Mundt bool "Write-back" 263e7bd34a1SPaul Mundt 264e7bd34a1SPaul Mundtconfig CACHE_WRITETHROUGH 265e7bd34a1SPaul Mundt bool "Write-through" 266cad82448SPaul Mundt help 267cad82448SPaul Mundt Selecting this option will configure the caches in write-through 268cad82448SPaul Mundt mode, as opposed to the default write-back configuration. 269cad82448SPaul Mundt 270cad82448SPaul Mundt Since there's sill some aliasing issues on SH-4, this option will 271cad82448SPaul Mundt unfortunately still require the majority of flushing functions to 272cad82448SPaul Mundt be implemented to deal with aliasing. 273cad82448SPaul Mundt 274cad82448SPaul Mundt If unsure, say N. 275cad82448SPaul Mundt 276e7bd34a1SPaul Mundtconfig CACHE_OFF 277e7bd34a1SPaul Mundt bool "Off" 278e7bd34a1SPaul Mundt 279e7bd34a1SPaul Mundtendchoice 280e7bd34a1SPaul Mundt 281cad82448SPaul Mundtendmenu 282