Kconfig 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Select 32 or 64 bit
  3. config 64BIT
  4. bool "64-bit kernel" if "$(ARCH)" = "x86"
  5. default "$(ARCH)" != "i386"
  6. ---help---
  7. Say yes to build a 64-bit kernel - formerly known as x86_64
  8. Say no to build a 32-bit kernel - formerly known as i386
  9. config X86_32
  10. def_bool y
  11. depends on !64BIT
  12. # Options that are inherently 32-bit kernel only:
  13. select ARCH_WANT_IPC_PARSE_VERSION
  14. select CLKSRC_I8253
  15. select CLONE_BACKWARDS
  16. select HAVE_AOUT
  17. select HAVE_GENERIC_DMA_COHERENT
  18. select MODULES_USE_ELF_REL
  19. select OLD_SIGACTION
  20. config X86_64
  21. def_bool y
  22. depends on 64BIT
  23. # Options that are inherently 64-bit kernel only:
  24. select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
  25. select ARCH_SUPPORTS_INT128
  26. select ARCH_USE_CMPXCHG_LOCKREF
  27. select HAVE_ARCH_SOFT_DIRTY
  28. select MODULES_USE_ELF_RELA
  29. select NEED_DMA_MAP_STATE
  30. select SWIOTLB
  31. select X86_DEV_DMA_OPS
  32. select ARCH_HAS_SYSCALL_WRAPPER
  33. #
  34. # Arch settings
  35. #
  36. # ( Note that options that are marked 'if X86_64' could in principle be
  37. # ported to 32-bit as well. )
  38. #
  39. config X86
  40. def_bool y
  41. #
  42. # Note: keep this list sorted alphabetically
  43. #
  44. select ACPI_LEGACY_TABLES_LOOKUP if ACPI
  45. select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
  46. select ANON_INODES
  47. select ARCH_CLOCKSOURCE_DATA
  48. select ARCH_DISCARD_MEMBLOCK
  49. select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
  50. select ARCH_HAS_DEBUG_VIRTUAL
  51. select ARCH_HAS_DEVMEM_IS_ALLOWED
  52. select ARCH_HAS_ELF_RANDOMIZE
  53. select ARCH_HAS_FAST_MULTIPLIER
  54. select ARCH_HAS_FILTER_PGPROT
  55. select ARCH_HAS_FORTIFY_SOURCE
  56. select ARCH_HAS_GCOV_PROFILE_ALL
  57. select ARCH_HAS_KCOV if X86_64
  58. select ARCH_HAS_MEMBARRIER_SYNC_CORE
  59. select ARCH_HAS_PMEM_API if X86_64
  60. select ARCH_HAS_PTE_SPECIAL
  61. select ARCH_HAS_REFCOUNT
  62. select ARCH_HAS_UACCESS_FLUSHCACHE if X86_64
  63. select ARCH_HAS_UACCESS_MCSAFE if X86_64 && X86_MCE
  64. select ARCH_HAS_SET_MEMORY
  65. select ARCH_HAS_SG_CHAIN
  66. select ARCH_HAS_STRICT_KERNEL_RWX
  67. select ARCH_HAS_STRICT_MODULE_RWX
  68. select ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
  69. select ARCH_HAS_UBSAN_SANITIZE_ALL
  70. select ARCH_HAS_ZONE_DEVICE if X86_64
  71. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  72. select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI
  73. select ARCH_MIGHT_HAVE_PC_PARPORT
  74. select ARCH_MIGHT_HAVE_PC_SERIO
  75. select ARCH_SUPPORTS_ACPI
  76. select ARCH_SUPPORTS_ATOMIC_RMW
  77. select ARCH_SUPPORTS_NUMA_BALANCING if X86_64
  78. select ARCH_USE_BUILTIN_BSWAP
  79. select ARCH_USE_QUEUED_RWLOCKS
  80. select ARCH_USE_QUEUED_SPINLOCKS
  81. select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
  82. select ARCH_WANTS_DYNAMIC_TASK_STRUCT
  83. select ARCH_WANTS_THP_SWAP if X86_64
  84. select BUILDTIME_EXTABLE_SORT
  85. select CLKEVT_I8253
  86. select CLOCKSOURCE_VALIDATE_LAST_CYCLE
  87. select CLOCKSOURCE_WATCHDOG
  88. select DCACHE_WORD_ACCESS
  89. select DMA_DIRECT_OPS
  90. select EDAC_ATOMIC_SCRUB
  91. select EDAC_SUPPORT
  92. select GENERIC_CLOCKEVENTS
  93. select GENERIC_CLOCKEVENTS_BROADCAST if X86_64 || (X86_32 && X86_LOCAL_APIC)
  94. select GENERIC_CLOCKEVENTS_MIN_ADJUST
  95. select GENERIC_CMOS_UPDATE
  96. select GENERIC_CPU_AUTOPROBE
  97. select GENERIC_CPU_VULNERABILITIES
  98. select GENERIC_EARLY_IOREMAP
  99. select GENERIC_FIND_FIRST_BIT
  100. select GENERIC_IOMAP
  101. select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP
  102. select GENERIC_IRQ_MATRIX_ALLOCATOR if X86_LOCAL_APIC
  103. select GENERIC_IRQ_MIGRATION if SMP
  104. select GENERIC_IRQ_PROBE
  105. select GENERIC_IRQ_RESERVATION_MODE
  106. select GENERIC_IRQ_SHOW
  107. select GENERIC_PENDING_IRQ if SMP
  108. select GENERIC_SMP_IDLE_THREAD
  109. select GENERIC_STRNCPY_FROM_USER
  110. select GENERIC_STRNLEN_USER
  111. select GENERIC_TIME_VSYSCALL
  112. select HARDLOCKUP_CHECK_TIMESTAMP if X86_64
  113. select HAVE_ACPI_APEI if ACPI
  114. select HAVE_ACPI_APEI_NMI if ACPI
  115. select HAVE_ALIGNED_STRUCT_PAGE if SLUB
  116. select HAVE_ARCH_AUDITSYSCALL
  117. select HAVE_ARCH_HUGE_VMAP if X86_64 || X86_PAE
  118. select HAVE_ARCH_JUMP_LABEL
  119. select HAVE_ARCH_KASAN if X86_64
  120. select HAVE_ARCH_KGDB
  121. select HAVE_ARCH_MMAP_RND_BITS if MMU
  122. select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
  123. select HAVE_ARCH_COMPAT_MMAP_BASES if MMU && COMPAT
  124. select HAVE_ARCH_PREL32_RELOCATIONS
  125. select HAVE_ARCH_SECCOMP_FILTER
  126. select HAVE_ARCH_THREAD_STRUCT_WHITELIST
  127. select HAVE_ARCH_TRACEHOOK
  128. select HAVE_ARCH_TRANSPARENT_HUGEPAGE
  129. select HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD if X86_64
  130. select HAVE_ARCH_VMAP_STACK if X86_64
  131. select HAVE_ARCH_WITHIN_STACK_FRAMES
  132. select HAVE_CMPXCHG_DOUBLE
  133. select HAVE_CMPXCHG_LOCAL
  134. select HAVE_CONTEXT_TRACKING if X86_64
  135. select HAVE_COPY_THREAD_TLS
  136. select HAVE_C_RECORDMCOUNT
  137. select HAVE_DEBUG_KMEMLEAK
  138. select HAVE_DEBUG_STACKOVERFLOW
  139. select HAVE_DMA_CONTIGUOUS
  140. select HAVE_DYNAMIC_FTRACE
  141. select HAVE_DYNAMIC_FTRACE_WITH_REGS
  142. select HAVE_EBPF_JIT
  143. select HAVE_EFFICIENT_UNALIGNED_ACCESS
  144. select HAVE_EXIT_THREAD
  145. select HAVE_FENTRY if X86_64 || DYNAMIC_FTRACE
  146. select HAVE_FTRACE_MCOUNT_RECORD
  147. select HAVE_FUNCTION_GRAPH_TRACER
  148. select HAVE_FUNCTION_TRACER
  149. select HAVE_GCC_PLUGINS
  150. select HAVE_HW_BREAKPOINT
  151. select HAVE_IDE
  152. select HAVE_IOREMAP_PROT
  153. select HAVE_IRQ_EXIT_ON_IRQ_STACK if X86_64
  154. select HAVE_IRQ_TIME_ACCOUNTING
  155. select HAVE_KERNEL_BZIP2
  156. select HAVE_KERNEL_GZIP
  157. select HAVE_KERNEL_LZ4
  158. select HAVE_KERNEL_LZMA
  159. select HAVE_KERNEL_LZO
  160. select HAVE_KERNEL_XZ
  161. select HAVE_KPROBES
  162. select HAVE_KPROBES_ON_FTRACE
  163. select HAVE_FUNCTION_ERROR_INJECTION
  164. select HAVE_KRETPROBES
  165. select HAVE_KVM
  166. select HAVE_LIVEPATCH if X86_64
  167. select HAVE_MEMBLOCK
  168. select HAVE_MEMBLOCK_NODE_MAP
  169. select HAVE_MIXED_BREAKPOINTS_REGS
  170. select HAVE_MOD_ARCH_SPECIFIC
  171. select HAVE_NMI
  172. select HAVE_OPROFILE
  173. select HAVE_OPTPROBES
  174. select HAVE_PCSPKR_PLATFORM
  175. select HAVE_PERF_EVENTS
  176. select HAVE_PERF_EVENTS_NMI
  177. select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && HAVE_PERF_EVENTS_NMI
  178. select HAVE_PERF_REGS
  179. select HAVE_PERF_USER_STACK_DUMP
  180. select HAVE_RCU_TABLE_FREE if PARAVIRT
  181. select HAVE_RCU_TABLE_INVALIDATE if HAVE_RCU_TABLE_FREE
  182. select HAVE_REGS_AND_STACK_ACCESS_API
  183. select HAVE_RELIABLE_STACKTRACE if X86_64 && (UNWINDER_FRAME_POINTER || UNWINDER_ORC) && STACK_VALIDATION
  184. select HAVE_STACKPROTECTOR if CC_HAS_SANE_STACKPROTECTOR
  185. select HAVE_STACK_VALIDATION if X86_64
  186. select HAVE_RSEQ
  187. select HAVE_SYSCALL_TRACEPOINTS
  188. select HAVE_UNSTABLE_SCHED_CLOCK
  189. select HAVE_USER_RETURN_NOTIFIER
  190. select HOTPLUG_SMT if SMP
  191. select IRQ_FORCED_THREADING
  192. select NEED_SG_DMA_LENGTH
  193. select PCI_LOCKLESS_CONFIG
  194. select PERF_EVENTS
  195. select RTC_LIB
  196. select RTC_MC146818_LIB
  197. select SPARSE_IRQ
  198. select SRCU
  199. select SYSCTL_EXCEPTION_TRACE
  200. select THREAD_INFO_IN_TASK
  201. select USER_STACKTRACE_SUPPORT
  202. select VIRT_TO_BUS
  203. select X86_FEATURE_NAMES if PROC_FS
  204. config INSTRUCTION_DECODER
  205. def_bool y
  206. depends on KPROBES || PERF_EVENTS || UPROBES
  207. config OUTPUT_FORMAT
  208. string
  209. default "elf32-i386" if X86_32
  210. default "elf64-x86-64" if X86_64
  211. config ARCH_DEFCONFIG
  212. string
  213. default "arch/x86/configs/i386_defconfig" if X86_32
  214. default "arch/x86/configs/x86_64_defconfig" if X86_64
  215. config LOCKDEP_SUPPORT
  216. def_bool y
  217. config STACKTRACE_SUPPORT
  218. def_bool y
  219. config MMU
  220. def_bool y
  221. config ARCH_MMAP_RND_BITS_MIN
  222. default 28 if 64BIT
  223. default 8
  224. config ARCH_MMAP_RND_BITS_MAX
  225. default 32 if 64BIT
  226. default 16
  227. config ARCH_MMAP_RND_COMPAT_BITS_MIN
  228. default 8
  229. config ARCH_MMAP_RND_COMPAT_BITS_MAX
  230. default 16
  231. config SBUS
  232. bool
  233. config GENERIC_ISA_DMA
  234. def_bool y
  235. depends on ISA_DMA_API
  236. config GENERIC_BUG
  237. def_bool y
  238. depends on BUG
  239. select GENERIC_BUG_RELATIVE_POINTERS if X86_64
  240. config GENERIC_BUG_RELATIVE_POINTERS
  241. bool
  242. config GENERIC_HWEIGHT
  243. def_bool y
  244. config ARCH_MAY_HAVE_PC_FDC
  245. def_bool y
  246. depends on ISA_DMA_API
  247. config RWSEM_XCHGADD_ALGORITHM
  248. def_bool y
  249. config GENERIC_CALIBRATE_DELAY
  250. def_bool y
  251. config ARCH_HAS_CPU_RELAX
  252. def_bool y
  253. config ARCH_HAS_CACHE_LINE_SIZE
  254. def_bool y
  255. config ARCH_HAS_FILTER_PGPROT
  256. def_bool y
  257. config HAVE_SETUP_PER_CPU_AREA
  258. def_bool y
  259. config NEED_PER_CPU_EMBED_FIRST_CHUNK
  260. def_bool y
  261. config NEED_PER_CPU_PAGE_FIRST_CHUNK
  262. def_bool y
  263. config ARCH_HIBERNATION_POSSIBLE
  264. def_bool y
  265. config ARCH_SUSPEND_POSSIBLE
  266. def_bool y
  267. config ARCH_WANT_HUGE_PMD_SHARE
  268. def_bool y
  269. config ARCH_WANT_GENERAL_HUGETLB
  270. def_bool y
  271. config ZONE_DMA32
  272. def_bool y if X86_64
  273. config AUDIT_ARCH
  274. def_bool y if X86_64
  275. config ARCH_SUPPORTS_OPTIMIZED_INLINING
  276. def_bool y
  277. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  278. def_bool y
  279. config KASAN_SHADOW_OFFSET
  280. hex
  281. depends on KASAN
  282. default 0xdffffc0000000000
  283. config HAVE_INTEL_TXT
  284. def_bool y
  285. depends on INTEL_IOMMU && ACPI
  286. config X86_32_SMP
  287. def_bool y
  288. depends on X86_32 && SMP
  289. config X86_64_SMP
  290. def_bool y
  291. depends on X86_64 && SMP
  292. config X86_32_LAZY_GS
  293. def_bool y
  294. depends on X86_32 && !STACKPROTECTOR
  295. config ARCH_SUPPORTS_UPROBES
  296. def_bool y
  297. config FIX_EARLYCON_MEM
  298. def_bool y
  299. config DYNAMIC_PHYSICAL_MASK
  300. bool
  301. config PGTABLE_LEVELS
  302. int
  303. default 5 if X86_5LEVEL
  304. default 4 if X86_64
  305. default 3 if X86_PAE
  306. default 2
  307. config CC_HAS_SANE_STACKPROTECTOR
  308. bool
  309. default $(success,$(srctree)/scripts/gcc-x86_64-has-stack-protector.sh $(CC)) if 64BIT
  310. default $(success,$(srctree)/scripts/gcc-x86_32-has-stack-protector.sh $(CC))
  311. help
  312. We have to make sure stack protector is unconditionally disabled if
  313. the compiler produces broken code.
  314. menu "Processor type and features"
  315. config ZONE_DMA
  316. bool "DMA memory allocation support" if EXPERT
  317. default y
  318. help
  319. DMA memory allocation support allows devices with less than 32-bit
  320. addressing to allocate within the first 16MB of address space.
  321. Disable if no such devices will be used.
  322. If unsure, say Y.
  323. config SMP
  324. bool "Symmetric multi-processing support"
  325. ---help---
  326. This enables support for systems with more than one CPU. If you have
  327. a system with only one CPU, say N. If you have a system with more
  328. than one CPU, say Y.
  329. If you say N here, the kernel will run on uni- and multiprocessor
  330. machines, but will use only one CPU of a multiprocessor machine. If
  331. you say Y here, the kernel will run on many, but not all,
  332. uniprocessor machines. On a uniprocessor machine, the kernel
  333. will run faster if you say N here.
  334. Note that if you say Y here and choose architecture "586" or
  335. "Pentium" under "Processor family", the kernel will not work on 486
  336. architectures. Similarly, multiprocessor kernels for the "PPro"
  337. architecture may not work on all Pentium based boards.
  338. People using multiprocessor machines who say Y here should also say
  339. Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
  340. Management" code will be disabled if you say Y here.
  341. See also <file:Documentation/x86/i386/IO-APIC.txt>,
  342. <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
  343. <http://www.tldp.org/docs.html#howto>.
  344. If you don't know what to do here, say N.
  345. config X86_FEATURE_NAMES
  346. bool "Processor feature human-readable names" if EMBEDDED
  347. default y
  348. ---help---
  349. This option compiles in a table of x86 feature bits and corresponding
  350. names. This is required to support /proc/cpuinfo and a few kernel
  351. messages. You can disable this to save space, at the expense of
  352. making those few kernel messages show numeric feature bits instead.
  353. If in doubt, say Y.
  354. config X86_X2APIC
  355. bool "Support x2apic"
  356. depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
  357. ---help---
  358. This enables x2apic support on CPUs that have this feature.
  359. This allows 32-bit apic IDs (so it can support very large systems),
  360. and accesses the local apic via MSRs not via mmio.
  361. If you don't know what to do here, say N.
  362. config X86_MPPARSE
  363. bool "Enable MPS table" if ACPI || SFI
  364. default y
  365. depends on X86_LOCAL_APIC
  366. ---help---
  367. For old smp systems that do not have proper acpi support. Newer systems
  368. (esp with 64bit cpus) with acpi support, MADT and DSDT will override it
  369. config GOLDFISH
  370. def_bool y
  371. depends on X86_GOLDFISH
  372. config RETPOLINE
  373. bool "Avoid speculative indirect branches in kernel"
  374. default y
  375. select STACK_VALIDATION if HAVE_STACK_VALIDATION
  376. help
  377. Compile kernel with the retpoline compiler options to guard against
  378. kernel-to-user data leaks by avoiding speculative indirect
  379. branches. Requires a compiler with -mindirect-branch=thunk-extern
  380. support for full protection. The kernel may run slower.
  381. config INTEL_RDT
  382. bool "Intel Resource Director Technology support"
  383. default n
  384. depends on X86 && CPU_SUP_INTEL
  385. select KERNFS
  386. help
  387. Select to enable resource allocation and monitoring which are
  388. sub-features of Intel Resource Director Technology(RDT). More
  389. information about RDT can be found in the Intel x86
  390. Architecture Software Developer Manual.
  391. Say N if unsure.
  392. if X86_32
  393. config X86_BIGSMP
  394. bool "Support for big SMP systems with more than 8 CPUs"
  395. depends on SMP
  396. ---help---
  397. This option is needed for the systems that have more than 8 CPUs
  398. config X86_EXTENDED_PLATFORM
  399. bool "Support for extended (non-PC) x86 platforms"
  400. default y
  401. ---help---
  402. If you disable this option then the kernel will only support
  403. standard PC platforms. (which covers the vast majority of
  404. systems out there.)
  405. If you enable this option then you'll be able to select support
  406. for the following (non-PC) 32 bit x86 platforms:
  407. Goldfish (Android emulator)
  408. AMD Elan
  409. RDC R-321x SoC
  410. SGI 320/540 (Visual Workstation)
  411. STA2X11-based (e.g. Northville)
  412. Moorestown MID devices
  413. If you have one of these systems, or if you want to build a
  414. generic distribution kernel, say Y here - otherwise say N.
  415. endif
  416. if X86_64
  417. config X86_EXTENDED_PLATFORM
  418. bool "Support for extended (non-PC) x86 platforms"
  419. default y
  420. ---help---
  421. If you disable this option then the kernel will only support
  422. standard PC platforms. (which covers the vast majority of
  423. systems out there.)
  424. If you enable this option then you'll be able to select support
  425. for the following (non-PC) 64 bit x86 platforms:
  426. Numascale NumaChip
  427. ScaleMP vSMP
  428. SGI Ultraviolet
  429. If you have one of these systems, or if you want to build a
  430. generic distribution kernel, say Y here - otherwise say N.
  431. endif
  432. # This is an alphabetically sorted list of 64 bit extended platforms
  433. # Please maintain the alphabetic order if and when there are additions
  434. config X86_NUMACHIP
  435. bool "Numascale NumaChip"
  436. depends on X86_64
  437. depends on X86_EXTENDED_PLATFORM
  438. depends on NUMA
  439. depends on SMP
  440. depends on X86_X2APIC
  441. depends on PCI_MMCONFIG
  442. ---help---
  443. Adds support for Numascale NumaChip large-SMP systems. Needed to
  444. enable more than ~168 cores.
  445. If you don't have one of these, you should say N here.
  446. config X86_VSMP
  447. bool "ScaleMP vSMP"
  448. select HYPERVISOR_GUEST
  449. select PARAVIRT
  450. depends on X86_64 && PCI
  451. depends on X86_EXTENDED_PLATFORM
  452. depends on SMP
  453. ---help---
  454. Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is
  455. supposed to run on these EM64T-based machines. Only choose this option
  456. if you have one of these machines.
  457. config X86_UV
  458. bool "SGI Ultraviolet"
  459. depends on X86_64
  460. depends on X86_EXTENDED_PLATFORM
  461. depends on NUMA
  462. depends on EFI
  463. depends on KEXEC_CORE
  464. depends on X86_X2APIC
  465. depends on PCI
  466. ---help---
  467. This option is needed in order to support SGI Ultraviolet systems.
  468. If you don't have one of these, you should say N here.
  469. # Following is an alphabetically sorted list of 32 bit extended platforms
  470. # Please maintain the alphabetic order if and when there are additions
  471. config X86_GOLDFISH
  472. bool "Goldfish (Virtual Platform)"
  473. depends on X86_EXTENDED_PLATFORM
  474. ---help---
  475. Enable support for the Goldfish virtual platform used primarily
  476. for Android development. Unless you are building for the Android
  477. Goldfish emulator say N here.
  478. config X86_INTEL_CE
  479. bool "CE4100 TV platform"
  480. depends on PCI
  481. depends on PCI_GODIRECT
  482. depends on X86_IO_APIC
  483. depends on X86_32
  484. depends on X86_EXTENDED_PLATFORM
  485. select X86_REBOOTFIXUPS
  486. select OF
  487. select OF_EARLY_FLATTREE
  488. ---help---
  489. Select for the Intel CE media processor (CE4100) SOC.
  490. This option compiles in support for the CE4100 SOC for settop
  491. boxes and media devices.
  492. config X86_INTEL_MID
  493. bool "Intel MID platform support"
  494. depends on X86_EXTENDED_PLATFORM
  495. depends on X86_PLATFORM_DEVICES
  496. depends on PCI
  497. depends on X86_64 || (PCI_GOANY && X86_32)
  498. depends on X86_IO_APIC
  499. select SFI
  500. select I2C
  501. select DW_APB_TIMER
  502. select APB_TIMER
  503. select INTEL_SCU_IPC
  504. select MFD_INTEL_MSIC
  505. ---help---
  506. Select to build a kernel capable of supporting Intel MID (Mobile
  507. Internet Device) platform systems which do not have the PCI legacy
  508. interfaces. If you are building for a PC class system say N here.
  509. Intel MID platforms are based on an Intel processor and chipset which
  510. consume less power than most of the x86 derivatives.
  511. config X86_INTEL_QUARK
  512. bool "Intel Quark platform support"
  513. depends on X86_32
  514. depends on X86_EXTENDED_PLATFORM
  515. depends on X86_PLATFORM_DEVICES
  516. depends on X86_TSC
  517. depends on PCI
  518. depends on PCI_GOANY
  519. depends on X86_IO_APIC
  520. select IOSF_MBI
  521. select INTEL_IMR
  522. select COMMON_CLK
  523. ---help---
  524. Select to include support for Quark X1000 SoC.
  525. Say Y here if you have a Quark based system such as the Arduino
  526. compatible Intel Galileo.
  527. config X86_INTEL_LPSS
  528. bool "Intel Low Power Subsystem Support"
  529. depends on X86 && ACPI
  530. select COMMON_CLK
  531. select PINCTRL
  532. select IOSF_MBI
  533. ---help---
  534. Select to build support for Intel Low Power Subsystem such as
  535. found on Intel Lynxpoint PCH. Selecting this option enables
  536. things like clock tree (common clock framework) and pincontrol
  537. which are needed by the LPSS peripheral drivers.
  538. config X86_AMD_PLATFORM_DEVICE
  539. bool "AMD ACPI2Platform devices support"
  540. depends on ACPI
  541. select COMMON_CLK
  542. select PINCTRL
  543. ---help---
  544. Select to interpret AMD specific ACPI device to platform device
  545. such as I2C, UART, GPIO found on AMD Carrizo and later chipsets.
  546. I2C and UART depend on COMMON_CLK to set clock. GPIO driver is
  547. implemented under PINCTRL subsystem.
  548. config IOSF_MBI
  549. tristate "Intel SoC IOSF Sideband support for SoC platforms"
  550. depends on PCI
  551. ---help---
  552. This option enables sideband register access support for Intel SoC
  553. platforms. On these platforms the IOSF sideband is used in lieu of
  554. MSR's for some register accesses, mostly but not limited to thermal
  555. and power. Drivers may query the availability of this device to
  556. determine if they need the sideband in order to work on these
  557. platforms. The sideband is available on the following SoC products.
  558. This list is not meant to be exclusive.
  559. - BayTrail
  560. - Braswell
  561. - Quark
  562. You should say Y if you are running a kernel on one of these SoC's.
  563. config IOSF_MBI_DEBUG
  564. bool "Enable IOSF sideband access through debugfs"
  565. depends on IOSF_MBI && DEBUG_FS
  566. ---help---
  567. Select this option to expose the IOSF sideband access registers (MCR,
  568. MDR, MCRX) through debugfs to write and read register information from
  569. different units on the SoC. This is most useful for obtaining device
  570. state information for debug and analysis. As this is a general access
  571. mechanism, users of this option would have specific knowledge of the
  572. device they want to access.
  573. If you don't require the option or are in doubt, say N.
  574. config X86_RDC321X
  575. bool "RDC R-321x SoC"
  576. depends on X86_32
  577. depends on X86_EXTENDED_PLATFORM
  578. select M486
  579. select X86_REBOOTFIXUPS
  580. ---help---
  581. This option is needed for RDC R-321x system-on-chip, also known
  582. as R-8610-(G).
  583. If you don't have one of these chips, you should say N here.
  584. config X86_32_NON_STANDARD
  585. bool "Support non-standard 32-bit SMP architectures"
  586. depends on X86_32 && SMP
  587. depends on X86_EXTENDED_PLATFORM
  588. ---help---
  589. This option compiles in the bigsmp and STA2X11 default
  590. subarchitectures. It is intended for a generic binary
  591. kernel. If you select them all, kernel will probe it one by
  592. one and will fallback to default.
  593. # Alphabetically sorted list of Non standard 32 bit platforms
  594. config X86_SUPPORTS_MEMORY_FAILURE
  595. def_bool y
  596. # MCE code calls memory_failure():
  597. depends on X86_MCE
  598. # On 32-bit this adds too big of NODES_SHIFT and we run out of page flags:
  599. # On 32-bit SPARSEMEM adds too big of SECTIONS_WIDTH:
  600. depends on X86_64 || !SPARSEMEM
  601. select ARCH_SUPPORTS_MEMORY_FAILURE
  602. config STA2X11
  603. bool "STA2X11 Companion Chip Support"
  604. depends on X86_32_NON_STANDARD && PCI
  605. select ARCH_HAS_PHYS_TO_DMA
  606. select X86_DEV_DMA_OPS
  607. select X86_DMA_REMAP
  608. select SWIOTLB
  609. select MFD_STA2X11
  610. select GPIOLIB
  611. default n
  612. ---help---
  613. This adds support for boards based on the STA2X11 IO-Hub,
  614. a.k.a. "ConneXt". The chip is used in place of the standard
  615. PC chipset, so all "standard" peripherals are missing. If this
  616. option is selected the kernel will still be able to boot on
  617. standard PC machines.
  618. config X86_32_IRIS
  619. tristate "Eurobraille/Iris poweroff module"
  620. depends on X86_32
  621. ---help---
  622. The Iris machines from EuroBraille do not have APM or ACPI support
  623. to shut themselves down properly. A special I/O sequence is
  624. needed to do so, which is what this module does at
  625. kernel shutdown.
  626. This is only for Iris machines from EuroBraille.
  627. If unused, say N.
  628. config SCHED_OMIT_FRAME_POINTER
  629. def_bool y
  630. prompt "Single-depth WCHAN output"
  631. depends on X86
  632. ---help---
  633. Calculate simpler /proc/<PID>/wchan values. If this option
  634. is disabled then wchan values will recurse back to the
  635. caller function. This provides more accurate wchan values,
  636. at the expense of slightly more scheduling overhead.
  637. If in doubt, say "Y".
  638. menuconfig HYPERVISOR_GUEST
  639. bool "Linux guest support"
  640. ---help---
  641. Say Y here to enable options for running Linux under various hyper-
  642. visors. This option enables basic hypervisor detection and platform
  643. setup.
  644. If you say N, all options in this submenu will be skipped and
  645. disabled, and Linux guest support won't be built in.
  646. if HYPERVISOR_GUEST
  647. config PARAVIRT
  648. bool "Enable paravirtualization code"
  649. ---help---
  650. This changes the kernel so it can modify itself when it is run
  651. under a hypervisor, potentially improving performance significantly
  652. over full virtualization. However, when run without a hypervisor
  653. the kernel is theoretically slower and slightly larger.
  654. config PARAVIRT_DEBUG
  655. bool "paravirt-ops debugging"
  656. depends on PARAVIRT && DEBUG_KERNEL
  657. ---help---
  658. Enable to debug paravirt_ops internals. Specifically, BUG if
  659. a paravirt_op is missing when it is called.
  660. config PARAVIRT_SPINLOCKS
  661. bool "Paravirtualization layer for spinlocks"
  662. depends on PARAVIRT && SMP
  663. ---help---
  664. Paravirtualized spinlocks allow a pvops backend to replace the
  665. spinlock implementation with something virtualization-friendly
  666. (for example, block the virtual CPU rather than spinning).
  667. It has a minimal impact on native kernels and gives a nice performance
  668. benefit on paravirtualized KVM / Xen kernels.
  669. If you are unsure how to answer this question, answer Y.
  670. config QUEUED_LOCK_STAT
  671. bool "Paravirt queued spinlock statistics"
  672. depends on PARAVIRT_SPINLOCKS && DEBUG_FS
  673. ---help---
  674. Enable the collection of statistical data on the slowpath
  675. behavior of paravirtualized queued spinlocks and report
  676. them on debugfs.
  677. source "arch/x86/xen/Kconfig"
  678. config KVM_GUEST
  679. bool "KVM Guest support (including kvmclock)"
  680. depends on PARAVIRT
  681. select PARAVIRT_CLOCK
  682. default y
  683. ---help---
  684. This option enables various optimizations for running under the KVM
  685. hypervisor. It includes a paravirtualized clock, so that instead
  686. of relying on a PIT (or probably other) emulation by the
  687. underlying device model, the host provides the guest with
  688. timing infrastructure such as time of day, and system time
  689. config KVM_DEBUG_FS
  690. bool "Enable debug information for KVM Guests in debugfs"
  691. depends on KVM_GUEST && DEBUG_FS
  692. default n
  693. ---help---
  694. This option enables collection of various statistics for KVM guest.
  695. Statistics are displayed in debugfs filesystem. Enabling this option
  696. may incur significant overhead.
  697. config PARAVIRT_TIME_ACCOUNTING
  698. bool "Paravirtual steal time accounting"
  699. depends on PARAVIRT
  700. default n
  701. ---help---
  702. Select this option to enable fine granularity task steal time
  703. accounting. Time spent executing other tasks in parallel with
  704. the current vCPU is discounted from the vCPU power. To account for
  705. that, there can be a small performance impact.
  706. If in doubt, say N here.
  707. config PARAVIRT_CLOCK
  708. bool
  709. config JAILHOUSE_GUEST
  710. bool "Jailhouse non-root cell support"
  711. depends on X86_64 && PCI
  712. select X86_PM_TIMER
  713. ---help---
  714. This option allows to run Linux as guest in a Jailhouse non-root
  715. cell. You can leave this option disabled if you only want to start
  716. Jailhouse and run Linux afterwards in the root cell.
  717. endif #HYPERVISOR_GUEST
  718. config NO_BOOTMEM
  719. def_bool y
  720. source "arch/x86/Kconfig.cpu"
  721. config HPET_TIMER
  722. def_bool X86_64
  723. prompt "HPET Timer Support" if X86_32
  724. ---help---
  725. Use the IA-PC HPET (High Precision Event Timer) to manage
  726. time in preference to the PIT and RTC, if a HPET is
  727. present.
  728. HPET is the next generation timer replacing legacy 8254s.
  729. The HPET provides a stable time base on SMP
  730. systems, unlike the TSC, but it is more expensive to access,
  731. as it is off-chip. The interface used is documented
  732. in the HPET spec, revision 1.
  733. You can safely choose Y here. However, HPET will only be
  734. activated if the platform and the BIOS support this feature.
  735. Otherwise the 8254 will be used for timing services.
  736. Choose N to continue using the legacy 8254 timer.
  737. config HPET_EMULATE_RTC
  738. def_bool y
  739. depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y)
  740. config APB_TIMER
  741. def_bool y if X86_INTEL_MID
  742. prompt "Intel MID APB Timer Support" if X86_INTEL_MID
  743. select DW_APB_TIMER
  744. depends on X86_INTEL_MID && SFI
  745. help
  746. APB timer is the replacement for 8254, HPET on X86 MID platforms.
  747. The APBT provides a stable time base on SMP
  748. systems, unlike the TSC, but it is more expensive to access,
  749. as it is off-chip. APB timers are always running regardless of CPU
  750. C states, they are used as per CPU clockevent device when possible.
  751. # Mark as expert because too many people got it wrong.
  752. # The code disables itself when not needed.
  753. config DMI
  754. default y
  755. select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
  756. bool "Enable DMI scanning" if EXPERT
  757. ---help---
  758. Enabled scanning of DMI to identify machine quirks. Say Y
  759. here unless you have verified that your setup is not
  760. affected by entries in the DMI blacklist. Required by PNP
  761. BIOS code.
  762. config GART_IOMMU
  763. bool "Old AMD GART IOMMU support"
  764. select IOMMU_HELPER
  765. select SWIOTLB
  766. depends on X86_64 && PCI && AMD_NB
  767. ---help---
  768. Provides a driver for older AMD Athlon64/Opteron/Turion/Sempron
  769. GART based hardware IOMMUs.
  770. The GART supports full DMA access for devices with 32-bit access
  771. limitations, on systems with more than 3 GB. This is usually needed
  772. for USB, sound, many IDE/SATA chipsets and some other devices.
  773. Newer systems typically have a modern AMD IOMMU, supported via
  774. the CONFIG_AMD_IOMMU=y config option.
  775. In normal configurations this driver is only active when needed:
  776. there's more than 3 GB of memory and the system contains a
  777. 32-bit limited device.
  778. If unsure, say Y.
  779. config CALGARY_IOMMU
  780. bool "IBM Calgary IOMMU support"
  781. select IOMMU_HELPER
  782. select SWIOTLB
  783. depends on X86_64 && PCI
  784. ---help---
  785. Support for hardware IOMMUs in IBM's xSeries x366 and x460
  786. systems. Needed to run systems with more than 3GB of memory
  787. properly with 32-bit PCI devices that do not support DAC
  788. (Double Address Cycle). Calgary also supports bus level
  789. isolation, where all DMAs pass through the IOMMU. This
  790. prevents them from going anywhere except their intended
  791. destination. This catches hard-to-find kernel bugs and
  792. mis-behaving drivers and devices that do not use the DMA-API
  793. properly to set up their DMA buffers. The IOMMU can be
  794. turned off at boot time with the iommu=off parameter.
  795. Normally the kernel will make the right choice by itself.
  796. If unsure, say Y.
  797. config CALGARY_IOMMU_ENABLED_BY_DEFAULT
  798. def_bool y
  799. prompt "Should Calgary be enabled by default?"
  800. depends on CALGARY_IOMMU
  801. ---help---
  802. Should Calgary be enabled by default? if you choose 'y', Calgary
  803. will be used (if it exists). If you choose 'n', Calgary will not be
  804. used even if it exists. If you choose 'n' and would like to use
  805. Calgary anyway, pass 'iommu=calgary' on the kernel command line.
  806. If unsure, say Y.
  807. config MAXSMP
  808. bool "Enable Maximum number of SMP Processors and NUMA Nodes"
  809. depends on X86_64 && SMP && DEBUG_KERNEL
  810. select CPUMASK_OFFSTACK
  811. ---help---
  812. Enable maximum number of CPUS and NUMA Nodes for this architecture.
  813. If unsure, say N.
  814. #
  815. # The maximum number of CPUs supported:
  816. #
  817. # The main config value is NR_CPUS, which defaults to NR_CPUS_DEFAULT,
  818. # and which can be configured interactively in the
  819. # [NR_CPUS_RANGE_BEGIN ... NR_CPUS_RANGE_END] range.
  820. #
  821. # The ranges are different on 32-bit and 64-bit kernels, depending on
  822. # hardware capabilities and scalability features of the kernel.
  823. #
  824. # ( If MAXSMP is enabled we just use the highest possible value and disable
  825. # interactive configuration. )
  826. #
  827. config NR_CPUS_RANGE_BEGIN
  828. int
  829. default NR_CPUS_RANGE_END if MAXSMP
  830. default 1 if !SMP
  831. default 2
  832. config NR_CPUS_RANGE_END
  833. int
  834. depends on X86_32
  835. default 64 if SMP && X86_BIGSMP
  836. default 8 if SMP && !X86_BIGSMP
  837. default 1 if !SMP
  838. config NR_CPUS_RANGE_END
  839. int
  840. depends on X86_64
  841. default 8192 if SMP && ( MAXSMP || CPUMASK_OFFSTACK)
  842. default 512 if SMP && (!MAXSMP && !CPUMASK_OFFSTACK)
  843. default 1 if !SMP
  844. config NR_CPUS_DEFAULT
  845. int
  846. depends on X86_32
  847. default 32 if X86_BIGSMP
  848. default 8 if SMP
  849. default 1 if !SMP
  850. config NR_CPUS_DEFAULT
  851. int
  852. depends on X86_64
  853. default 8192 if MAXSMP
  854. default 64 if SMP
  855. default 1 if !SMP
  856. config NR_CPUS
  857. int "Maximum number of CPUs" if SMP && !MAXSMP
  858. range NR_CPUS_RANGE_BEGIN NR_CPUS_RANGE_END
  859. default NR_CPUS_DEFAULT
  860. ---help---
  861. This allows you to specify the maximum number of CPUs which this
  862. kernel will support. If CPUMASK_OFFSTACK is enabled, the maximum
  863. supported value is 8192, otherwise the maximum value is 512. The
  864. minimum value which makes sense is 2.
  865. This is purely to save memory: each supported CPU adds about 8KB
  866. to the kernel image.
  867. config SCHED_SMT
  868. def_bool y if SMP
  869. config SCHED_MC
  870. def_bool y
  871. prompt "Multi-core scheduler support"
  872. depends on SMP
  873. ---help---
  874. Multi-core scheduler support improves the CPU scheduler's decision
  875. making when dealing with multi-core CPU chips at a cost of slightly
  876. increased overhead in some places. If unsure say N here.
  877. config SCHED_MC_PRIO
  878. bool "CPU core priorities scheduler support"
  879. depends on SCHED_MC && CPU_SUP_INTEL
  880. select X86_INTEL_PSTATE
  881. select CPU_FREQ
  882. default y
  883. ---help---
  884. Intel Turbo Boost Max Technology 3.0 enabled CPUs have a
  885. core ordering determined at manufacturing time, which allows
  886. certain cores to reach higher turbo frequencies (when running
  887. single threaded workloads) than others.
  888. Enabling this kernel feature teaches the scheduler about
  889. the TBM3 (aka ITMT) priority order of the CPU cores and adjusts the
  890. scheduler's CPU selection logic accordingly, so that higher
  891. overall system performance can be achieved.
  892. This feature will have no effect on CPUs without this feature.
  893. If unsure say Y here.
  894. config UP_LATE_INIT
  895. def_bool y
  896. depends on !SMP && X86_LOCAL_APIC
  897. config X86_UP_APIC
  898. bool "Local APIC support on uniprocessors" if !PCI_MSI
  899. default PCI_MSI
  900. depends on X86_32 && !SMP && !X86_32_NON_STANDARD
  901. ---help---
  902. A local APIC (Advanced Programmable Interrupt Controller) is an
  903. integrated interrupt controller in the CPU. If you have a single-CPU
  904. system which has a processor with a local APIC, you can say Y here to
  905. enable and use it. If you say Y here even though your machine doesn't
  906. have a local APIC, then the kernel will still run with no slowdown at
  907. all. The local APIC supports CPU-generated self-interrupts (timer,
  908. performance counters), and the NMI watchdog which detects hard
  909. lockups.
  910. config X86_UP_IOAPIC
  911. bool "IO-APIC support on uniprocessors"
  912. depends on X86_UP_APIC
  913. ---help---
  914. An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an
  915. SMP-capable replacement for PC-style interrupt controllers. Most
  916. SMP systems and many recent uniprocessor systems have one.
  917. If you have a single-CPU system with an IO-APIC, you can say Y here
  918. to use it. If you say Y here even though your machine doesn't have
  919. an IO-APIC, then the kernel will still run with no slowdown at all.
  920. config X86_LOCAL_APIC
  921. def_bool y
  922. depends on X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI
  923. select IRQ_DOMAIN_HIERARCHY
  924. select PCI_MSI_IRQ_DOMAIN if PCI_MSI
  925. config X86_IO_APIC
  926. def_bool y
  927. depends on X86_LOCAL_APIC || X86_UP_IOAPIC
  928. config X86_REROUTE_FOR_BROKEN_BOOT_IRQS
  929. bool "Reroute for broken boot IRQs"
  930. depends on X86_IO_APIC
  931. ---help---
  932. This option enables a workaround that fixes a source of
  933. spurious interrupts. This is recommended when threaded
  934. interrupt handling is used on systems where the generation of
  935. superfluous "boot interrupts" cannot be disabled.
  936. Some chipsets generate a legacy INTx "boot IRQ" when the IRQ
  937. entry in the chipset's IO-APIC is masked (as, e.g. the RT
  938. kernel does during interrupt handling). On chipsets where this
  939. boot IRQ generation cannot be disabled, this workaround keeps
  940. the original IRQ line masked so that only the equivalent "boot
  941. IRQ" is delivered to the CPUs. The workaround also tells the
  942. kernel to set up the IRQ handler on the boot IRQ line. In this
  943. way only one interrupt is delivered to the kernel. Otherwise
  944. the spurious second interrupt may cause the kernel to bring
  945. down (vital) interrupt lines.
  946. Only affects "broken" chipsets. Interrupt sharing may be
  947. increased on these systems.
  948. config X86_MCE
  949. bool "Machine Check / overheating reporting"
  950. select GENERIC_ALLOCATOR
  951. default y
  952. ---help---
  953. Machine Check support allows the processor to notify the
  954. kernel if it detects a problem (e.g. overheating, data corruption).
  955. The action the kernel takes depends on the severity of the problem,
  956. ranging from warning messages to halting the machine.
  957. config X86_MCELOG_LEGACY
  958. bool "Support for deprecated /dev/mcelog character device"
  959. depends on X86_MCE
  960. ---help---
  961. Enable support for /dev/mcelog which is needed by the old mcelog
  962. userspace logging daemon. Consider switching to the new generation
  963. rasdaemon solution.
  964. config X86_MCE_INTEL
  965. def_bool y
  966. prompt "Intel MCE features"
  967. depends on X86_MCE && X86_LOCAL_APIC
  968. ---help---
  969. Additional support for intel specific MCE features such as
  970. the thermal monitor.
  971. config X86_MCE_AMD
  972. def_bool y
  973. prompt "AMD MCE features"
  974. depends on X86_MCE && X86_LOCAL_APIC && AMD_NB
  975. ---help---
  976. Additional support for AMD specific MCE features such as
  977. the DRAM Error Threshold.
  978. config X86_ANCIENT_MCE
  979. bool "Support for old Pentium 5 / WinChip machine checks"
  980. depends on X86_32 && X86_MCE
  981. ---help---
  982. Include support for machine check handling on old Pentium 5 or WinChip
  983. systems. These typically need to be enabled explicitly on the command
  984. line.
  985. config X86_MCE_THRESHOLD
  986. depends on X86_MCE_AMD || X86_MCE_INTEL
  987. def_bool y
  988. config X86_MCE_INJECT
  989. depends on X86_MCE && X86_LOCAL_APIC && DEBUG_FS
  990. tristate "Machine check injector support"
  991. ---help---
  992. Provide support for injecting machine checks for testing purposes.
  993. If you don't know what a machine check is and you don't do kernel
  994. QA it is safe to say n.
  995. config X86_THERMAL_VECTOR
  996. def_bool y
  997. depends on X86_MCE_INTEL
  998. source "arch/x86/events/Kconfig"
  999. config X86_LEGACY_VM86
  1000. bool "Legacy VM86 support"
  1001. default n
  1002. depends on X86_32
  1003. ---help---
  1004. This option allows user programs to put the CPU into V8086
  1005. mode, which is an 80286-era approximation of 16-bit real mode.
  1006. Some very old versions of X and/or vbetool require this option
  1007. for user mode setting. Similarly, DOSEMU will use it if
  1008. available to accelerate real mode DOS programs. However, any
  1009. recent version of DOSEMU, X, or vbetool should be fully
  1010. functional even without kernel VM86 support, as they will all
  1011. fall back to software emulation. Nevertheless, if you are using
  1012. a 16-bit DOS program where 16-bit performance matters, vm86
  1013. mode might be faster than emulation and you might want to
  1014. enable this option.
  1015. Note that any app that works on a 64-bit kernel is unlikely to
  1016. need this option, as 64-bit kernels don't, and can't, support
  1017. V8086 mode. This option is also unrelated to 16-bit protected
  1018. mode and is not needed to run most 16-bit programs under Wine.
  1019. Enabling this option increases the complexity of the kernel
  1020. and slows down exception handling a tiny bit.
  1021. If unsure, say N here.
  1022. config VM86
  1023. bool
  1024. default X86_LEGACY_VM86
  1025. config X86_16BIT
  1026. bool "Enable support for 16-bit segments" if EXPERT
  1027. default y
  1028. depends on MODIFY_LDT_SYSCALL
  1029. ---help---
  1030. This option is required by programs like Wine to run 16-bit
  1031. protected mode legacy code on x86 processors. Disabling
  1032. this option saves about 300 bytes on i386, or around 6K text
  1033. plus 16K runtime memory on x86-64,
  1034. config X86_ESPFIX32
  1035. def_bool y
  1036. depends on X86_16BIT && X86_32
  1037. config X86_ESPFIX64
  1038. def_bool y
  1039. depends on X86_16BIT && X86_64
  1040. config X86_VSYSCALL_EMULATION
  1041. bool "Enable vsyscall emulation" if EXPERT
  1042. default y
  1043. depends on X86_64
  1044. ---help---
  1045. This enables emulation of the legacy vsyscall page. Disabling
  1046. it is roughly equivalent to booting with vsyscall=none, except
  1047. that it will also disable the helpful warning if a program
  1048. tries to use a vsyscall. With this option set to N, offending
  1049. programs will just segfault, citing addresses of the form
  1050. 0xffffffffff600?00.
  1051. This option is required by many programs built before 2013, and
  1052. care should be used even with newer programs if set to N.
  1053. Disabling this option saves about 7K of kernel size and
  1054. possibly 4K of additional runtime pagetable memory.
  1055. config TOSHIBA
  1056. tristate "Toshiba Laptop support"
  1057. depends on X86_32
  1058. ---help---
  1059. This adds a driver to safely access the System Management Mode of
  1060. the CPU on Toshiba portables with a genuine Toshiba BIOS. It does
  1061. not work on models with a Phoenix BIOS. The System Management Mode
  1062. is used to set the BIOS and power saving options on Toshiba portables.
  1063. For information on utilities to make use of this driver see the
  1064. Toshiba Linux utilities web site at:
  1065. <http://www.buzzard.org.uk/toshiba/>.
  1066. Say Y if you intend to run this kernel on a Toshiba portable.
  1067. Say N otherwise.
  1068. config I8K
  1069. tristate "Dell i8k legacy laptop support"
  1070. select HWMON
  1071. select SENSORS_DELL_SMM
  1072. ---help---
  1073. This option enables legacy /proc/i8k userspace interface in hwmon
  1074. dell-smm-hwmon driver. Character file /proc/i8k reports bios version,
  1075. temperature and allows controlling fan speeds of Dell laptops via
  1076. System Management Mode. For old Dell laptops (like Dell Inspiron 8000)
  1077. it reports also power and hotkey status. For fan speed control is
  1078. needed userspace package i8kutils.
  1079. Say Y if you intend to run this kernel on old Dell laptops or want to
  1080. use userspace package i8kutils.
  1081. Say N otherwise.
  1082. config X86_REBOOTFIXUPS
  1083. bool "Enable X86 board specific fixups for reboot"
  1084. depends on X86_32
  1085. ---help---
  1086. This enables chipset and/or board specific fixups to be done
  1087. in order to get reboot to work correctly. This is only needed on
  1088. some combinations of hardware and BIOS. The symptom, for which
  1089. this config is intended, is when reboot ends with a stalled/hung
  1090. system.
  1091. Currently, the only fixup is for the Geode machines using
  1092. CS5530A and CS5536 chipsets and the RDC R-321x SoC.
  1093. Say Y if you want to enable the fixup. Currently, it's safe to
  1094. enable this option even if you don't need it.
  1095. Say N otherwise.
  1096. config MICROCODE
  1097. bool "CPU microcode loading support"
  1098. default y
  1099. depends on CPU_SUP_AMD || CPU_SUP_INTEL
  1100. select FW_LOADER
  1101. ---help---
  1102. If you say Y here, you will be able to update the microcode on
  1103. Intel and AMD processors. The Intel support is for the IA32 family,
  1104. e.g. Pentium Pro, Pentium II, Pentium III, Pentium 4, Xeon etc. The
  1105. AMD support is for families 0x10 and later. You will obviously need
  1106. the actual microcode binary data itself which is not shipped with
  1107. the Linux kernel.
  1108. The preferred method to load microcode from a detached initrd is described
  1109. in Documentation/x86/microcode.txt. For that you need to enable
  1110. CONFIG_BLK_DEV_INITRD in order for the loader to be able to scan the
  1111. initrd for microcode blobs.
  1112. In addition, you can build the microcode into the kernel. For that you
  1113. need to add the vendor-supplied microcode to the CONFIG_EXTRA_FIRMWARE
  1114. config option.
  1115. config MICROCODE_INTEL
  1116. bool "Intel microcode loading support"
  1117. depends on MICROCODE
  1118. default MICROCODE
  1119. select FW_LOADER
  1120. ---help---
  1121. This options enables microcode patch loading support for Intel
  1122. processors.
  1123. For the current Intel microcode data package go to
  1124. <https://downloadcenter.intel.com> and search for
  1125. 'Linux Processor Microcode Data File'.
  1126. config MICROCODE_AMD
  1127. bool "AMD microcode loading support"
  1128. depends on MICROCODE
  1129. select FW_LOADER
  1130. ---help---
  1131. If you select this option, microcode patch loading support for AMD
  1132. processors will be enabled.
  1133. config MICROCODE_OLD_INTERFACE
  1134. def_bool y
  1135. depends on MICROCODE
  1136. config X86_MSR
  1137. tristate "/dev/cpu/*/msr - Model-specific register support"
  1138. ---help---
  1139. This device gives privileged processes access to the x86
  1140. Model-Specific Registers (MSRs). It is a character device with
  1141. major 202 and minors 0 to 31 for /dev/cpu/0/msr to /dev/cpu/31/msr.
  1142. MSR accesses are directed to a specific CPU on multi-processor
  1143. systems.
  1144. config X86_CPUID
  1145. tristate "/dev/cpu/*/cpuid - CPU information support"
  1146. ---help---
  1147. This device gives processes access to the x86 CPUID instruction to
  1148. be executed on a specific processor. It is a character device
  1149. with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to
  1150. /dev/cpu/31/cpuid.
  1151. choice
  1152. prompt "High Memory Support"
  1153. default HIGHMEM4G
  1154. depends on X86_32
  1155. config NOHIGHMEM
  1156. bool "off"
  1157. ---help---
  1158. Linux can use up to 64 Gigabytes of physical memory on x86 systems.
  1159. However, the address space of 32-bit x86 processors is only 4
  1160. Gigabytes large. That means that, if you have a large amount of
  1161. physical memory, not all of it can be "permanently mapped" by the
  1162. kernel. The physical memory that's not permanently mapped is called
  1163. "high memory".
  1164. If you are compiling a kernel which will never run on a machine with
  1165. more than 1 Gigabyte total physical RAM, answer "off" here (default
  1166. choice and suitable for most users). This will result in a "3GB/1GB"
  1167. split: 3GB are mapped so that each process sees a 3GB virtual memory
  1168. space and the remaining part of the 4GB virtual memory space is used
  1169. by the kernel to permanently map as much physical memory as
  1170. possible.
  1171. If the machine has between 1 and 4 Gigabytes physical RAM, then
  1172. answer "4GB" here.
  1173. If more than 4 Gigabytes is used then answer "64GB" here. This
  1174. selection turns Intel PAE (Physical Address Extension) mode on.
  1175. PAE implements 3-level paging on IA32 processors. PAE is fully
  1176. supported by Linux, PAE mode is implemented on all recent Intel
  1177. processors (Pentium Pro and better). NOTE: If you say "64GB" here,
  1178. then the kernel will not boot on CPUs that don't support PAE!
  1179. The actual amount of total physical memory will either be
  1180. auto detected or can be forced by using a kernel command line option
  1181. such as "mem=256M". (Try "man bootparam" or see the documentation of
  1182. your boot loader (lilo or loadlin) about how to pass options to the
  1183. kernel at boot time.)
  1184. If unsure, say "off".
  1185. config HIGHMEM4G
  1186. bool "4GB"
  1187. ---help---
  1188. Select this if you have a 32-bit processor and between 1 and 4
  1189. gigabytes of physical RAM.
  1190. config HIGHMEM64G
  1191. bool "64GB"
  1192. depends on !M486 && !M586 && !M586TSC && !M586MMX && !MGEODE_LX && !MGEODEGX1 && !MCYRIXIII && !MELAN && !MWINCHIPC6 && !WINCHIP3D && !MK6
  1193. select X86_PAE
  1194. ---help---
  1195. Select this if you have a 32-bit processor and more than 4
  1196. gigabytes of physical RAM.
  1197. endchoice
  1198. choice
  1199. prompt "Memory split" if EXPERT
  1200. default VMSPLIT_3G
  1201. depends on X86_32
  1202. ---help---
  1203. Select the desired split between kernel and user memory.
  1204. If the address range available to the kernel is less than the
  1205. physical memory installed, the remaining memory will be available
  1206. as "high memory". Accessing high memory is a little more costly
  1207. than low memory, as it needs to be mapped into the kernel first.
  1208. Note that increasing the kernel address space limits the range
  1209. available to user programs, making the address space there
  1210. tighter. Selecting anything other than the default 3G/1G split
  1211. will also likely make your kernel incompatible with binary-only
  1212. kernel modules.
  1213. If you are not absolutely sure what you are doing, leave this
  1214. option alone!
  1215. config VMSPLIT_3G
  1216. bool "3G/1G user/kernel split"
  1217. config VMSPLIT_3G_OPT
  1218. depends on !X86_PAE
  1219. bool "3G/1G user/kernel split (for full 1G low memory)"
  1220. config VMSPLIT_2G
  1221. bool "2G/2G user/kernel split"
  1222. config VMSPLIT_2G_OPT
  1223. depends on !X86_PAE
  1224. bool "2G/2G user/kernel split (for full 2G low memory)"
  1225. config VMSPLIT_1G
  1226. bool "1G/3G user/kernel split"
  1227. endchoice
  1228. config PAGE_OFFSET
  1229. hex
  1230. default 0xB0000000 if VMSPLIT_3G_OPT
  1231. default 0x80000000 if VMSPLIT_2G
  1232. default 0x78000000 if VMSPLIT_2G_OPT
  1233. default 0x40000000 if VMSPLIT_1G
  1234. default 0xC0000000
  1235. depends on X86_32
  1236. config HIGHMEM
  1237. def_bool y
  1238. depends on X86_32 && (HIGHMEM64G || HIGHMEM4G)
  1239. config X86_PAE
  1240. bool "PAE (Physical Address Extension) Support"
  1241. depends on X86_32 && !HIGHMEM4G
  1242. select PHYS_ADDR_T_64BIT
  1243. select SWIOTLB
  1244. ---help---
  1245. PAE is required for NX support, and furthermore enables
  1246. larger swapspace support for non-overcommit purposes. It
  1247. has the cost of more pagetable lookup overhead, and also
  1248. consumes more pagetable space per process.
  1249. config X86_5LEVEL
  1250. bool "Enable 5-level page tables support"
  1251. select DYNAMIC_MEMORY_LAYOUT
  1252. select SPARSEMEM_VMEMMAP
  1253. depends on X86_64
  1254. ---help---
  1255. 5-level paging enables access to larger address space:
  1256. upto 128 PiB of virtual address space and 4 PiB of
  1257. physical address space.
  1258. It will be supported by future Intel CPUs.
  1259. A kernel with the option enabled can be booted on machines that
  1260. support 4- or 5-level paging.
  1261. See Documentation/x86/x86_64/5level-paging.txt for more
  1262. information.
  1263. Say N if unsure.
  1264. config X86_DIRECT_GBPAGES
  1265. def_bool y
  1266. depends on X86_64 && !DEBUG_PAGEALLOC
  1267. ---help---
  1268. Certain kernel features effectively disable kernel
  1269. linear 1 GB mappings (even if the CPU otherwise
  1270. supports them), so don't confuse the user by printing
  1271. that we have them enabled.
  1272. config ARCH_HAS_MEM_ENCRYPT
  1273. def_bool y
  1274. config AMD_MEM_ENCRYPT
  1275. bool "AMD Secure Memory Encryption (SME) support"
  1276. depends on X86_64 && CPU_SUP_AMD
  1277. select DYNAMIC_PHYSICAL_MASK
  1278. ---help---
  1279. Say yes to enable support for the encryption of system memory.
  1280. This requires an AMD processor that supports Secure Memory
  1281. Encryption (SME).
  1282. config AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT
  1283. bool "Activate AMD Secure Memory Encryption (SME) by default"
  1284. default y
  1285. depends on AMD_MEM_ENCRYPT
  1286. ---help---
  1287. Say yes to have system memory encrypted by default if running on
  1288. an AMD processor that supports Secure Memory Encryption (SME).
  1289. If set to Y, then the encryption of system memory can be
  1290. deactivated with the mem_encrypt=off command line option.
  1291. If set to N, then the encryption of system memory can be
  1292. activated with the mem_encrypt=on command line option.
  1293. config ARCH_USE_MEMREMAP_PROT
  1294. def_bool y
  1295. depends on AMD_MEM_ENCRYPT
  1296. # Common NUMA Features
  1297. config NUMA
  1298. bool "Numa Memory Allocation and Scheduler Support"
  1299. depends on SMP
  1300. depends on X86_64 || (X86_32 && HIGHMEM64G && X86_BIGSMP)
  1301. default y if X86_BIGSMP
  1302. ---help---
  1303. Enable NUMA (Non Uniform Memory Access) support.
  1304. The kernel will try to allocate memory used by a CPU on the
  1305. local memory controller of the CPU and add some more
  1306. NUMA awareness to the kernel.
  1307. For 64-bit this is recommended if the system is Intel Core i7
  1308. (or later), AMD Opteron, or EM64T NUMA.
  1309. For 32-bit this is only needed if you boot a 32-bit
  1310. kernel on a 64-bit NUMA platform.
  1311. Otherwise, you should say N.
  1312. config AMD_NUMA
  1313. def_bool y
  1314. prompt "Old style AMD Opteron NUMA detection"
  1315. depends on X86_64 && NUMA && PCI
  1316. ---help---
  1317. Enable AMD NUMA node topology detection. You should say Y here if
  1318. you have a multi processor AMD system. This uses an old method to
  1319. read the NUMA configuration directly from the builtin Northbridge
  1320. of Opteron. It is recommended to use X86_64_ACPI_NUMA instead,
  1321. which also takes priority if both are compiled in.
  1322. config X86_64_ACPI_NUMA
  1323. def_bool y
  1324. prompt "ACPI NUMA detection"
  1325. depends on X86_64 && NUMA && ACPI && PCI
  1326. select ACPI_NUMA
  1327. ---help---
  1328. Enable ACPI SRAT based node topology detection.
  1329. # Some NUMA nodes have memory ranges that span
  1330. # other nodes. Even though a pfn is valid and
  1331. # between a node's start and end pfns, it may not
  1332. # reside on that node. See memmap_init_zone()
  1333. # for details.
  1334. config NODES_SPAN_OTHER_NODES
  1335. def_bool y
  1336. depends on X86_64_ACPI_NUMA
  1337. config NUMA_EMU
  1338. bool "NUMA emulation"
  1339. depends on NUMA
  1340. ---help---
  1341. Enable NUMA emulation. A flat machine will be split
  1342. into virtual nodes when booted with "numa=fake=N", where N is the
  1343. number of nodes. This is only useful for debugging.
  1344. config NODES_SHIFT
  1345. int "Maximum NUMA Nodes (as a power of 2)" if !MAXSMP
  1346. range 1 10
  1347. default "10" if MAXSMP
  1348. default "6" if X86_64
  1349. default "3"
  1350. depends on NEED_MULTIPLE_NODES
  1351. ---help---
  1352. Specify the maximum number of NUMA Nodes available on the target
  1353. system. Increases memory reserved to accommodate various tables.
  1354. config ARCH_HAVE_MEMORY_PRESENT
  1355. def_bool y
  1356. depends on X86_32 && DISCONTIGMEM
  1357. config ARCH_FLATMEM_ENABLE
  1358. def_bool y
  1359. depends on X86_32 && !NUMA
  1360. config ARCH_DISCONTIGMEM_ENABLE
  1361. def_bool y
  1362. depends on NUMA && X86_32
  1363. config ARCH_DISCONTIGMEM_DEFAULT
  1364. def_bool y
  1365. depends on NUMA && X86_32
  1366. config ARCH_SPARSEMEM_ENABLE
  1367. def_bool y
  1368. depends on X86_64 || NUMA || X86_32 || X86_32_NON_STANDARD
  1369. select SPARSEMEM_STATIC if X86_32
  1370. select SPARSEMEM_VMEMMAP_ENABLE if X86_64
  1371. config ARCH_SPARSEMEM_DEFAULT
  1372. def_bool y
  1373. depends on X86_64
  1374. config ARCH_SELECT_MEMORY_MODEL
  1375. def_bool y
  1376. depends on ARCH_SPARSEMEM_ENABLE
  1377. config ARCH_MEMORY_PROBE
  1378. bool "Enable sysfs memory/probe interface"
  1379. depends on X86_64 && MEMORY_HOTPLUG
  1380. help
  1381. This option enables a sysfs memory/probe interface for testing.
  1382. See Documentation/memory-hotplug.txt for more information.
  1383. If you are unsure how to answer this question, answer N.
  1384. config ARCH_PROC_KCORE_TEXT
  1385. def_bool y
  1386. depends on X86_64 && PROC_KCORE
  1387. config ILLEGAL_POINTER_VALUE
  1388. hex
  1389. default 0 if X86_32
  1390. default 0xdead000000000000 if X86_64
  1391. config X86_PMEM_LEGACY_DEVICE
  1392. bool
  1393. config X86_PMEM_LEGACY
  1394. tristate "Support non-standard NVDIMMs and ADR protected memory"
  1395. depends on PHYS_ADDR_T_64BIT
  1396. depends on BLK_DEV
  1397. select X86_PMEM_LEGACY_DEVICE
  1398. select LIBNVDIMM
  1399. help
  1400. Treat memory marked using the non-standard e820 type of 12 as used
  1401. by the Intel Sandy Bridge-EP reference BIOS as protected memory.
  1402. The kernel will offer these regions to the 'pmem' driver so
  1403. they can be used for persistent storage.
  1404. Say Y if unsure.
  1405. config HIGHPTE
  1406. bool "Allocate 3rd-level pagetables from highmem"
  1407. depends on HIGHMEM
  1408. ---help---
  1409. The VM uses one page table entry for each page of physical memory.
  1410. For systems with a lot of RAM, this can be wasteful of precious
  1411. low memory. Setting this option will put user-space page table
  1412. entries in high memory.
  1413. config X86_CHECK_BIOS_CORRUPTION
  1414. bool "Check for low memory corruption"
  1415. ---help---
  1416. Periodically check for memory corruption in low memory, which
  1417. is suspected to be caused by BIOS. Even when enabled in the
  1418. configuration, it is disabled at runtime. Enable it by
  1419. setting "memory_corruption_check=1" on the kernel command
  1420. line. By default it scans the low 64k of memory every 60
  1421. seconds; see the memory_corruption_check_size and
  1422. memory_corruption_check_period parameters in
  1423. Documentation/admin-guide/kernel-parameters.rst to adjust this.
  1424. When enabled with the default parameters, this option has
  1425. almost no overhead, as it reserves a relatively small amount
  1426. of memory and scans it infrequently. It both detects corruption
  1427. and prevents it from affecting the running system.
  1428. It is, however, intended as a diagnostic tool; if repeatable
  1429. BIOS-originated corruption always affects the same memory,
  1430. you can use memmap= to prevent the kernel from using that
  1431. memory.
  1432. config X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK
  1433. bool "Set the default setting of memory_corruption_check"
  1434. depends on X86_CHECK_BIOS_CORRUPTION
  1435. default y
  1436. ---help---
  1437. Set whether the default state of memory_corruption_check is
  1438. on or off.
  1439. config X86_RESERVE_LOW
  1440. int "Amount of low memory, in kilobytes, to reserve for the BIOS"
  1441. default 64
  1442. range 4 640
  1443. ---help---
  1444. Specify the amount of low memory to reserve for the BIOS.
  1445. The first page contains BIOS data structures that the kernel
  1446. must not use, so that page must always be reserved.
  1447. By default we reserve the first 64K of physical RAM, as a
  1448. number of BIOSes are known to corrupt that memory range
  1449. during events such as suspend/resume or monitor cable
  1450. insertion, so it must not be used by the kernel.
  1451. You can set this to 4 if you are absolutely sure that you
  1452. trust the BIOS to get all its memory reservations and usages
  1453. right. If you know your BIOS have problems beyond the
  1454. default 64K area, you can set this to 640 to avoid using the
  1455. entire low memory range.
  1456. If you have doubts about the BIOS (e.g. suspend/resume does
  1457. not work or there's kernel crashes after certain hardware
  1458. hotplug events) then you might want to enable
  1459. X86_CHECK_BIOS_CORRUPTION=y to allow the kernel to check
  1460. typical corruption patterns.
  1461. Leave this to the default value of 64 if you are unsure.
  1462. config MATH_EMULATION
  1463. bool
  1464. depends on MODIFY_LDT_SYSCALL
  1465. prompt "Math emulation" if X86_32
  1466. ---help---
  1467. Linux can emulate a math coprocessor (used for floating point
  1468. operations) if you don't have one. 486DX and Pentium processors have
  1469. a math coprocessor built in, 486SX and 386 do not, unless you added
  1470. a 487DX or 387, respectively. (The messages during boot time can
  1471. give you some hints here ["man dmesg"].) Everyone needs either a
  1472. coprocessor or this emulation.
  1473. If you don't have a math coprocessor, you need to say Y here; if you
  1474. say Y here even though you have a coprocessor, the coprocessor will
  1475. be used nevertheless. (This behavior can be changed with the kernel
  1476. command line option "no387", which comes handy if your coprocessor
  1477. is broken. Try "man bootparam" or see the documentation of your boot
  1478. loader (lilo or loadlin) about how to pass options to the kernel at
  1479. boot time.) This means that it is a good idea to say Y here if you
  1480. intend to use this kernel on different machines.
  1481. More information about the internals of the Linux math coprocessor
  1482. emulation can be found in <file:arch/x86/math-emu/README>.
  1483. If you are not sure, say Y; apart from resulting in a 66 KB bigger
  1484. kernel, it won't hurt.
  1485. config MTRR
  1486. def_bool y
  1487. prompt "MTRR (Memory Type Range Register) support" if EXPERT
  1488. ---help---
  1489. On Intel P6 family processors (Pentium Pro, Pentium II and later)
  1490. the Memory Type Range Registers (MTRRs) may be used to control
  1491. processor access to memory ranges. This is most useful if you have
  1492. a video (VGA) card on a PCI or AGP bus. Enabling write-combining
  1493. allows bus write transfers to be combined into a larger transfer
  1494. before bursting over the PCI/AGP bus. This can increase performance
  1495. of image write operations 2.5 times or more. Saying Y here creates a
  1496. /proc/mtrr file which may be used to manipulate your processor's
  1497. MTRRs. Typically the X server should use this.
  1498. This code has a reasonably generic interface so that similar
  1499. control registers on other processors can be easily supported
  1500. as well:
  1501. The Cyrix 6x86, 6x86MX and M II processors have Address Range
  1502. Registers (ARRs) which provide a similar functionality to MTRRs. For
  1503. these, the ARRs are used to emulate the MTRRs.
  1504. The AMD K6-2 (stepping 8 and above) and K6-3 processors have two
  1505. MTRRs. The Centaur C6 (WinChip) has 8 MCRs, allowing
  1506. write-combining. All of these processors are supported by this code
  1507. and it makes sense to say Y here if you have one of them.
  1508. Saying Y here also fixes a problem with buggy SMP BIOSes which only
  1509. set the MTRRs for the boot CPU and not for the secondary CPUs. This
  1510. can lead to all sorts of problems, so it's good to say Y here.
  1511. You can safely say Y even if your machine doesn't have MTRRs, you'll
  1512. just add about 9 KB to your kernel.
  1513. See <file:Documentation/x86/mtrr.txt> for more information.
  1514. config MTRR_SANITIZER
  1515. def_bool y
  1516. prompt "MTRR cleanup support"
  1517. depends on MTRR
  1518. ---help---
  1519. Convert MTRR layout from continuous to discrete, so X drivers can
  1520. add writeback entries.
  1521. Can be disabled with disable_mtrr_cleanup on the kernel command line.
  1522. The largest mtrr entry size for a continuous block can be set with
  1523. mtrr_chunk_size.
  1524. If unsure, say Y.
  1525. config MTRR_SANITIZER_ENABLE_DEFAULT
  1526. int "MTRR cleanup enable value (0-1)"
  1527. range 0 1
  1528. default "0"
  1529. depends on MTRR_SANITIZER
  1530. ---help---
  1531. Enable mtrr cleanup default value
  1532. config MTRR_SANITIZER_SPARE_REG_NR_DEFAULT
  1533. int "MTRR cleanup spare reg num (0-7)"
  1534. range 0 7
  1535. default "1"
  1536. depends on MTRR_SANITIZER
  1537. ---help---
  1538. mtrr cleanup spare entries default, it can be changed via
  1539. mtrr_spare_reg_nr=N on the kernel command line.
  1540. config X86_PAT
  1541. def_bool y
  1542. prompt "x86 PAT support" if EXPERT
  1543. depends on MTRR
  1544. ---help---
  1545. Use PAT attributes to setup page level cache control.
  1546. PATs are the modern equivalents of MTRRs and are much more
  1547. flexible than MTRRs.
  1548. Say N here if you see bootup problems (boot crash, boot hang,
  1549. spontaneous reboots) or a non-working video driver.
  1550. If unsure, say Y.
  1551. config ARCH_USES_PG_UNCACHED
  1552. def_bool y
  1553. depends on X86_PAT
  1554. config ARCH_RANDOM
  1555. def_bool y
  1556. prompt "x86 architectural random number generator" if EXPERT
  1557. ---help---
  1558. Enable the x86 architectural RDRAND instruction
  1559. (Intel Bull Mountain technology) to generate random numbers.
  1560. If supported, this is a high bandwidth, cryptographically
  1561. secure hardware random number generator.
  1562. config X86_SMAP
  1563. def_bool y
  1564. prompt "Supervisor Mode Access Prevention" if EXPERT
  1565. ---help---
  1566. Supervisor Mode Access Prevention (SMAP) is a security
  1567. feature in newer Intel processors. There is a small
  1568. performance cost if this enabled and turned on; there is
  1569. also a small increase in the kernel size if this is enabled.
  1570. If unsure, say Y.
  1571. config X86_INTEL_UMIP
  1572. def_bool y
  1573. depends on CPU_SUP_INTEL
  1574. prompt "Intel User Mode Instruction Prevention" if EXPERT
  1575. ---help---
  1576. The User Mode Instruction Prevention (UMIP) is a security
  1577. feature in newer Intel processors. If enabled, a general
  1578. protection fault is issued if the SGDT, SLDT, SIDT, SMSW
  1579. or STR instructions are executed in user mode. These instructions
  1580. unnecessarily expose information about the hardware state.
  1581. The vast majority of applications do not use these instructions.
  1582. For the very few that do, software emulation is provided in
  1583. specific cases in protected and virtual-8086 modes. Emulated
  1584. results are dummy.
  1585. config X86_INTEL_MPX
  1586. prompt "Intel MPX (Memory Protection Extensions)"
  1587. def_bool n
  1588. # Note: only available in 64-bit mode due to VMA flags shortage
  1589. depends on CPU_SUP_INTEL && X86_64
  1590. select ARCH_USES_HIGH_VMA_FLAGS
  1591. ---help---
  1592. MPX provides hardware features that can be used in
  1593. conjunction with compiler-instrumented code to check
  1594. memory references. It is designed to detect buffer
  1595. overflow or underflow bugs.
  1596. This option enables running applications which are
  1597. instrumented or otherwise use MPX. It does not use MPX
  1598. itself inside the kernel or to protect the kernel
  1599. against bad memory references.
  1600. Enabling this option will make the kernel larger:
  1601. ~8k of kernel text and 36 bytes of data on a 64-bit
  1602. defconfig. It adds a long to the 'mm_struct' which
  1603. will increase the kernel memory overhead of each
  1604. process and adds some branches to paths used during
  1605. exec() and munmap().
  1606. For details, see Documentation/x86/intel_mpx.txt
  1607. If unsure, say N.
  1608. config X86_INTEL_MEMORY_PROTECTION_KEYS
  1609. prompt "Intel Memory Protection Keys"
  1610. def_bool y
  1611. # Note: only available in 64-bit mode
  1612. depends on CPU_SUP_INTEL && X86_64
  1613. select ARCH_USES_HIGH_VMA_FLAGS
  1614. select ARCH_HAS_PKEYS
  1615. ---help---
  1616. Memory Protection Keys provides a mechanism for enforcing
  1617. page-based protections, but without requiring modification of the
  1618. page tables when an application changes protection domains.
  1619. For details, see Documentation/x86/protection-keys.txt
  1620. If unsure, say y.
  1621. choice
  1622. prompt "TSX enable mode"
  1623. depends on CPU_SUP_INTEL
  1624. default X86_INTEL_TSX_MODE_OFF
  1625. help
  1626. Intel's TSX (Transactional Synchronization Extensions) feature
  1627. allows to optimize locking protocols through lock elision which
  1628. can lead to a noticeable performance boost.
  1629. On the other hand it has been shown that TSX can be exploited
  1630. to form side channel attacks (e.g. TAA) and chances are there
  1631. will be more of those attacks discovered in the future.
  1632. Therefore TSX is not enabled by default (aka tsx=off). An admin
  1633. might override this decision by tsx=on the command line parameter.
  1634. Even with TSX enabled, the kernel will attempt to enable the best
  1635. possible TAA mitigation setting depending on the microcode available
  1636. for the particular machine.
  1637. This option allows to set the default tsx mode between tsx=on, =off
  1638. and =auto. See Documentation/admin-guide/kernel-parameters.txt for more
  1639. details.
  1640. Say off if not sure, auto if TSX is in use but it should be used on safe
  1641. platforms or on if TSX is in use and the security aspect of tsx is not
  1642. relevant.
  1643. config X86_INTEL_TSX_MODE_OFF
  1644. bool "off"
  1645. help
  1646. TSX is disabled if possible - equals to tsx=off command line parameter.
  1647. config X86_INTEL_TSX_MODE_ON
  1648. bool "on"
  1649. help
  1650. TSX is always enabled on TSX capable HW - equals the tsx=on command
  1651. line parameter.
  1652. config X86_INTEL_TSX_MODE_AUTO
  1653. bool "auto"
  1654. help
  1655. TSX is enabled on TSX capable HW that is believed to be safe against
  1656. side channel attacks- equals the tsx=auto command line parameter.
  1657. endchoice
  1658. config EFI
  1659. bool "EFI runtime service support"
  1660. depends on ACPI
  1661. select UCS2_STRING
  1662. select EFI_RUNTIME_WRAPPERS
  1663. ---help---
  1664. This enables the kernel to use EFI runtime services that are
  1665. available (such as the EFI variable services).
  1666. This option is only useful on systems that have EFI firmware.
  1667. In addition, you should use the latest ELILO loader available
  1668. at <http://elilo.sourceforge.net> in order to take advantage
  1669. of EFI runtime services. However, even with this option, the
  1670. resultant kernel should continue to boot on existing non-EFI
  1671. platforms.
  1672. config EFI_STUB
  1673. bool "EFI stub support"
  1674. depends on EFI && !X86_USE_3DNOW
  1675. select RELOCATABLE
  1676. ---help---
  1677. This kernel feature allows a bzImage to be loaded directly
  1678. by EFI firmware without the use of a bootloader.
  1679. See Documentation/efi-stub.txt for more information.
  1680. config EFI_MIXED
  1681. bool "EFI mixed-mode support"
  1682. depends on EFI_STUB && X86_64
  1683. ---help---
  1684. Enabling this feature allows a 64-bit kernel to be booted
  1685. on a 32-bit firmware, provided that your CPU supports 64-bit
  1686. mode.
  1687. Note that it is not possible to boot a mixed-mode enabled
  1688. kernel via the EFI boot stub - a bootloader that supports
  1689. the EFI handover protocol must be used.
  1690. If unsure, say N.
  1691. config SECCOMP
  1692. def_bool y
  1693. prompt "Enable seccomp to safely compute untrusted bytecode"
  1694. ---help---
  1695. This kernel feature is useful for number crunching applications
  1696. that may need to compute untrusted bytecode during their
  1697. execution. By using pipes or other transports made available to
  1698. the process as file descriptors supporting the read/write
  1699. syscalls, it's possible to isolate those applications in
  1700. their own address space using seccomp. Once seccomp is
  1701. enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
  1702. and the task is only allowed to execute a few safe syscalls
  1703. defined by each seccomp mode.
  1704. If unsure, say Y. Only embedded should say N here.
  1705. source kernel/Kconfig.hz
  1706. config KEXEC
  1707. bool "kexec system call"
  1708. select KEXEC_CORE
  1709. ---help---
  1710. kexec is a system call that implements the ability to shutdown your
  1711. current kernel, and to start another kernel. It is like a reboot
  1712. but it is independent of the system firmware. And like a reboot
  1713. you can start any kernel with it, not just Linux.
  1714. The name comes from the similarity to the exec system call.
  1715. It is an ongoing process to be certain the hardware in a machine
  1716. is properly shutdown, so do not be surprised if this code does not
  1717. initially work for you. As of this writing the exact hardware
  1718. interface is strongly in flux, so no good recommendation can be
  1719. made.
  1720. config KEXEC_FILE
  1721. bool "kexec file based system call"
  1722. select KEXEC_CORE
  1723. select BUILD_BIN2C
  1724. depends on X86_64
  1725. depends on CRYPTO=y
  1726. depends on CRYPTO_SHA256=y
  1727. ---help---
  1728. This is new version of kexec system call. This system call is
  1729. file based and takes file descriptors as system call argument
  1730. for kernel and initramfs as opposed to list of segments as
  1731. accepted by previous system call.
  1732. config ARCH_HAS_KEXEC_PURGATORY
  1733. def_bool KEXEC_FILE
  1734. config KEXEC_VERIFY_SIG
  1735. bool "Verify kernel signature during kexec_file_load() syscall"
  1736. depends on KEXEC_FILE
  1737. ---help---
  1738. This option makes kernel signature verification mandatory for
  1739. the kexec_file_load() syscall.
  1740. In addition to that option, you need to enable signature
  1741. verification for the corresponding kernel image type being
  1742. loaded in order for this to work.
  1743. config KEXEC_BZIMAGE_VERIFY_SIG
  1744. bool "Enable bzImage signature verification support"
  1745. depends on KEXEC_VERIFY_SIG
  1746. depends on SIGNED_PE_FILE_VERIFICATION
  1747. select SYSTEM_TRUSTED_KEYRING
  1748. ---help---
  1749. Enable bzImage signature verification support.
  1750. config CRASH_DUMP
  1751. bool "kernel crash dumps"
  1752. depends on X86_64 || (X86_32 && HIGHMEM)
  1753. ---help---
  1754. Generate crash dump after being started by kexec.
  1755. This should be normally only set in special crash dump kernels
  1756. which are loaded in the main kernel with kexec-tools into
  1757. a specially reserved region and then later executed after
  1758. a crash by kdump/kexec. The crash dump kernel must be compiled
  1759. to a memory address not used by the main kernel or BIOS using
  1760. PHYSICAL_START, or it must be built as a relocatable image
  1761. (CONFIG_RELOCATABLE=y).
  1762. For more details see Documentation/kdump/kdump.txt
  1763. config KEXEC_JUMP
  1764. bool "kexec jump"
  1765. depends on KEXEC && HIBERNATION
  1766. ---help---
  1767. Jump between original kernel and kexeced kernel and invoke
  1768. code in physical address mode via KEXEC
  1769. config PHYSICAL_START
  1770. hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
  1771. default "0x1000000"
  1772. ---help---
  1773. This gives the physical address where the kernel is loaded.
  1774. If kernel is a not relocatable (CONFIG_RELOCATABLE=n) then
  1775. bzImage will decompress itself to above physical address and
  1776. run from there. Otherwise, bzImage will run from the address where
  1777. it has been loaded by the boot loader and will ignore above physical
  1778. address.
  1779. In normal kdump cases one does not have to set/change this option
  1780. as now bzImage can be compiled as a completely relocatable image
  1781. (CONFIG_RELOCATABLE=y) and be used to load and run from a different
  1782. address. This option is mainly useful for the folks who don't want
  1783. to use a bzImage for capturing the crash dump and want to use a
  1784. vmlinux instead. vmlinux is not relocatable hence a kernel needs
  1785. to be specifically compiled to run from a specific memory area
  1786. (normally a reserved region) and this option comes handy.
  1787. So if you are using bzImage for capturing the crash dump,
  1788. leave the value here unchanged to 0x1000000 and set
  1789. CONFIG_RELOCATABLE=y. Otherwise if you plan to use vmlinux
  1790. for capturing the crash dump change this value to start of
  1791. the reserved region. In other words, it can be set based on
  1792. the "X" value as specified in the "crashkernel=YM@XM"
  1793. command line boot parameter passed to the panic-ed
  1794. kernel. Please take a look at Documentation/kdump/kdump.txt
  1795. for more details about crash dumps.
  1796. Usage of bzImage for capturing the crash dump is recommended as
  1797. one does not have to build two kernels. Same kernel can be used
  1798. as production kernel and capture kernel. Above option should have
  1799. gone away after relocatable bzImage support is introduced. But it
  1800. is present because there are users out there who continue to use
  1801. vmlinux for dump capture. This option should go away down the
  1802. line.
  1803. Don't change this unless you know what you are doing.
  1804. config RELOCATABLE
  1805. bool "Build a relocatable kernel"
  1806. default y
  1807. ---help---
  1808. This builds a kernel image that retains relocation information
  1809. so it can be loaded someplace besides the default 1MB.
  1810. The relocations tend to make the kernel binary about 10% larger,
  1811. but are discarded at runtime.
  1812. One use is for the kexec on panic case where the recovery kernel
  1813. must live at a different physical address than the primary
  1814. kernel.
  1815. Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
  1816. it has been loaded at and the compile time physical address
  1817. (CONFIG_PHYSICAL_START) is used as the minimum location.
  1818. config RANDOMIZE_BASE
  1819. bool "Randomize the address of the kernel image (KASLR)"
  1820. depends on RELOCATABLE
  1821. default y
  1822. ---help---
  1823. In support of Kernel Address Space Layout Randomization (KASLR),
  1824. this randomizes the physical address at which the kernel image
  1825. is decompressed and the virtual address where the kernel
  1826. image is mapped, as a security feature that deters exploit
  1827. attempts relying on knowledge of the location of kernel
  1828. code internals.
  1829. On 64-bit, the kernel physical and virtual addresses are
  1830. randomized separately. The physical address will be anywhere
  1831. between 16MB and the top of physical memory (up to 64TB). The
  1832. virtual address will be randomized from 16MB up to 1GB (9 bits
  1833. of entropy). Note that this also reduces the memory space
  1834. available to kernel modules from 1.5GB to 1GB.
  1835. On 32-bit, the kernel physical and virtual addresses are
  1836. randomized together. They will be randomized from 16MB up to
  1837. 512MB (8 bits of entropy).
  1838. Entropy is generated using the RDRAND instruction if it is
  1839. supported. If RDTSC is supported, its value is mixed into
  1840. the entropy pool as well. If neither RDRAND nor RDTSC are
  1841. supported, then entropy is read from the i8254 timer. The
  1842. usable entropy is limited by the kernel being built using
  1843. 2GB addressing, and that PHYSICAL_ALIGN must be at a
  1844. minimum of 2MB. As a result, only 10 bits of entropy are
  1845. theoretically possible, but the implementations are further
  1846. limited due to memory layouts.
  1847. If unsure, say Y.
  1848. # Relocation on x86 needs some additional build support
  1849. config X86_NEED_RELOCS
  1850. def_bool y
  1851. depends on RANDOMIZE_BASE || (X86_32 && RELOCATABLE)
  1852. config PHYSICAL_ALIGN
  1853. hex "Alignment value to which kernel should be aligned"
  1854. default "0x200000"
  1855. range 0x2000 0x1000000 if X86_32
  1856. range 0x200000 0x1000000 if X86_64
  1857. ---help---
  1858. This value puts the alignment restrictions on physical address
  1859. where kernel is loaded and run from. Kernel is compiled for an
  1860. address which meets above alignment restriction.
  1861. If bootloader loads the kernel at a non-aligned address and
  1862. CONFIG_RELOCATABLE is set, kernel will move itself to nearest
  1863. address aligned to above value and run from there.
  1864. If bootloader loads the kernel at a non-aligned address and
  1865. CONFIG_RELOCATABLE is not set, kernel will ignore the run time
  1866. load address and decompress itself to the address it has been
  1867. compiled for and run from there. The address for which kernel is
  1868. compiled already meets above alignment restrictions. Hence the
  1869. end result is that kernel runs from a physical address meeting
  1870. above alignment restrictions.
  1871. On 32-bit this value must be a multiple of 0x2000. On 64-bit
  1872. this value must be a multiple of 0x200000.
  1873. Don't change this unless you know what you are doing.
  1874. config DYNAMIC_MEMORY_LAYOUT
  1875. bool
  1876. ---help---
  1877. This option makes base addresses of vmalloc and vmemmap as well as
  1878. __PAGE_OFFSET movable during boot.
  1879. config RANDOMIZE_MEMORY
  1880. bool "Randomize the kernel memory sections"
  1881. depends on X86_64
  1882. depends on RANDOMIZE_BASE
  1883. select DYNAMIC_MEMORY_LAYOUT
  1884. default RANDOMIZE_BASE
  1885. ---help---
  1886. Randomizes the base virtual address of kernel memory sections
  1887. (physical memory mapping, vmalloc & vmemmap). This security feature
  1888. makes exploits relying on predictable memory locations less reliable.
  1889. The order of allocations remains unchanged. Entropy is generated in
  1890. the same way as RANDOMIZE_BASE. Current implementation in the optimal
  1891. configuration have in average 30,000 different possible virtual
  1892. addresses for each memory section.
  1893. If unsure, say Y.
  1894. config RANDOMIZE_MEMORY_PHYSICAL_PADDING
  1895. hex "Physical memory mapping padding" if EXPERT
  1896. depends on RANDOMIZE_MEMORY
  1897. default "0xa" if MEMORY_HOTPLUG
  1898. default "0x0"
  1899. range 0x1 0x40 if MEMORY_HOTPLUG
  1900. range 0x0 0x40
  1901. ---help---
  1902. Define the padding in terabytes added to the existing physical
  1903. memory size during kernel memory randomization. It is useful
  1904. for memory hotplug support but reduces the entropy available for
  1905. address randomization.
  1906. If unsure, leave at the default value.
  1907. config HOTPLUG_CPU
  1908. def_bool y
  1909. depends on SMP
  1910. config BOOTPARAM_HOTPLUG_CPU0
  1911. bool "Set default setting of cpu0_hotpluggable"
  1912. default n
  1913. depends on HOTPLUG_CPU
  1914. ---help---
  1915. Set whether default state of cpu0_hotpluggable is on or off.
  1916. Say Y here to enable CPU0 hotplug by default. If this switch
  1917. is turned on, there is no need to give cpu0_hotplug kernel
  1918. parameter and the CPU0 hotplug feature is enabled by default.
  1919. Please note: there are two known CPU0 dependencies if you want
  1920. to enable the CPU0 hotplug feature either by this switch or by
  1921. cpu0_hotplug kernel parameter.
  1922. First, resume from hibernate or suspend always starts from CPU0.
  1923. So hibernate and suspend are prevented if CPU0 is offline.
  1924. Second dependency is PIC interrupts always go to CPU0. CPU0 can not
  1925. offline if any interrupt can not migrate out of CPU0. There may
  1926. be other CPU0 dependencies.
  1927. Please make sure the dependencies are under your control before
  1928. you enable this feature.
  1929. Say N if you don't want to enable CPU0 hotplug feature by default.
  1930. You still can enable the CPU0 hotplug feature at boot by kernel
  1931. parameter cpu0_hotplug.
  1932. config DEBUG_HOTPLUG_CPU0
  1933. def_bool n
  1934. prompt "Debug CPU0 hotplug"
  1935. depends on HOTPLUG_CPU
  1936. ---help---
  1937. Enabling this option offlines CPU0 (if CPU0 can be offlined) as
  1938. soon as possible and boots up userspace with CPU0 offlined. User
  1939. can online CPU0 back after boot time.
  1940. To debug CPU0 hotplug, you need to enable CPU0 offline/online
  1941. feature by either turning on CONFIG_BOOTPARAM_HOTPLUG_CPU0 during
  1942. compilation or giving cpu0_hotplug kernel parameter at boot.
  1943. If unsure, say N.
  1944. config COMPAT_VDSO
  1945. def_bool n
  1946. prompt "Disable the 32-bit vDSO (needed for glibc 2.3.3)"
  1947. depends on COMPAT_32
  1948. ---help---
  1949. Certain buggy versions of glibc will crash if they are
  1950. presented with a 32-bit vDSO that is not mapped at the address
  1951. indicated in its segment table.
  1952. The bug was introduced by f866314b89d56845f55e6f365e18b31ec978ec3a
  1953. and fixed by 3b3ddb4f7db98ec9e912ccdf54d35df4aa30e04a and
  1954. 49ad572a70b8aeb91e57483a11dd1b77e31c4468. Glibc 2.3.3 is
  1955. the only released version with the bug, but OpenSUSE 9
  1956. contains a buggy "glibc 2.3.2".
  1957. The symptom of the bug is that everything crashes on startup, saying:
  1958. dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso' failed!
  1959. Saying Y here changes the default value of the vdso32 boot
  1960. option from 1 to 0, which turns off the 32-bit vDSO entirely.
  1961. This works around the glibc bug but hurts performance.
  1962. If unsure, say N: if you are compiling your own kernel, you
  1963. are unlikely to be using a buggy version of glibc.
  1964. choice
  1965. prompt "vsyscall table for legacy applications"
  1966. depends on X86_64
  1967. default LEGACY_VSYSCALL_EMULATE
  1968. help
  1969. Legacy user code that does not know how to find the vDSO expects
  1970. to be able to issue three syscalls by calling fixed addresses in
  1971. kernel space. Since this location is not randomized with ASLR,
  1972. it can be used to assist security vulnerability exploitation.
  1973. This setting can be changed at boot time via the kernel command
  1974. line parameter vsyscall=[emulate|none].
  1975. On a system with recent enough glibc (2.14 or newer) and no
  1976. static binaries, you can say None without a performance penalty
  1977. to improve security.
  1978. If unsure, select "Emulate".
  1979. config LEGACY_VSYSCALL_EMULATE
  1980. bool "Emulate"
  1981. help
  1982. The kernel traps and emulates calls into the fixed
  1983. vsyscall address mapping. This makes the mapping
  1984. non-executable, but it still contains known contents,
  1985. which could be used in certain rare security vulnerability
  1986. exploits. This configuration is recommended when userspace
  1987. still uses the vsyscall area.
  1988. config LEGACY_VSYSCALL_NONE
  1989. bool "None"
  1990. help
  1991. There will be no vsyscall mapping at all. This will
  1992. eliminate any risk of ASLR bypass due to the vsyscall
  1993. fixed address mapping. Attempts to use the vsyscalls
  1994. will be reported to dmesg, so that either old or
  1995. malicious userspace programs can be identified.
  1996. endchoice
  1997. config CMDLINE_BOOL
  1998. bool "Built-in kernel command line"
  1999. ---help---
  2000. Allow for specifying boot arguments to the kernel at
  2001. build time. On some systems (e.g. embedded ones), it is
  2002. necessary or convenient to provide some or all of the
  2003. kernel boot arguments with the kernel itself (that is,
  2004. to not rely on the boot loader to provide them.)
  2005. To compile command line arguments into the kernel,
  2006. set this option to 'Y', then fill in the
  2007. boot arguments in CONFIG_CMDLINE.
  2008. Systems with fully functional boot loaders (i.e. non-embedded)
  2009. should leave this option set to 'N'.
  2010. config CMDLINE
  2011. string "Built-in kernel command string"
  2012. depends on CMDLINE_BOOL
  2013. default ""
  2014. ---help---
  2015. Enter arguments here that should be compiled into the kernel
  2016. image and used at boot time. If the boot loader provides a
  2017. command line at boot time, it is appended to this string to
  2018. form the full kernel command line, when the system boots.
  2019. However, you can use the CONFIG_CMDLINE_OVERRIDE option to
  2020. change this behavior.
  2021. In most cases, the command line (whether built-in or provided
  2022. by the boot loader) should specify the device for the root
  2023. file system.
  2024. config CMDLINE_OVERRIDE
  2025. bool "Built-in command line overrides boot loader arguments"
  2026. depends on CMDLINE_BOOL
  2027. ---help---
  2028. Set this option to 'Y' to have the kernel ignore the boot loader
  2029. command line, and use ONLY the built-in command line.
  2030. This is used to work around broken boot loaders. This should
  2031. be set to 'N' under normal conditions.
  2032. config MODIFY_LDT_SYSCALL
  2033. bool "Enable the LDT (local descriptor table)" if EXPERT
  2034. default y
  2035. ---help---
  2036. Linux can allow user programs to install a per-process x86
  2037. Local Descriptor Table (LDT) using the modify_ldt(2) system
  2038. call. This is required to run 16-bit or segmented code such as
  2039. DOSEMU or some Wine programs. It is also used by some very old
  2040. threading libraries.
  2041. Enabling this feature adds a small amount of overhead to
  2042. context switches and increases the low-level kernel attack
  2043. surface. Disabling it removes the modify_ldt(2) system call.
  2044. Saying 'N' here may make sense for embedded or server kernels.
  2045. source "kernel/livepatch/Kconfig"
  2046. endmenu
  2047. config ARCH_HAS_ADD_PAGES
  2048. def_bool y
  2049. depends on X86_64 && ARCH_ENABLE_MEMORY_HOTPLUG
  2050. config ARCH_ENABLE_MEMORY_HOTPLUG
  2051. def_bool y
  2052. depends on X86_64 || (X86_32 && HIGHMEM)
  2053. config ARCH_ENABLE_MEMORY_HOTREMOVE
  2054. def_bool y
  2055. depends on MEMORY_HOTPLUG
  2056. config USE_PERCPU_NUMA_NODE_ID
  2057. def_bool y
  2058. depends on NUMA
  2059. config ARCH_ENABLE_SPLIT_PMD_PTLOCK
  2060. def_bool y
  2061. depends on X86_64 || X86_PAE
  2062. config ARCH_ENABLE_HUGEPAGE_MIGRATION
  2063. def_bool y
  2064. depends on X86_64 && HUGETLB_PAGE && MIGRATION
  2065. config ARCH_ENABLE_THP_MIGRATION
  2066. def_bool y
  2067. depends on X86_64 && TRANSPARENT_HUGEPAGE
  2068. menu "Power management and ACPI options"
  2069. config ARCH_HIBERNATION_HEADER
  2070. def_bool y
  2071. depends on X86_64 && HIBERNATION
  2072. source "kernel/power/Kconfig"
  2073. source "drivers/acpi/Kconfig"
  2074. source "drivers/sfi/Kconfig"
  2075. config X86_APM_BOOT
  2076. def_bool y
  2077. depends on APM
  2078. menuconfig APM
  2079. tristate "APM (Advanced Power Management) BIOS support"
  2080. depends on X86_32 && PM_SLEEP
  2081. ---help---
  2082. APM is a BIOS specification for saving power using several different
  2083. techniques. This is mostly useful for battery powered laptops with
  2084. APM compliant BIOSes. If you say Y here, the system time will be
  2085. reset after a RESUME operation, the /proc/apm device will provide
  2086. battery status information, and user-space programs will receive
  2087. notification of APM "events" (e.g. battery status change).
  2088. If you select "Y" here, you can disable actual use of the APM
  2089. BIOS by passing the "apm=off" option to the kernel at boot time.
  2090. Note that the APM support is almost completely disabled for
  2091. machines with more than one CPU.
  2092. In order to use APM, you will need supporting software. For location
  2093. and more information, read <file:Documentation/power/apm-acpi.txt>
  2094. and the Battery Powered Linux mini-HOWTO, available from
  2095. <http://www.tldp.org/docs.html#howto>.
  2096. This driver does not spin down disk drives (see the hdparm(8)
  2097. manpage ("man 8 hdparm") for that), and it doesn't turn off
  2098. VESA-compliant "green" monitors.
  2099. This driver does not support the TI 4000M TravelMate and the ACER
  2100. 486/DX4/75 because they don't have compliant BIOSes. Many "green"
  2101. desktop machines also don't have compliant BIOSes, and this driver
  2102. may cause those machines to panic during the boot phase.
  2103. Generally, if you don't have a battery in your machine, there isn't
  2104. much point in using this driver and you should say N. If you get
  2105. random kernel OOPSes or reboots that don't seem to be related to
  2106. anything, try disabling/enabling this option (or disabling/enabling
  2107. APM in your BIOS).
  2108. Some other things you should try when experiencing seemingly random,
  2109. "weird" problems:
  2110. 1) make sure that you have enough swap space and that it is
  2111. enabled.
  2112. 2) pass the "no-hlt" option to the kernel
  2113. 3) switch on floating point emulation in the kernel and pass
  2114. the "no387" option to the kernel
  2115. 4) pass the "floppy=nodma" option to the kernel
  2116. 5) pass the "mem=4M" option to the kernel (thereby disabling
  2117. all but the first 4 MB of RAM)
  2118. 6) make sure that the CPU is not over clocked.
  2119. 7) read the sig11 FAQ at <http://www.bitwizard.nl/sig11/>
  2120. 8) disable the cache from your BIOS settings
  2121. 9) install a fan for the video card or exchange video RAM
  2122. 10) install a better fan for the CPU
  2123. 11) exchange RAM chips
  2124. 12) exchange the motherboard.
  2125. To compile this driver as a module, choose M here: the
  2126. module will be called apm.
  2127. if APM
  2128. config APM_IGNORE_USER_SUSPEND
  2129. bool "Ignore USER SUSPEND"
  2130. ---help---
  2131. This option will ignore USER SUSPEND requests. On machines with a
  2132. compliant APM BIOS, you want to say N. However, on the NEC Versa M
  2133. series notebooks, it is necessary to say Y because of a BIOS bug.
  2134. config APM_DO_ENABLE
  2135. bool "Enable PM at boot time"
  2136. ---help---
  2137. Enable APM features at boot time. From page 36 of the APM BIOS
  2138. specification: "When disabled, the APM BIOS does not automatically
  2139. power manage devices, enter the Standby State, enter the Suspend
  2140. State, or take power saving steps in response to CPU Idle calls."
  2141. This driver will make CPU Idle calls when Linux is idle (unless this
  2142. feature is turned off -- see "Do CPU IDLE calls", below). This
  2143. should always save battery power, but more complicated APM features
  2144. will be dependent on your BIOS implementation. You may need to turn
  2145. this option off if your computer hangs at boot time when using APM
  2146. support, or if it beeps continuously instead of suspending. Turn
  2147. this off if you have a NEC UltraLite Versa 33/C or a Toshiba
  2148. T400CDT. This is off by default since most machines do fine without
  2149. this feature.
  2150. config APM_CPU_IDLE
  2151. depends on CPU_IDLE
  2152. bool "Make CPU Idle calls when idle"
  2153. ---help---
  2154. Enable calls to APM CPU Idle/CPU Busy inside the kernel's idle loop.
  2155. On some machines, this can activate improved power savings, such as
  2156. a slowed CPU clock rate, when the machine is idle. These idle calls
  2157. are made after the idle loop has run for some length of time (e.g.,
  2158. 333 mS). On some machines, this will cause a hang at boot time or
  2159. whenever the CPU becomes idle. (On machines with more than one CPU,
  2160. this option does nothing.)
  2161. config APM_DISPLAY_BLANK
  2162. bool "Enable console blanking using APM"
  2163. ---help---
  2164. Enable console blanking using the APM. Some laptops can use this to
  2165. turn off the LCD backlight when the screen blanker of the Linux
  2166. virtual console blanks the screen. Note that this is only used by
  2167. the virtual console screen blanker, and won't turn off the backlight
  2168. when using the X Window system. This also doesn't have anything to
  2169. do with your VESA-compliant power-saving monitor. Further, this
  2170. option doesn't work for all laptops -- it might not turn off your
  2171. backlight at all, or it might print a lot of errors to the console,
  2172. especially if you are using gpm.
  2173. config APM_ALLOW_INTS
  2174. bool "Allow interrupts during APM BIOS calls"
  2175. ---help---
  2176. Normally we disable external interrupts while we are making calls to
  2177. the APM BIOS as a measure to lessen the effects of a badly behaving
  2178. BIOS implementation. The BIOS should reenable interrupts if it
  2179. needs to. Unfortunately, some BIOSes do not -- especially those in
  2180. many of the newer IBM Thinkpads. If you experience hangs when you
  2181. suspend, try setting this to Y. Otherwise, say N.
  2182. endif # APM
  2183. source "drivers/cpufreq/Kconfig"
  2184. source "drivers/cpuidle/Kconfig"
  2185. source "drivers/idle/Kconfig"
  2186. endmenu
  2187. menu "Bus options (PCI etc.)"
  2188. config PCI
  2189. bool "PCI support"
  2190. default y
  2191. ---help---
  2192. Find out whether you have a PCI motherboard. PCI is the name of a
  2193. bus system, i.e. the way the CPU talks to the other stuff inside
  2194. your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
  2195. VESA. If you have PCI, say Y, otherwise N.
  2196. choice
  2197. prompt "PCI access mode"
  2198. depends on X86_32 && PCI
  2199. default PCI_GOANY
  2200. ---help---
  2201. On PCI systems, the BIOS can be used to detect the PCI devices and
  2202. determine their configuration. However, some old PCI motherboards
  2203. have BIOS bugs and may crash if this is done. Also, some embedded
  2204. PCI-based systems don't have any BIOS at all. Linux can also try to
  2205. detect the PCI hardware directly without using the BIOS.
  2206. With this option, you can specify how Linux should detect the
  2207. PCI devices. If you choose "BIOS", the BIOS will be used,
  2208. if you choose "Direct", the BIOS won't be used, and if you
  2209. choose "MMConfig", then PCI Express MMCONFIG will be used.
  2210. If you choose "Any", the kernel will try MMCONFIG, then the
  2211. direct access method and falls back to the BIOS if that doesn't
  2212. work. If unsure, go with the default, which is "Any".
  2213. config PCI_GOBIOS
  2214. bool "BIOS"
  2215. config PCI_GOMMCONFIG
  2216. bool "MMConfig"
  2217. config PCI_GODIRECT
  2218. bool "Direct"
  2219. config PCI_GOOLPC
  2220. bool "OLPC XO-1"
  2221. depends on OLPC
  2222. config PCI_GOANY
  2223. bool "Any"
  2224. endchoice
  2225. config PCI_BIOS
  2226. def_bool y
  2227. depends on X86_32 && PCI && (PCI_GOBIOS || PCI_GOANY)
  2228. # x86-64 doesn't support PCI BIOS access from long mode so always go direct.
  2229. config PCI_DIRECT
  2230. def_bool y
  2231. depends on PCI && (X86_64 || (PCI_GODIRECT || PCI_GOANY || PCI_GOOLPC || PCI_GOMMCONFIG))
  2232. config PCI_MMCONFIG
  2233. bool "Support mmconfig PCI config space access" if X86_64
  2234. default y
  2235. depends on PCI && (ACPI || SFI || JAILHOUSE_GUEST)
  2236. depends on X86_64 || (PCI_GOANY || PCI_GOMMCONFIG)
  2237. config PCI_OLPC
  2238. def_bool y
  2239. depends on PCI && OLPC && (PCI_GOOLPC || PCI_GOANY)
  2240. config PCI_XEN
  2241. def_bool y
  2242. depends on PCI && XEN
  2243. select SWIOTLB_XEN
  2244. config PCI_DOMAINS
  2245. def_bool y
  2246. depends on PCI
  2247. config MMCONF_FAM10H
  2248. def_bool y
  2249. depends on X86_64 && PCI_MMCONFIG && ACPI
  2250. config PCI_CNB20LE_QUIRK
  2251. bool "Read CNB20LE Host Bridge Windows" if EXPERT
  2252. depends on PCI
  2253. help
  2254. Read the PCI windows out of the CNB20LE host bridge. This allows
  2255. PCI hotplug to work on systems with the CNB20LE chipset which do
  2256. not have ACPI.
  2257. There's no public spec for this chipset, and this functionality
  2258. is known to be incomplete.
  2259. You should say N unless you know you need this.
  2260. source "drivers/pci/Kconfig"
  2261. config ISA_BUS
  2262. bool "ISA bus support on modern systems" if EXPERT
  2263. help
  2264. Expose ISA bus device drivers and options available for selection and
  2265. configuration. Enable this option if your target machine has an ISA
  2266. bus. ISA is an older system, displaced by PCI and newer bus
  2267. architectures -- if your target machine is modern, it probably does
  2268. not have an ISA bus.
  2269. If unsure, say N.
  2270. # x86_64 have no ISA slots, but can have ISA-style DMA.
  2271. config ISA_DMA_API
  2272. bool "ISA-style DMA support" if (X86_64 && EXPERT)
  2273. default y
  2274. help
  2275. Enables ISA-style DMA support for devices requiring such controllers.
  2276. If unsure, say Y.
  2277. if X86_32
  2278. config ISA
  2279. bool "ISA support"
  2280. ---help---
  2281. Find out whether you have ISA slots on your motherboard. ISA is the
  2282. name of a bus system, i.e. the way the CPU talks to the other stuff
  2283. inside your box. Other bus systems are PCI, EISA, MicroChannel
  2284. (MCA) or VESA. ISA is an older system, now being displaced by PCI;
  2285. newer boards don't support it. If you have ISA, say Y, otherwise N.
  2286. config EISA
  2287. bool "EISA support"
  2288. depends on ISA
  2289. ---help---
  2290. The Extended Industry Standard Architecture (EISA) bus was
  2291. developed as an open alternative to the IBM MicroChannel bus.
  2292. The EISA bus provided some of the features of the IBM MicroChannel
  2293. bus while maintaining backward compatibility with cards made for
  2294. the older ISA bus. The EISA bus saw limited use between 1988 and
  2295. 1995 when it was made obsolete by the PCI bus.
  2296. Say Y here if you are building a kernel for an EISA-based machine.
  2297. Otherwise, say N.
  2298. source "drivers/eisa/Kconfig"
  2299. config SCx200
  2300. tristate "NatSemi SCx200 support"
  2301. ---help---
  2302. This provides basic support for National Semiconductor's
  2303. (now AMD's) Geode processors. The driver probes for the
  2304. PCI-IDs of several on-chip devices, so its a good dependency
  2305. for other scx200_* drivers.
  2306. If compiled as a module, the driver is named scx200.
  2307. config SCx200HR_TIMER
  2308. tristate "NatSemi SCx200 27MHz High-Resolution Timer Support"
  2309. depends on SCx200
  2310. default y
  2311. ---help---
  2312. This driver provides a clocksource built upon the on-chip
  2313. 27MHz high-resolution timer. Its also a workaround for
  2314. NSC Geode SC-1100's buggy TSC, which loses time when the
  2315. processor goes idle (as is done by the scheduler). The
  2316. other workaround is idle=poll boot option.
  2317. config OLPC
  2318. bool "One Laptop Per Child support"
  2319. depends on !X86_PAE
  2320. select GPIOLIB
  2321. select OF
  2322. select OF_PROMTREE
  2323. select IRQ_DOMAIN
  2324. ---help---
  2325. Add support for detecting the unique features of the OLPC
  2326. XO hardware.
  2327. config OLPC_XO1_PM
  2328. bool "OLPC XO-1 Power Management"
  2329. depends on OLPC && MFD_CS5535=y && PM_SLEEP
  2330. ---help---
  2331. Add support for poweroff and suspend of the OLPC XO-1 laptop.
  2332. config OLPC_XO1_RTC
  2333. bool "OLPC XO-1 Real Time Clock"
  2334. depends on OLPC_XO1_PM && RTC_DRV_CMOS
  2335. ---help---
  2336. Add support for the XO-1 real time clock, which can be used as a
  2337. programmable wakeup source.
  2338. config OLPC_XO1_SCI
  2339. bool "OLPC XO-1 SCI extras"
  2340. depends on OLPC && OLPC_XO1_PM && GPIO_CS5535=y
  2341. depends on INPUT=y
  2342. select POWER_SUPPLY
  2343. ---help---
  2344. Add support for SCI-based features of the OLPC XO-1 laptop:
  2345. - EC-driven system wakeups
  2346. - Power button
  2347. - Ebook switch
  2348. - Lid switch
  2349. - AC adapter status updates
  2350. - Battery status updates
  2351. config OLPC_XO15_SCI
  2352. bool "OLPC XO-1.5 SCI extras"
  2353. depends on OLPC && ACPI
  2354. select POWER_SUPPLY
  2355. ---help---
  2356. Add support for SCI-based features of the OLPC XO-1.5 laptop:
  2357. - EC-driven system wakeups
  2358. - AC adapter status updates
  2359. - Battery status updates
  2360. config ALIX
  2361. bool "PCEngines ALIX System Support (LED setup)"
  2362. select GPIOLIB
  2363. ---help---
  2364. This option enables system support for the PCEngines ALIX.
  2365. At present this just sets up LEDs for GPIO control on
  2366. ALIX2/3/6 boards. However, other system specific setup should
  2367. get added here.
  2368. Note: You must still enable the drivers for GPIO and LED support
  2369. (GPIO_CS5535 & LEDS_GPIO) to actually use the LEDs
  2370. Note: You have to set alix.force=1 for boards with Award BIOS.
  2371. config NET5501
  2372. bool "Soekris Engineering net5501 System Support (LEDS, GPIO, etc)"
  2373. select GPIOLIB
  2374. ---help---
  2375. This option enables system support for the Soekris Engineering net5501.
  2376. config GEOS
  2377. bool "Traverse Technologies GEOS System Support (LEDS, GPIO, etc)"
  2378. select GPIOLIB
  2379. depends on DMI
  2380. ---help---
  2381. This option enables system support for the Traverse Technologies GEOS.
  2382. config TS5500
  2383. bool "Technologic Systems TS-5500 platform support"
  2384. depends on MELAN
  2385. select CHECK_SIGNATURE
  2386. select NEW_LEDS
  2387. select LEDS_CLASS
  2388. ---help---
  2389. This option enables system support for the Technologic Systems TS-5500.
  2390. endif # X86_32
  2391. config AMD_NB
  2392. def_bool y
  2393. depends on CPU_SUP_AMD && PCI
  2394. source "drivers/pcmcia/Kconfig"
  2395. config RAPIDIO
  2396. tristate "RapidIO support"
  2397. depends on PCI
  2398. default n
  2399. help
  2400. If enabled this option will include drivers and the core
  2401. infrastructure code to support RapidIO interconnect devices.
  2402. source "drivers/rapidio/Kconfig"
  2403. config X86_SYSFB
  2404. bool "Mark VGA/VBE/EFI FB as generic system framebuffer"
  2405. help
  2406. Firmwares often provide initial graphics framebuffers so the BIOS,
  2407. bootloader or kernel can show basic video-output during boot for
  2408. user-guidance and debugging. Historically, x86 used the VESA BIOS
  2409. Extensions and EFI-framebuffers for this, which are mostly limited
  2410. to x86.
  2411. This option, if enabled, marks VGA/VBE/EFI framebuffers as generic
  2412. framebuffers so the new generic system-framebuffer drivers can be
  2413. used on x86. If the framebuffer is not compatible with the generic
  2414. modes, it is advertised as fallback platform framebuffer so legacy
  2415. drivers like efifb, vesafb and uvesafb can pick it up.
  2416. If this option is not selected, all system framebuffers are always
  2417. marked as fallback platform framebuffers as usual.
  2418. Note: Legacy fbdev drivers, including vesafb, efifb, uvesafb, will
  2419. not be able to pick up generic system framebuffers if this option
  2420. is selected. You are highly encouraged to enable simplefb as
  2421. replacement if you select this option. simplefb can correctly deal
  2422. with generic system framebuffers. But you should still keep vesafb
  2423. and others enabled as fallback if a system framebuffer is
  2424. incompatible with simplefb.
  2425. If unsure, say Y.
  2426. endmenu
  2427. menu "Binary Emulations"
  2428. config IA32_EMULATION
  2429. bool "IA32 Emulation"
  2430. depends on X86_64
  2431. select ARCH_WANT_OLD_COMPAT_IPC
  2432. select BINFMT_ELF
  2433. select COMPAT_BINFMT_ELF
  2434. select COMPAT_OLD_SIGACTION
  2435. ---help---
  2436. Include code to run legacy 32-bit programs under a
  2437. 64-bit kernel. You should likely turn this on, unless you're
  2438. 100% sure that you don't have any 32-bit programs left.
  2439. config IA32_AOUT
  2440. tristate "IA32 a.out support"
  2441. depends on IA32_EMULATION
  2442. ---help---
  2443. Support old a.out binaries in the 32bit emulation.
  2444. config X86_X32
  2445. bool "x32 ABI for 64-bit mode"
  2446. depends on X86_64
  2447. ---help---
  2448. Include code to run binaries for the x32 native 32-bit ABI
  2449. for 64-bit processors. An x32 process gets access to the
  2450. full 64-bit register file and wide data path while leaving
  2451. pointers at 32 bits for smaller memory footprint.
  2452. You will need a recent binutils (2.22 or later) with
  2453. elf32_x86_64 support enabled to compile a kernel with this
  2454. option set.
  2455. config COMPAT_32
  2456. def_bool y
  2457. depends on IA32_EMULATION || X86_32
  2458. select HAVE_UID16
  2459. select OLD_SIGSUSPEND3
  2460. config COMPAT
  2461. def_bool y
  2462. depends on IA32_EMULATION || X86_X32
  2463. if COMPAT
  2464. config COMPAT_FOR_U64_ALIGNMENT
  2465. def_bool y
  2466. config SYSVIPC_COMPAT
  2467. def_bool y
  2468. depends on SYSVIPC
  2469. endif
  2470. endmenu
  2471. config HAVE_ATOMIC_IOMAP
  2472. def_bool y
  2473. depends on X86_32
  2474. config X86_DEV_DMA_OPS
  2475. bool
  2476. depends on X86_64 || STA2X11
  2477. config X86_DMA_REMAP
  2478. bool
  2479. depends on STA2X11
  2480. config HAVE_GENERIC_GUP
  2481. def_bool y
  2482. source "drivers/firmware/Kconfig"
  2483. source "arch/x86/kvm/Kconfig"