Kconfig 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153
  1. # SPDX-License-Identifier: GPL-2.0
  2. comment "Processor Type"
  3. # Select CPU types depending on the architecture selected. This selects
  4. # which CPUs we support in the kernel image, and the compiler instruction
  5. # optimiser behaviour.
  6. # ARM7TDMI
  7. config CPU_ARM7TDMI
  8. bool
  9. depends on !MMU
  10. select CPU_32v4T
  11. select CPU_ABRT_LV4T
  12. select CPU_CACHE_V4
  13. select CPU_PABRT_LEGACY
  14. help
  15. A 32-bit RISC microprocessor based on the ARM7 processor core
  16. which has no memory control unit and cache.
  17. Say Y if you want support for the ARM7TDMI processor.
  18. Otherwise, say N.
  19. # ARM720T
  20. config CPU_ARM720T
  21. bool
  22. select CPU_32v4T
  23. select CPU_ABRT_LV4T
  24. select CPU_CACHE_V4
  25. select CPU_CACHE_VIVT
  26. select CPU_COPY_V4WT if MMU
  27. select CPU_CP15_MMU
  28. select CPU_PABRT_LEGACY
  29. select CPU_THUMB_CAPABLE
  30. select CPU_TLB_V4WT if MMU
  31. help
  32. A 32-bit RISC processor with 8kByte Cache, Write Buffer and
  33. MMU built around an ARM7TDMI core.
  34. Say Y if you want support for the ARM720T processor.
  35. Otherwise, say N.
  36. # ARM740T
  37. config CPU_ARM740T
  38. bool
  39. depends on !MMU
  40. select CPU_32v4T
  41. select CPU_ABRT_LV4T
  42. select CPU_CACHE_V4
  43. select CPU_CP15_MPU
  44. select CPU_PABRT_LEGACY
  45. select CPU_THUMB_CAPABLE
  46. help
  47. A 32-bit RISC processor with 8KB cache or 4KB variants,
  48. write buffer and MPU(Protection Unit) built around
  49. an ARM7TDMI core.
  50. Say Y if you want support for the ARM740T processor.
  51. Otherwise, say N.
  52. # ARM9TDMI
  53. config CPU_ARM9TDMI
  54. bool
  55. depends on !MMU
  56. select CPU_32v4T
  57. select CPU_ABRT_NOMMU
  58. select CPU_CACHE_V4
  59. select CPU_PABRT_LEGACY
  60. help
  61. A 32-bit RISC microprocessor based on the ARM9 processor core
  62. which has no memory control unit and cache.
  63. Say Y if you want support for the ARM9TDMI processor.
  64. Otherwise, say N.
  65. # ARM920T
  66. config CPU_ARM920T
  67. bool
  68. select CPU_32v4T
  69. select CPU_ABRT_EV4T
  70. select CPU_CACHE_V4WT
  71. select CPU_CACHE_VIVT
  72. select CPU_COPY_V4WB if MMU
  73. select CPU_CP15_MMU
  74. select CPU_PABRT_LEGACY
  75. select CPU_THUMB_CAPABLE
  76. select CPU_TLB_V4WBI if MMU
  77. help
  78. The ARM920T is licensed to be produced by numerous vendors,
  79. and is used in the Cirrus EP93xx and the Samsung S3C2410.
  80. Say Y if you want support for the ARM920T processor.
  81. Otherwise, say N.
  82. # ARM922T
  83. config CPU_ARM922T
  84. bool
  85. select CPU_32v4T
  86. select CPU_ABRT_EV4T
  87. select CPU_CACHE_V4WT
  88. select CPU_CACHE_VIVT
  89. select CPU_COPY_V4WB if MMU
  90. select CPU_CP15_MMU
  91. select CPU_PABRT_LEGACY
  92. select CPU_THUMB_CAPABLE
  93. select CPU_TLB_V4WBI if MMU
  94. help
  95. The ARM922T is a version of the ARM920T, but with smaller
  96. instruction and data caches. It is used in Altera's
  97. Excalibur XA device family and the ARM Integrator.
  98. Say Y if you want support for the ARM922T processor.
  99. Otherwise, say N.
  100. # ARM925T
  101. config CPU_ARM925T
  102. bool
  103. select CPU_32v4T
  104. select CPU_ABRT_EV4T
  105. select CPU_CACHE_V4WT
  106. select CPU_CACHE_VIVT
  107. select CPU_COPY_V4WB if MMU
  108. select CPU_CP15_MMU
  109. select CPU_PABRT_LEGACY
  110. select CPU_THUMB_CAPABLE
  111. select CPU_TLB_V4WBI if MMU
  112. help
  113. The ARM925T is a mix between the ARM920T and ARM926T, but with
  114. different instruction and data caches. It is used in TI's OMAP
  115. device family.
  116. Say Y if you want support for the ARM925T processor.
  117. Otherwise, say N.
  118. # ARM926T
  119. config CPU_ARM926T
  120. bool
  121. select CPU_32v5
  122. select CPU_ABRT_EV5TJ
  123. select CPU_CACHE_VIVT
  124. select CPU_COPY_V4WB if MMU
  125. select CPU_CP15_MMU
  126. select CPU_PABRT_LEGACY
  127. select CPU_THUMB_CAPABLE
  128. select CPU_TLB_V4WBI if MMU
  129. help
  130. This is a variant of the ARM920. It has slightly different
  131. instruction sequences for cache and TLB operations. Curiously,
  132. there is no documentation on it at the ARM corporate website.
  133. Say Y if you want support for the ARM926T processor.
  134. Otherwise, say N.
  135. # FA526
  136. config CPU_FA526
  137. bool
  138. select CPU_32v4
  139. select CPU_ABRT_EV4
  140. select CPU_CACHE_FA
  141. select CPU_CACHE_VIVT
  142. select CPU_COPY_FA if MMU
  143. select CPU_CP15_MMU
  144. select CPU_PABRT_LEGACY
  145. select CPU_TLB_FA if MMU
  146. help
  147. The FA526 is a version of the ARMv4 compatible processor with
  148. Branch Target Buffer, Unified TLB and cache line size 16.
  149. Say Y if you want support for the FA526 processor.
  150. Otherwise, say N.
  151. # ARM940T
  152. config CPU_ARM940T
  153. bool
  154. depends on !MMU
  155. select CPU_32v4T
  156. select CPU_ABRT_NOMMU
  157. select CPU_CACHE_VIVT
  158. select CPU_CP15_MPU
  159. select CPU_PABRT_LEGACY
  160. select CPU_THUMB_CAPABLE
  161. help
  162. ARM940T is a member of the ARM9TDMI family of general-
  163. purpose microprocessors with MPU and separate 4KB
  164. instruction and 4KB data cases, each with a 4-word line
  165. length.
  166. Say Y if you want support for the ARM940T processor.
  167. Otherwise, say N.
  168. # ARM946E-S
  169. config CPU_ARM946E
  170. bool
  171. depends on !MMU
  172. select CPU_32v5
  173. select CPU_ABRT_NOMMU
  174. select CPU_CACHE_VIVT
  175. select CPU_CP15_MPU
  176. select CPU_PABRT_LEGACY
  177. select CPU_THUMB_CAPABLE
  178. help
  179. ARM946E-S is a member of the ARM9E-S family of high-
  180. performance, 32-bit system-on-chip processor solutions.
  181. The TCM and ARMv5TE 32-bit instruction set is supported.
  182. Say Y if you want support for the ARM946E-S processor.
  183. Otherwise, say N.
  184. # ARM1020 - needs validating
  185. config CPU_ARM1020
  186. bool
  187. select CPU_32v5
  188. select CPU_ABRT_EV4T
  189. select CPU_CACHE_V4WT
  190. select CPU_CACHE_VIVT
  191. select CPU_COPY_V4WB if MMU
  192. select CPU_CP15_MMU
  193. select CPU_PABRT_LEGACY
  194. select CPU_THUMB_CAPABLE
  195. select CPU_TLB_V4WBI if MMU
  196. help
  197. The ARM1020 is the 32K cached version of the ARM10 processor,
  198. with an addition of a floating-point unit.
  199. Say Y if you want support for the ARM1020 processor.
  200. Otherwise, say N.
  201. # ARM1020E - needs validating
  202. config CPU_ARM1020E
  203. bool
  204. depends on n
  205. select CPU_32v5
  206. select CPU_ABRT_EV4T
  207. select CPU_CACHE_V4WT
  208. select CPU_CACHE_VIVT
  209. select CPU_COPY_V4WB if MMU
  210. select CPU_CP15_MMU
  211. select CPU_PABRT_LEGACY
  212. select CPU_THUMB_CAPABLE
  213. select CPU_TLB_V4WBI if MMU
  214. # ARM1022E
  215. config CPU_ARM1022
  216. bool
  217. select CPU_32v5
  218. select CPU_ABRT_EV4T
  219. select CPU_CACHE_VIVT
  220. select CPU_COPY_V4WB if MMU # can probably do better
  221. select CPU_CP15_MMU
  222. select CPU_PABRT_LEGACY
  223. select CPU_THUMB_CAPABLE
  224. select CPU_TLB_V4WBI if MMU
  225. help
  226. The ARM1022E is an implementation of the ARMv5TE architecture
  227. based upon the ARM10 integer core with a 16KiB L1 Harvard cache,
  228. embedded trace macrocell, and a floating-point unit.
  229. Say Y if you want support for the ARM1022E processor.
  230. Otherwise, say N.
  231. # ARM1026EJ-S
  232. config CPU_ARM1026
  233. bool
  234. select CPU_32v5
  235. select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10
  236. select CPU_CACHE_VIVT
  237. select CPU_COPY_V4WB if MMU # can probably do better
  238. select CPU_CP15_MMU
  239. select CPU_PABRT_LEGACY
  240. select CPU_THUMB_CAPABLE
  241. select CPU_TLB_V4WBI if MMU
  242. help
  243. The ARM1026EJ-S is an implementation of the ARMv5TEJ architecture
  244. based upon the ARM10 integer core.
  245. Say Y if you want support for the ARM1026EJ-S processor.
  246. Otherwise, say N.
  247. # SA110
  248. config CPU_SA110
  249. bool
  250. select CPU_32v3 if ARCH_RPC
  251. select CPU_32v4 if !ARCH_RPC
  252. select CPU_ABRT_EV4
  253. select CPU_CACHE_V4WB
  254. select CPU_CACHE_VIVT
  255. select CPU_COPY_V4WB if MMU
  256. select CPU_CP15_MMU
  257. select CPU_PABRT_LEGACY
  258. select CPU_TLB_V4WB if MMU
  259. help
  260. The Intel StrongARM(R) SA-110 is a 32-bit microprocessor and
  261. is available at five speeds ranging from 100 MHz to 233 MHz.
  262. More information is available at
  263. <http://developer.intel.com/design/strong/sa110.htm>.
  264. Say Y if you want support for the SA-110 processor.
  265. Otherwise, say N.
  266. # SA1100
  267. config CPU_SA1100
  268. bool
  269. select CPU_32v4
  270. select CPU_ABRT_EV4
  271. select CPU_CACHE_V4WB
  272. select CPU_CACHE_VIVT
  273. select CPU_CP15_MMU
  274. select CPU_PABRT_LEGACY
  275. select CPU_TLB_V4WB if MMU
  276. # XScale
  277. config CPU_XSCALE
  278. bool
  279. select CPU_32v5
  280. select CPU_ABRT_EV5T
  281. select CPU_CACHE_VIVT
  282. select CPU_CP15_MMU
  283. select CPU_PABRT_LEGACY
  284. select CPU_THUMB_CAPABLE
  285. select CPU_TLB_V4WBI if MMU
  286. # XScale Core Version 3
  287. config CPU_XSC3
  288. bool
  289. select CPU_32v5
  290. select CPU_ABRT_EV5T
  291. select CPU_CACHE_VIVT
  292. select CPU_CP15_MMU
  293. select CPU_PABRT_LEGACY
  294. select CPU_THUMB_CAPABLE
  295. select CPU_TLB_V4WBI if MMU
  296. select IO_36
  297. # Marvell PJ1 (Mohawk)
  298. config CPU_MOHAWK
  299. bool
  300. select CPU_32v5
  301. select CPU_ABRT_EV5T
  302. select CPU_CACHE_VIVT
  303. select CPU_COPY_V4WB if MMU
  304. select CPU_CP15_MMU
  305. select CPU_PABRT_LEGACY
  306. select CPU_THUMB_CAPABLE
  307. select CPU_TLB_V4WBI if MMU
  308. # Feroceon
  309. config CPU_FEROCEON
  310. bool
  311. select CPU_32v5
  312. select CPU_ABRT_EV5T
  313. select CPU_CACHE_VIVT
  314. select CPU_COPY_FEROCEON if MMU
  315. select CPU_CP15_MMU
  316. select CPU_PABRT_LEGACY
  317. select CPU_THUMB_CAPABLE
  318. select CPU_TLB_FEROCEON if MMU
  319. config CPU_FEROCEON_OLD_ID
  320. bool "Accept early Feroceon cores with an ARM926 ID"
  321. depends on CPU_FEROCEON && !CPU_ARM926T
  322. default y
  323. help
  324. This enables the usage of some old Feroceon cores
  325. for which the CPU ID is equal to the ARM926 ID.
  326. Relevant for Feroceon-1850 and early Feroceon-2850.
  327. # Marvell PJ4
  328. config CPU_PJ4
  329. bool
  330. select ARM_THUMBEE
  331. select CPU_V7
  332. config CPU_PJ4B
  333. bool
  334. select CPU_V7
  335. # ARMv6
  336. config CPU_V6
  337. bool
  338. select CPU_32v6
  339. select CPU_ABRT_EV6
  340. select CPU_CACHE_V6
  341. select CPU_CACHE_VIPT
  342. select CPU_COPY_V6 if MMU
  343. select CPU_CP15_MMU
  344. select CPU_HAS_ASID if MMU
  345. select CPU_PABRT_V6
  346. select CPU_THUMB_CAPABLE
  347. select CPU_TLB_V6 if MMU
  348. select SMP_ON_UP if SMP
  349. # ARMv6k
  350. config CPU_V6K
  351. bool
  352. select CPU_32v6
  353. select CPU_32v6K
  354. select CPU_ABRT_EV6
  355. select CPU_CACHE_V6
  356. select CPU_CACHE_VIPT
  357. select CPU_COPY_V6 if MMU
  358. select CPU_CP15_MMU
  359. select CPU_HAS_ASID if MMU
  360. select CPU_PABRT_V6
  361. select CPU_THUMB_CAPABLE
  362. select CPU_TLB_V6 if MMU
  363. # ARMv7
  364. config CPU_V7
  365. bool
  366. select CPU_32v6K
  367. select CPU_32v7
  368. select CPU_ABRT_EV7
  369. select CPU_CACHE_V7
  370. select CPU_CACHE_VIPT
  371. select CPU_COPY_V6 if MMU
  372. select CPU_CP15_MMU if MMU
  373. select CPU_CP15_MPU if !MMU
  374. select CPU_HAS_ASID if MMU
  375. select CPU_PABRT_V7
  376. select CPU_SPECTRE if MMU
  377. select CPU_THUMB_CAPABLE
  378. select CPU_TLB_V7 if MMU
  379. # ARMv7M
  380. config CPU_V7M
  381. bool
  382. select CPU_32v7M
  383. select CPU_ABRT_NOMMU
  384. select CPU_CACHE_V7M
  385. select CPU_CACHE_NOP
  386. select CPU_PABRT_LEGACY
  387. select CPU_THUMBONLY
  388. config CPU_THUMBONLY
  389. bool
  390. select CPU_THUMB_CAPABLE
  391. # There are no CPUs available with MMU that don't implement an ARM ISA:
  392. depends on !MMU
  393. help
  394. Select this if your CPU doesn't support the 32 bit ARM instructions.
  395. config CPU_THUMB_CAPABLE
  396. bool
  397. help
  398. Select this if your CPU can support Thumb mode.
  399. # Figure out what processor architecture version we should be using.
  400. # This defines the compiler instruction set which depends on the machine type.
  401. config CPU_32v3
  402. bool
  403. select CPU_USE_DOMAINS if MMU
  404. select NEED_KUSER_HELPERS
  405. select TLS_REG_EMUL if SMP || !MMU
  406. select CPU_NO_EFFICIENT_FFS
  407. config CPU_32v4
  408. bool
  409. select CPU_USE_DOMAINS if MMU
  410. select NEED_KUSER_HELPERS
  411. select TLS_REG_EMUL if SMP || !MMU
  412. select CPU_NO_EFFICIENT_FFS
  413. config CPU_32v4T
  414. bool
  415. select CPU_USE_DOMAINS if MMU
  416. select NEED_KUSER_HELPERS
  417. select TLS_REG_EMUL if SMP || !MMU
  418. select CPU_NO_EFFICIENT_FFS
  419. config CPU_32v5
  420. bool
  421. select CPU_USE_DOMAINS if MMU
  422. select NEED_KUSER_HELPERS
  423. select TLS_REG_EMUL if SMP || !MMU
  424. config CPU_32v6
  425. bool
  426. select TLS_REG_EMUL if !CPU_32v6K && !MMU
  427. config CPU_32v6K
  428. bool
  429. config CPU_32v7
  430. bool
  431. config CPU_32v7M
  432. bool
  433. # The abort model
  434. config CPU_ABRT_NOMMU
  435. bool
  436. config CPU_ABRT_EV4
  437. bool
  438. config CPU_ABRT_EV4T
  439. bool
  440. config CPU_ABRT_LV4T
  441. bool
  442. config CPU_ABRT_EV5T
  443. bool
  444. config CPU_ABRT_EV5TJ
  445. bool
  446. config CPU_ABRT_EV6
  447. bool
  448. config CPU_ABRT_EV7
  449. bool
  450. config CPU_PABRT_LEGACY
  451. bool
  452. config CPU_PABRT_V6
  453. bool
  454. config CPU_PABRT_V7
  455. bool
  456. # The cache model
  457. config CPU_CACHE_V4
  458. bool
  459. config CPU_CACHE_V4WT
  460. bool
  461. config CPU_CACHE_V4WB
  462. bool
  463. config CPU_CACHE_V6
  464. bool
  465. config CPU_CACHE_V7
  466. bool
  467. config CPU_CACHE_NOP
  468. bool
  469. config CPU_CACHE_VIVT
  470. bool
  471. config CPU_CACHE_VIPT
  472. bool
  473. config CPU_CACHE_FA
  474. bool
  475. config CPU_CACHE_V7M
  476. bool
  477. if MMU
  478. # The copy-page model
  479. config CPU_COPY_V4WT
  480. bool
  481. config CPU_COPY_V4WB
  482. bool
  483. config CPU_COPY_FEROCEON
  484. bool
  485. config CPU_COPY_FA
  486. bool
  487. config CPU_COPY_V6
  488. bool
  489. # This selects the TLB model
  490. config CPU_TLB_V4WT
  491. bool
  492. help
  493. ARM Architecture Version 4 TLB with writethrough cache.
  494. config CPU_TLB_V4WB
  495. bool
  496. help
  497. ARM Architecture Version 4 TLB with writeback cache.
  498. config CPU_TLB_V4WBI
  499. bool
  500. help
  501. ARM Architecture Version 4 TLB with writeback cache and invalidate
  502. instruction cache entry.
  503. config CPU_TLB_FEROCEON
  504. bool
  505. help
  506. Feroceon TLB (v4wbi with non-outer-cachable page table walks).
  507. config CPU_TLB_FA
  508. bool
  509. help
  510. Faraday ARM FA526 architecture, unified TLB with writeback cache
  511. and invalidate instruction cache entry. Branch target buffer is
  512. also supported.
  513. config CPU_TLB_V6
  514. bool
  515. config CPU_TLB_V7
  516. bool
  517. endif
  518. config CPU_HAS_ASID
  519. bool
  520. help
  521. This indicates whether the CPU has the ASID register; used to
  522. tag TLB and possibly cache entries.
  523. config CPU_CP15
  524. bool
  525. help
  526. Processor has the CP15 register.
  527. config CPU_CP15_MMU
  528. bool
  529. select CPU_CP15
  530. help
  531. Processor has the CP15 register, which has MMU related registers.
  532. config CPU_CP15_MPU
  533. bool
  534. select CPU_CP15
  535. help
  536. Processor has the CP15 register, which has MPU related registers.
  537. config CPU_USE_DOMAINS
  538. bool
  539. help
  540. This option enables or disables the use of domain switching
  541. using the DACR (domain access control register) to protect memory
  542. domains from each other. In Linux we use three domains: kernel, user
  543. and IO. The domains are used to protect userspace from kernelspace
  544. and to handle IO-space as a special type of memory by assigning
  545. manager or client roles to running code (such as a process).
  546. config CPU_V7M_NUM_IRQ
  547. int "Number of external interrupts connected to the NVIC"
  548. depends on CPU_V7M
  549. default 90 if ARCH_STM32
  550. default 112 if SOC_VF610
  551. default 240
  552. help
  553. This option indicates the number of interrupts connected to the NVIC.
  554. The value can be larger than the real number of interrupts supported
  555. by the system, but must not be lower.
  556. The default value is 240, corresponding to the maximum number of
  557. interrupts supported by the NVIC on Cortex-M family.
  558. If unsure, keep default value.
  559. #
  560. # CPU supports 36-bit I/O
  561. #
  562. config IO_36
  563. bool
  564. comment "Processor Features"
  565. config ARM_LPAE
  566. bool "Support for the Large Physical Address Extension"
  567. depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \
  568. !CPU_32v4 && !CPU_32v3
  569. select PHYS_ADDR_T_64BIT
  570. select SWIOTLB
  571. help
  572. Say Y if you have an ARMv7 processor supporting the LPAE page
  573. table format and you would like to access memory beyond the
  574. 4GB limit. The resulting kernel image will not run on
  575. processors without the LPA extension.
  576. If unsure, say N.
  577. config ARM_PV_FIXUP
  578. def_bool y
  579. depends on ARM_LPAE && ARM_PATCH_PHYS_VIRT && ARCH_KEYSTONE
  580. config ARM_THUMB
  581. bool "Support Thumb user binaries" if !CPU_THUMBONLY && EXPERT
  582. depends on CPU_THUMB_CAPABLE && !CPU_32v4
  583. default y
  584. help
  585. Say Y if you want to include kernel support for running user space
  586. Thumb binaries.
  587. The Thumb instruction set is a compressed form of the standard ARM
  588. instruction set resulting in smaller binaries at the expense of
  589. slightly less efficient code.
  590. If this option is disabled, and you run userspace that switches to
  591. Thumb mode, signal handling will not work correctly, resulting in
  592. segmentation faults or illegal instruction aborts.
  593. If you don't know what this all is, saying Y is a safe choice.
  594. config ARM_THUMBEE
  595. bool "Enable ThumbEE CPU extension"
  596. depends on CPU_V7
  597. help
  598. Say Y here if you have a CPU with the ThumbEE extension and code to
  599. make use of it. Say N for code that can run on CPUs without ThumbEE.
  600. config ARM_VIRT_EXT
  601. bool
  602. default y if CPU_V7
  603. help
  604. Enable the kernel to make use of the ARM Virtualization
  605. Extensions to install hypervisors without run-time firmware
  606. assistance.
  607. A compliant bootloader is required in order to make maximum
  608. use of this feature. Refer to Documentation/arm/booting.rst for
  609. details.
  610. config SWP_EMULATE
  611. bool "Emulate SWP/SWPB instructions" if !SMP
  612. depends on CPU_V7
  613. default y if SMP
  614. select HAVE_PROC_CPU if PROC_FS
  615. help
  616. ARMv6 architecture deprecates use of the SWP/SWPB instructions.
  617. ARMv7 multiprocessing extensions introduce the ability to disable
  618. these instructions, triggering an undefined instruction exception
  619. when executed. Say Y here to enable software emulation of these
  620. instructions for userspace (not kernel) using LDREX/STREX.
  621. Also creates /proc/cpu/swp_emulation for statistics.
  622. In some older versions of glibc [<=2.8] SWP is used during futex
  623. trylock() operations with the assumption that the code will not
  624. be preempted. This invalid assumption may be more likely to fail
  625. with SWP emulation enabled, leading to deadlock of the user
  626. application.
  627. NOTE: when accessing uncached shared regions, LDREX/STREX rely
  628. on an external transaction monitoring block called a global
  629. monitor to maintain update atomicity. If your system does not
  630. implement a global monitor, this option can cause programs that
  631. perform SWP operations to uncached memory to deadlock.
  632. If unsure, say Y.
  633. choice
  634. prompt "CPU Endianess"
  635. default CPU_LITTLE_ENDIAN
  636. config CPU_LITTLE_ENDIAN
  637. bool "Built little-endian kernel"
  638. help
  639. Say Y if you plan on running a kernel in little-endian mode.
  640. This is the default and is used in practically all modern user
  641. space builds.
  642. config CPU_BIG_ENDIAN
  643. bool "Build big-endian kernel"
  644. depends on !LD_IS_LLD
  645. help
  646. Say Y if you plan on running a kernel in big-endian mode.
  647. This works on many machines using ARMv6 or newer processors
  648. but requires big-endian user space.
  649. The only ARMv5 platform with big-endian support is
  650. Intel IXP4xx.
  651. endchoice
  652. config CPU_ENDIAN_BE8
  653. bool
  654. depends on CPU_BIG_ENDIAN
  655. default CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M
  656. help
  657. Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
  658. config CPU_ENDIAN_BE32
  659. bool
  660. depends on CPU_BIG_ENDIAN
  661. default !CPU_ENDIAN_BE8
  662. help
  663. Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
  664. config CPU_HIGH_VECTOR
  665. depends on !MMU && CPU_CP15 && !CPU_ARM740T
  666. bool "Select the High exception vector"
  667. help
  668. Say Y here to select high exception vector(0xFFFF0000~).
  669. The exception vector can vary depending on the platform
  670. design in nommu mode. If your platform needs to select
  671. high exception vector, say Y.
  672. Otherwise or if you are unsure, say N, and the low exception
  673. vector (0x00000000~) will be used.
  674. config CPU_ICACHE_DISABLE
  675. bool "Disable I-Cache (I-bit)"
  676. depends on (CPU_CP15 && !(CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)) || CPU_V7M
  677. help
  678. Say Y here to disable the processor instruction cache. Unless
  679. you have a reason not to or are unsure, say N.
  680. config CPU_ICACHE_MISMATCH_WORKAROUND
  681. bool "Workaround for I-Cache line size mismatch between CPU cores"
  682. depends on SMP && CPU_V7
  683. help
  684. Some big.LITTLE systems have I-Cache line size mismatch between
  685. LITTLE and big cores. Say Y here to enable a workaround for
  686. proper I-Cache support on such systems. If unsure, say N.
  687. config CPU_DCACHE_DISABLE
  688. bool "Disable D-Cache (C-bit)"
  689. depends on (CPU_CP15 && !SMP) || CPU_V7M
  690. help
  691. Say Y here to disable the processor data cache. Unless
  692. you have a reason not to or are unsure, say N.
  693. config CPU_DCACHE_SIZE
  694. hex
  695. depends on CPU_ARM740T || CPU_ARM946E
  696. default 0x00001000 if CPU_ARM740T
  697. default 0x00002000 # default size for ARM946E-S
  698. help
  699. Some cores are synthesizable to have various sized cache. For
  700. ARM946E-S case, it can vary from 0KB to 1MB.
  701. To support such cache operations, it is efficient to know the size
  702. before compile time.
  703. If your SoC is configured to have a different size, define the value
  704. here with proper conditions.
  705. config CPU_DCACHE_WRITETHROUGH
  706. bool "Force write through D-cache"
  707. depends on (CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_FA526) && !CPU_DCACHE_DISABLE
  708. default y if CPU_ARM925T
  709. help
  710. Say Y here to use the data cache in writethrough mode. Unless you
  711. specifically require this or are unsure, say N.
  712. config CPU_CACHE_ROUND_ROBIN
  713. bool "Round robin I and D cache replacement algorithm"
  714. depends on (CPU_ARM926T || CPU_ARM946E || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
  715. help
  716. Say Y here to use the predictable round-robin cache replacement
  717. policy. Unless you specifically require this or are unsure, say N.
  718. config CPU_BPREDICT_DISABLE
  719. bool "Disable branch prediction"
  720. depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526 || CPU_V7M
  721. help
  722. Say Y here to disable branch prediction. If unsure, say N.
  723. config CPU_SPECTRE
  724. bool
  725. select GENERIC_CPU_VULNERABILITIES
  726. config HARDEN_BRANCH_PREDICTOR
  727. bool "Harden the branch predictor against aliasing attacks" if EXPERT
  728. depends on CPU_SPECTRE
  729. default y
  730. help
  731. Speculation attacks against some high-performance processors rely
  732. on being able to manipulate the branch predictor for a victim
  733. context by executing aliasing branches in the attacker context.
  734. Such attacks can be partially mitigated against by clearing
  735. internal branch predictor state and limiting the prediction
  736. logic in some situations.
  737. This config option will take CPU-specific actions to harden
  738. the branch predictor against aliasing attacks and may rely on
  739. specific instruction sequences or control bits being set by
  740. the system firmware.
  741. If unsure, say Y.
  742. config HARDEN_BRANCH_HISTORY
  743. bool "Harden Spectre style attacks against branch history" if EXPERT
  744. depends on CPU_SPECTRE
  745. default y
  746. help
  747. Speculation attacks against some high-performance processors can
  748. make use of branch history to influence future speculation. When
  749. taking an exception, a sequence of branches overwrites the branch
  750. history, or branch history is invalidated.
  751. config TLS_REG_EMUL
  752. bool
  753. select NEED_KUSER_HELPERS
  754. help
  755. An SMP system using a pre-ARMv6 processor (there are apparently
  756. a few prototypes like that in existence) and therefore access to
  757. that required register must be emulated.
  758. config NEED_KUSER_HELPERS
  759. bool
  760. config KUSER_HELPERS
  761. bool "Enable kuser helpers in vector page" if !NEED_KUSER_HELPERS
  762. depends on MMU
  763. default y
  764. help
  765. Warning: disabling this option may break user programs.
  766. Provide kuser helpers in the vector page. The kernel provides
  767. helper code to userspace in read only form at a fixed location
  768. in the high vector page to allow userspace to be independent of
  769. the CPU type fitted to the system. This permits binaries to be
  770. run on ARMv4 through to ARMv7 without modification.
  771. See Documentation/arm/kernel_user_helpers.rst for details.
  772. However, the fixed address nature of these helpers can be used
  773. by ROP (return orientated programming) authors when creating
  774. exploits.
  775. If all of the binaries and libraries which run on your platform
  776. are built specifically for your platform, and make no use of
  777. these helpers, then you can turn this option off to hinder
  778. such exploits. However, in that case, if a binary or library
  779. relying on those helpers is run, it will receive a SIGILL signal,
  780. which will terminate the program.
  781. Say N here only if you are absolutely certain that you do not
  782. need these helpers; otherwise, the safe option is to say Y.
  783. config VDSO
  784. bool "Enable VDSO for acceleration of some system calls"
  785. depends on AEABI && MMU && CPU_V7
  786. default y if ARM_ARCH_TIMER
  787. select HAVE_GENERIC_VDSO
  788. select GENERIC_TIME_VSYSCALL
  789. select GENERIC_VDSO_32
  790. select GENERIC_GETTIMEOFDAY
  791. help
  792. Place in the process address space an ELF shared object
  793. providing fast implementations of gettimeofday and
  794. clock_gettime. Systems that implement the ARM architected
  795. timer will receive maximum benefit.
  796. You must have glibc 2.22 or later for programs to seamlessly
  797. take advantage of this.
  798. config DMA_CACHE_RWFO
  799. bool "Enable read/write for ownership DMA cache maintenance"
  800. depends on CPU_V6K && SMP
  801. default y
  802. help
  803. The Snoop Control Unit on ARM11MPCore does not detect the
  804. cache maintenance operations and the dma_{map,unmap}_area()
  805. functions may leave stale cache entries on other CPUs. By
  806. enabling this option, Read or Write For Ownership in the ARMv6
  807. DMA cache maintenance functions is performed. These LDR/STR
  808. instructions change the cache line state to shared or modified
  809. so that the cache operation has the desired effect.
  810. Note that the workaround is only valid on processors that do
  811. not perform speculative loads into the D-cache. For such
  812. processors, if cache maintenance operations are not broadcast
  813. in hardware, other workarounds are needed (e.g. cache
  814. maintenance broadcasting in software via FIQ).
  815. config OUTER_CACHE
  816. bool
  817. config OUTER_CACHE_SYNC
  818. bool
  819. select ARM_HEAVY_MB
  820. help
  821. The outer cache has a outer_cache_fns.sync function pointer
  822. that can be used to drain the write buffer of the outer cache.
  823. config CACHE_B15_RAC
  824. bool "Enable the Broadcom Brahma-B15 read-ahead cache controller"
  825. depends on ARCH_BRCMSTB
  826. default y
  827. help
  828. This option enables the Broadcom Brahma-B15 read-ahead cache
  829. controller. If disabled, the read-ahead cache remains off.
  830. config CACHE_FEROCEON_L2
  831. bool "Enable the Feroceon L2 cache controller"
  832. depends on ARCH_MV78XX0 || ARCH_MVEBU
  833. default y
  834. select OUTER_CACHE
  835. help
  836. This option enables the Feroceon L2 cache controller.
  837. config CACHE_FEROCEON_L2_WRITETHROUGH
  838. bool "Force Feroceon L2 cache write through"
  839. depends on CACHE_FEROCEON_L2
  840. help
  841. Say Y here to use the Feroceon L2 cache in writethrough mode.
  842. Unless you specifically require this, say N for writeback mode.
  843. config MIGHT_HAVE_CACHE_L2X0
  844. bool
  845. help
  846. This option should be selected by machines which have a L2x0
  847. or PL310 cache controller, but where its use is optional.
  848. The only effect of this option is to make CACHE_L2X0 and
  849. related options available to the user for configuration.
  850. Boards or SoCs which always require the cache controller
  851. support to be present should select CACHE_L2X0 directly
  852. instead of this option, thus preventing the user from
  853. inadvertently configuring a broken kernel.
  854. config CACHE_L2X0
  855. bool "Enable the L2x0 outer cache controller" if MIGHT_HAVE_CACHE_L2X0
  856. default MIGHT_HAVE_CACHE_L2X0
  857. select OUTER_CACHE
  858. select OUTER_CACHE_SYNC
  859. help
  860. This option enables the L2x0 PrimeCell.
  861. config CACHE_L2X0_PMU
  862. bool "L2x0 performance monitor support" if CACHE_L2X0
  863. depends on PERF_EVENTS
  864. help
  865. This option enables support for the performance monitoring features
  866. of the L220 and PL310 outer cache controllers.
  867. if CACHE_L2X0
  868. config PL310_ERRATA_588369
  869. bool "PL310 errata: Clean & Invalidate maintenance operations do not invalidate clean lines"
  870. help
  871. The PL310 L2 cache controller implements three types of Clean &
  872. Invalidate maintenance operations: by Physical Address
  873. (offset 0x7F0), by Index/Way (0x7F8) and by Way (0x7FC).
  874. They are architecturally defined to behave as the execution of a
  875. clean operation followed immediately by an invalidate operation,
  876. both performing to the same memory location. This functionality
  877. is not correctly implemented in PL310 prior to r2p0 (fixed in r2p0)
  878. as clean lines are not invalidated as a result of these operations.
  879. config PL310_ERRATA_727915
  880. bool "PL310 errata: Background Clean & Invalidate by Way operation can cause data corruption"
  881. help
  882. PL310 implements the Clean & Invalidate by Way L2 cache maintenance
  883. operation (offset 0x7FC). This operation runs in background so that
  884. PL310 can handle normal accesses while it is in progress. Under very
  885. rare circumstances, due to this erratum, write data can be lost when
  886. PL310 treats a cacheable write transaction during a Clean &
  887. Invalidate by Way operation. Revisions prior to r3p1 are affected by
  888. this errata (fixed in r3p1).
  889. config PL310_ERRATA_753970
  890. bool "PL310 errata: cache sync operation may be faulty"
  891. help
  892. This option enables the workaround for the 753970 PL310 (r3p0) erratum.
  893. Under some condition the effect of cache sync operation on
  894. the store buffer still remains when the operation completes.
  895. This means that the store buffer is always asked to drain and
  896. this prevents it from merging any further writes. The workaround
  897. is to replace the normal offset of cache sync operation (0x730)
  898. by another offset targeting an unmapped PL310 register 0x740.
  899. This has the same effect as the cache sync operation: store buffer
  900. drain and waiting for all buffers empty.
  901. config PL310_ERRATA_769419
  902. bool "PL310 errata: no automatic Store Buffer drain"
  903. help
  904. On revisions of the PL310 prior to r3p2, the Store Buffer does
  905. not automatically drain. This can cause normal, non-cacheable
  906. writes to be retained when the memory system is idle, leading
  907. to suboptimal I/O performance for drivers using coherent DMA.
  908. This option adds a write barrier to the cpu_idle loop so that,
  909. on systems with an outer cache, the store buffer is drained
  910. explicitly.
  911. endif
  912. config CACHE_TAUROS2
  913. bool "Enable the Tauros2 L2 cache controller"
  914. depends on (CPU_MOHAWK || CPU_PJ4)
  915. default y
  916. select OUTER_CACHE
  917. help
  918. This option enables the Tauros2 L2 cache controller (as
  919. found on PJ1/PJ4).
  920. config CACHE_UNIPHIER
  921. bool "Enable the UniPhier outer cache controller"
  922. depends on ARCH_UNIPHIER
  923. select ARM_L1_CACHE_SHIFT_7
  924. select OUTER_CACHE
  925. select OUTER_CACHE_SYNC
  926. help
  927. This option enables the UniPhier outer cache (system cache)
  928. controller.
  929. config CACHE_XSC3L2
  930. bool "Enable the L2 cache on XScale3"
  931. depends on CPU_XSC3
  932. default y
  933. select OUTER_CACHE
  934. help
  935. This option enables the L2 cache on XScale3.
  936. config ARM_L1_CACHE_SHIFT_6
  937. bool
  938. default y if CPU_V7
  939. help
  940. Setting ARM L1 cache line size to 64 Bytes.
  941. config ARM_L1_CACHE_SHIFT_7
  942. bool
  943. help
  944. Setting ARM L1 cache line size to 128 Bytes.
  945. config ARM_L1_CACHE_SHIFT
  946. int
  947. default 7 if ARM_L1_CACHE_SHIFT_7
  948. default 6 if ARM_L1_CACHE_SHIFT_6
  949. default 5
  950. config ARM_DMA_MEM_BUFFERABLE
  951. bool "Use non-cacheable memory for DMA" if (CPU_V6 || CPU_V6K || CPU_V7M) && !CPU_V7
  952. default y if CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M
  953. help
  954. Historically, the kernel has used strongly ordered mappings to
  955. provide DMA coherent memory. With the advent of ARMv7, mapping
  956. memory with differing types results in unpredictable behaviour,
  957. so on these CPUs, this option is forced on.
  958. Multiple mappings with differing attributes is also unpredictable
  959. on ARMv6 CPUs, but since they do not have aggressive speculative
  960. prefetch, no harm appears to occur.
  961. However, drivers may be missing the necessary barriers for ARMv6,
  962. and therefore turning this on may result in unpredictable driver
  963. behaviour. Therefore, we offer this as an option.
  964. On some of the beefier ARMv7-M machines (with DMA and write
  965. buffers) you likely want this enabled, while those that
  966. didn't need it until now also won't need it in the future.
  967. You are recommended say 'Y' here and debug any affected drivers.
  968. config ARM_HEAVY_MB
  969. bool
  970. config DEBUG_ALIGN_RODATA
  971. bool "Make rodata strictly non-executable"
  972. depends on STRICT_KERNEL_RWX
  973. default y
  974. help
  975. If this is set, rodata will be made explicitly non-executable. This
  976. provides protection on the rare chance that attackers might find and
  977. use ROP gadgets that exist in the rodata section. This adds an
  978. additional section-aligned split of rodata from kernel text so it
  979. can be made explicitly non-executable. This padding may waste memory
  980. space to gain the additional protection.