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 7836bcd39dSPaul Mundt 79cad82448SPaul Mundtconfig 32BIT 8036bcd39dSPaul Mundt bool 8136bcd39dSPaul Mundt default y if CPU_SH5 8236bcd39dSPaul Mundt 83a0ab3668SPaul Mundtconfig PMB 84cad82448SPaul Mundt bool "Support 32-bit physical addressing through PMB" 85b4e2a2a2SPaul Mundt depends on MMU && EXPERIMENTAL && CPU_SH4A && !CPU_SH4AL_DSP 86a0ab3668SPaul Mundt select 32BIT 87cad82448SPaul Mundt help 88cad82448SPaul Mundt If you say Y here, physical addressing will be extended to 89cad82448SPaul Mundt 32-bits through the SH-4A PMB. If this is not set, legacy 90cad82448SPaul Mundt 29-bit physical addressing will be used. 91cad82448SPaul Mundt 92a0ab3668SPaul Mundtconfig PMB_LEGACY 93a0ab3668SPaul Mundt bool "Support legacy boot mappings for PMB" 94a0ab3668SPaul Mundt depends on PMB 952f47f447SYoshihiro Shimoda select 32BIT 962f47f447SYoshihiro Shimoda help 972f47f447SYoshihiro Shimoda If this option is enabled, fixed PMB mappings are inherited 982f47f447SYoshihiro Shimoda from the boot loader, and the kernel does not attempt dynamic 992f47f447SYoshihiro Shimoda management. This is the closest to legacy 29-bit physical mode, 1002f47f447SYoshihiro Shimoda and allows systems to support up to 512MiB of system memory. 1012f47f447SYoshihiro Shimoda 10221440cf0SPaul Mundtconfig X2TLB 103*782bb5a5SPaul Mundt def_bool y 104*782bb5a5SPaul Mundt depends on (CPU_SHX2 || CPU_SHX3) && MMU 10521440cf0SPaul Mundt 10619f9a34fSPaul Mundtconfig VSYSCALL 10719f9a34fSPaul Mundt bool "Support vsyscall page" 108a09063daSPaul Mundt depends on MMU && (CPU_SH3 || CPU_SH4) 10919f9a34fSPaul Mundt default y 11019f9a34fSPaul Mundt help 11119f9a34fSPaul Mundt This will enable support for the kernel mapping a vDSO page 11219f9a34fSPaul Mundt in process space, and subsequently handing down the entry point 11319f9a34fSPaul Mundt to the libc through the ELF auxiliary vector. 11419f9a34fSPaul Mundt 11519f9a34fSPaul Mundt From the kernel side this is used for the signal trampoline. 11619f9a34fSPaul Mundt For systems with an MMU that can afford to give up a page, 11719f9a34fSPaul Mundt (the default value) say Y. 11819f9a34fSPaul Mundt 119b241cb0cSPaul Mundtconfig NUMA 120b241cb0cSPaul Mundt bool "Non Uniform Memory Access (NUMA) Support" 121357d5946SPaul Mundt depends on MMU && SYS_SUPPORTS_NUMA && EXPERIMENTAL 122b241cb0cSPaul Mundt default n 123b241cb0cSPaul Mundt help 124b241cb0cSPaul Mundt Some SH systems have many various memories scattered around 125b241cb0cSPaul Mundt the address space, each with varying latencies. This enables 126b241cb0cSPaul Mundt support for these blocks by binding them to nodes and allowing 127b241cb0cSPaul Mundt memory policies to be used for prioritizing and controlling 128b241cb0cSPaul Mundt allocation behaviour. 129b241cb0cSPaul Mundt 13001066625SPaul Mundtconfig NODES_SHIFT 13101066625SPaul Mundt int 1329904494dSPaul Mundt default "3" if CPU_SUBTYPE_SHX3 13301066625SPaul Mundt default "1" 13401066625SPaul Mundt depends on NEED_MULTIPLE_NODES 13501066625SPaul Mundt 13601066625SPaul Mundtconfig ARCH_FLATMEM_ENABLE 13701066625SPaul Mundt def_bool y 138357d5946SPaul Mundt depends on !NUMA 13901066625SPaul Mundt 140dfbb9042SPaul Mundtconfig ARCH_SPARSEMEM_ENABLE 141dfbb9042SPaul Mundt def_bool y 142dfbb9042SPaul Mundt select SPARSEMEM_STATIC 143dfbb9042SPaul Mundt 144dfbb9042SPaul Mundtconfig ARCH_SPARSEMEM_DEFAULT 145dfbb9042SPaul Mundt def_bool y 146dfbb9042SPaul Mundt 1471ce7ddd5SPaul Mundtconfig MAX_ACTIVE_REGIONS 1481ce7ddd5SPaul Mundt int 1497da3b8efSPaul Mundt default "6" if (CPU_SUBTYPE_SHX3 && SPARSEMEM) 150dc47e9ddSPaul Mundt default "2" if SPARSEMEM && (CPU_SUBTYPE_SH7722 || \ 151dc47e9ddSPaul Mundt CPU_SUBTYPE_SH7785) 1521ce7ddd5SPaul Mundt default "1" 1531ce7ddd5SPaul Mundt 15401066625SPaul Mundtconfig ARCH_POPULATES_NODE_MAP 15501066625SPaul Mundt def_bool y 15601066625SPaul Mundt 157dfbb9042SPaul Mundtconfig ARCH_SELECT_MEMORY_MODEL 158dfbb9042SPaul Mundt def_bool y 159dfbb9042SPaul Mundt 16033d63bd8SPaul Mundtconfig ARCH_ENABLE_MEMORY_HOTPLUG 16133d63bd8SPaul Mundt def_bool y 162b85641bdSPaul Mundt depends on SPARSEMEM && MMU 16333d63bd8SPaul Mundt 1643159e7d6SPaul Mundtconfig ARCH_ENABLE_MEMORY_HOTREMOVE 1653159e7d6SPaul Mundt def_bool y 166b85641bdSPaul Mundt depends on SPARSEMEM && MMU 1673159e7d6SPaul Mundt 16833d63bd8SPaul Mundtconfig ARCH_MEMORY_PROBE 16933d63bd8SPaul Mundt def_bool y 17033d63bd8SPaul Mundt depends on MEMORY_HOTPLUG 17133d63bd8SPaul Mundt 172cad82448SPaul Mundtchoice 17321440cf0SPaul Mundt prompt "Kernel page size" 17421440cf0SPaul Mundt default PAGE_SIZE_4KB 17521440cf0SPaul Mundt 17621440cf0SPaul Mundtconfig PAGE_SIZE_4KB 17721440cf0SPaul Mundt bool "4kB" 17821440cf0SPaul Mundt help 17921440cf0SPaul Mundt This is the default page size used by all SuperH CPUs. 18021440cf0SPaul Mundt 18121440cf0SPaul Mundtconfig PAGE_SIZE_8KB 18221440cf0SPaul Mundt bool "8kB" 1833f5ab768SMatt Fleming depends on !MMU || X2TLB 18421440cf0SPaul Mundt help 18521440cf0SPaul Mundt This enables 8kB pages as supported by SH-X2 and later MMUs. 18621440cf0SPaul Mundt 18766dfe181SPaul Mundtconfig PAGE_SIZE_16KB 18866dfe181SPaul Mundt bool "16kB" 18966dfe181SPaul Mundt depends on !MMU 19066dfe181SPaul Mundt help 19166dfe181SPaul Mundt This enables 16kB pages on MMU-less SH systems. 19266dfe181SPaul Mundt 19321440cf0SPaul Mundtconfig PAGE_SIZE_64KB 19421440cf0SPaul Mundt bool "64kB" 1953f5ab768SMatt Fleming depends on !MMU || CPU_SH4 || CPU_SH5 19621440cf0SPaul Mundt help 19721440cf0SPaul Mundt This enables support for 64kB pages, possible on all SH-4 1984d2cab7cSPaul Mundt CPUs and later. 19921440cf0SPaul Mundt 20021440cf0SPaul Mundtendchoice 20121440cf0SPaul Mundt 20221440cf0SPaul Mundtchoice 203cad82448SPaul Mundt prompt "HugeTLB page size" 204ffb4a73dSPaul Mundt depends on HUGETLB_PAGE 20568b7c24cSPaul Mundt default HUGETLB_PAGE_SIZE_1MB if PAGE_SIZE_64KB 206cad82448SPaul Mundt default HUGETLB_PAGE_SIZE_64K 207cad82448SPaul Mundt 208cad82448SPaul Mundtconfig HUGETLB_PAGE_SIZE_64K 20921440cf0SPaul Mundt bool "64kB" 21068b7c24cSPaul Mundt depends on !PAGE_SIZE_64KB 21121440cf0SPaul Mundt 21221440cf0SPaul Mundtconfig HUGETLB_PAGE_SIZE_256K 21321440cf0SPaul Mundt bool "256kB" 21421440cf0SPaul Mundt depends on X2TLB 215cad82448SPaul Mundt 216cad82448SPaul Mundtconfig HUGETLB_PAGE_SIZE_1MB 217cad82448SPaul Mundt bool "1MB" 218cad82448SPaul Mundt 21921440cf0SPaul Mundtconfig HUGETLB_PAGE_SIZE_4MB 22021440cf0SPaul Mundt bool "4MB" 22121440cf0SPaul Mundt depends on X2TLB 22221440cf0SPaul Mundt 22321440cf0SPaul Mundtconfig HUGETLB_PAGE_SIZE_64MB 22421440cf0SPaul Mundt bool "64MB" 22521440cf0SPaul Mundt depends on X2TLB 22621440cf0SPaul Mundt 227a09063daSPaul Mundtconfig HUGETLB_PAGE_SIZE_512MB 228a09063daSPaul Mundt bool "512MB" 229a09063daSPaul Mundt depends on CPU_SH5 230a09063daSPaul Mundt 231cad82448SPaul Mundtendchoice 232cad82448SPaul Mundt 233cad82448SPaul Mundtsource "mm/Kconfig" 234cad82448SPaul Mundt 235896f0c0eSPaul Mundtconfig SCHED_MC 236896f0c0eSPaul Mundt bool "Multi-core scheduler support" 237896f0c0eSPaul Mundt depends on SMP 238896f0c0eSPaul Mundt default y 239896f0c0eSPaul Mundt help 240896f0c0eSPaul Mundt Multi-core scheduler support improves the CPU scheduler's decision 241896f0c0eSPaul Mundt making when dealing with multi-core CPU chips at a cost of slightly 242896f0c0eSPaul Mundt increased overhead in some places. If unsure say N here. 243896f0c0eSPaul Mundt 244cad82448SPaul Mundtendmenu 245cad82448SPaul Mundt 246cad82448SPaul Mundtmenu "Cache configuration" 247cad82448SPaul Mundt 248cad82448SPaul Mundtconfig SH7705_CACHE_32KB 249cad82448SPaul Mundt bool "Enable 32KB cache size for SH7705" 250cad82448SPaul Mundt depends on CPU_SUBTYPE_SH7705 251cad82448SPaul Mundt default y 252cad82448SPaul Mundt 253e7bd34a1SPaul Mundtchoice 254e7bd34a1SPaul Mundt prompt "Cache mode" 255a09063daSPaul Mundt default CACHE_WRITEBACK if CPU_SH2A || CPU_SH3 || CPU_SH4 || CPU_SH5 256e7bd34a1SPaul Mundt default CACHE_WRITETHROUGH if (CPU_SH2 && !CPU_SH2A) 257e7bd34a1SPaul Mundt 258e7bd34a1SPaul Mundtconfig CACHE_WRITEBACK 259e7bd34a1SPaul Mundt bool "Write-back" 260e7bd34a1SPaul Mundt 261e7bd34a1SPaul Mundtconfig CACHE_WRITETHROUGH 262e7bd34a1SPaul Mundt bool "Write-through" 263cad82448SPaul Mundt help 264cad82448SPaul Mundt Selecting this option will configure the caches in write-through 265cad82448SPaul Mundt mode, as opposed to the default write-back configuration. 266cad82448SPaul Mundt 267cad82448SPaul Mundt Since there's sill some aliasing issues on SH-4, this option will 268cad82448SPaul Mundt unfortunately still require the majority of flushing functions to 269cad82448SPaul Mundt be implemented to deal with aliasing. 270cad82448SPaul Mundt 271cad82448SPaul Mundt If unsure, say N. 272cad82448SPaul Mundt 273e7bd34a1SPaul Mundtconfig CACHE_OFF 274e7bd34a1SPaul Mundt bool "Off" 275e7bd34a1SPaul Mundt 276e7bd34a1SPaul Mundtendchoice 277e7bd34a1SPaul Mundt 278cad82448SPaul Mundtendmenu 279