Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. #
  2. # ACPI Configuration
  3. #
  4. menuconfig ACPI
  5. bool "ACPI (Advanced Configuration and Power Interface) Support"
  6. depends on !IA64_HP_SIM
  7. depends on IA64 || X86 || ARM64
  8. depends on PCI
  9. select PNP
  10. default y if (IA64 || X86)
  11. help
  12. Advanced Configuration and Power Interface (ACPI) support for
  13. Linux requires an ACPI-compliant platform (hardware/firmware),
  14. and assumes the presence of OS-directed configuration and power
  15. management (OSPM) software. This option will enlarge your
  16. kernel by about 70K.
  17. Linux ACPI provides a robust functional replacement for several
  18. legacy configuration and power management interfaces, including
  19. the Plug-and-Play BIOS specification (PnP BIOS), the
  20. MultiProcessor Specification (MPS), and the Advanced Power
  21. Management (APM) specification. If both ACPI and APM support
  22. are configured, ACPI is used.
  23. The project home page for the Linux ACPI subsystem is here:
  24. <https://01.org/linux-acpi>
  25. Linux support for ACPI is based on Intel Corporation's ACPI
  26. Component Architecture (ACPI CA). For more information on the
  27. ACPI CA, see:
  28. <http://acpica.org/>
  29. ACPI is an open industry specification originally co-developed by
  30. Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba. Currently,
  31. it is developed by the ACPI Specification Working Group (ASWG) under
  32. the UEFI Forum and any UEFI member can join the ASWG and contribute
  33. to the ACPI specification.
  34. The specification is available at:
  35. <http://www.acpi.info>
  36. <http://www.uefi.org/acpi/specs>
  37. if ACPI
  38. config ACPI_LEGACY_TABLES_LOOKUP
  39. bool
  40. config ARCH_MIGHT_HAVE_ACPI_PDC
  41. bool
  42. config ACPI_GENERIC_GSI
  43. bool
  44. config ACPI_SYSTEM_POWER_STATES_SUPPORT
  45. bool
  46. config ACPI_CCA_REQUIRED
  47. bool
  48. config ACPI_DEBUGGER
  49. bool "AML debugger interface"
  50. select ACPI_DEBUG
  51. help
  52. Enable in-kernel debugging of AML facilities: statistics,
  53. internal object dump, single step control method execution.
  54. This is still under development, currently enabling this only
  55. results in the compilation of the ACPICA debugger files.
  56. if ACPI_DEBUGGER
  57. config ACPI_DEBUGGER_USER
  58. tristate "Userspace debugger accessiblity"
  59. depends on DEBUG_FS
  60. help
  61. Export /sys/kernel/debug/acpi/acpidbg for userspace utilities
  62. to access the debugger functionalities.
  63. endif
  64. config ACPI_SPCR_TABLE
  65. bool
  66. config ACPI_SLEEP
  67. bool
  68. depends on SUSPEND || HIBERNATION
  69. depends on ACPI_SYSTEM_POWER_STATES_SUPPORT
  70. default y
  71. config ACPI_PROCFS_POWER
  72. bool "Deprecated power /proc/acpi directories"
  73. depends on X86 && PROC_FS
  74. help
  75. For backwards compatibility, this option allows
  76. deprecated power /proc/acpi/ directories to exist, even when
  77. they have been replaced by functions in /sys.
  78. The deprecated directories (and their replacements) include:
  79. /proc/acpi/battery/* (/sys/class/power_supply/*)
  80. /proc/acpi/ac_adapter/* (sys/class/power_supply/*)
  81. This option has no effect on /proc/acpi/ directories
  82. and functions, which do not yet exist in /sys
  83. This option, together with the proc directories, will be
  84. deleted in the future.
  85. Say N to delete power /proc/acpi/ directories that have moved to /sys/
  86. config ACPI_REV_OVERRIDE_POSSIBLE
  87. bool "Allow supported ACPI revision to be overriden"
  88. depends on X86
  89. default y
  90. help
  91. The platform firmware on some systems expects Linux to return "5" as
  92. the supported ACPI revision which makes it expose system configuration
  93. information in a special way.
  94. For example, based on what ACPI exports as the supported revision,
  95. Dell XPS 13 (2015) configures its audio device to either work in HDA
  96. mode or in I2S mode, where the former is supposed to be used on Linux
  97. until the latter is fully supported (in the kernel as well as in user
  98. space).
  99. This option enables a DMI-based quirk for the above Dell machine (so
  100. that HDA audio is exposed by the platform firmware to the kernel) and
  101. makes it possible to force the kernel to return "5" as the supported
  102. ACPI revision via the "acpi_rev_override" command line switch.
  103. config ACPI_EC_DEBUGFS
  104. tristate "EC read/write access through /sys/kernel/debug/ec"
  105. default n
  106. help
  107. Say N to disable Embedded Controller /sys/kernel/debug interface
  108. Be aware that using this interface can confuse your Embedded
  109. Controller in a way that a normal reboot is not enough. You then
  110. have to power off your system, and remove the laptop battery for
  111. some seconds.
  112. An Embedded Controller typically is available on laptops and reads
  113. sensor values like battery state and temperature.
  114. The kernel accesses the EC through ACPI parsed code provided by BIOS
  115. tables. This option allows to access the EC directly without ACPI
  116. code being involved.
  117. Thus this option is a debug option that helps to write ACPI drivers
  118. and can be used to identify ACPI code or EC firmware bugs.
  119. config ACPI_AC
  120. tristate "AC Adapter"
  121. depends on X86
  122. select POWER_SUPPLY
  123. default y
  124. help
  125. This driver supports the AC Adapter object, which indicates
  126. whether a system is on AC or not. If you have a system that can
  127. switch between A/C and battery, say Y.
  128. To compile this driver as a module, choose M here:
  129. the module will be called ac.
  130. config ACPI_BATTERY
  131. tristate "Battery"
  132. depends on X86
  133. select POWER_SUPPLY
  134. default y
  135. help
  136. This driver adds support for battery information through
  137. /proc/acpi/battery. If you have a mobile system with a battery,
  138. say Y.
  139. To compile this driver as a module, choose M here:
  140. the module will be called battery.
  141. config ACPI_BUTTON
  142. tristate "Button"
  143. depends on INPUT
  144. default y
  145. help
  146. This driver handles events on the power, sleep, and lid buttons.
  147. A daemon reads events from input devices or via netlink and
  148. performs user-defined actions such as shutting down the system.
  149. This is necessary for software-controlled poweroff.
  150. To compile this driver as a module, choose M here:
  151. the module will be called button.
  152. config ACPI_VIDEO
  153. tristate "Video"
  154. depends on X86 && BACKLIGHT_CLASS_DEVICE
  155. depends on INPUT
  156. select THERMAL
  157. help
  158. This driver implements the ACPI Extensions For Display Adapters
  159. for integrated graphics devices on motherboard, as specified in
  160. ACPI 2.0 Specification, Appendix B. This supports basic operations
  161. such as defining the video POST device, retrieving EDID information,
  162. and setting up a video output.
  163. To compile this driver as a module, choose M here:
  164. the module will be called video.
  165. config ACPI_FAN
  166. tristate "Fan"
  167. depends on THERMAL
  168. default y
  169. help
  170. This driver supports ACPI fan devices, allowing user-mode
  171. applications to perform basic fan control (on, off, status).
  172. To compile this driver as a module, choose M here:
  173. the module will be called fan.
  174. config ACPI_DOCK
  175. bool "Dock"
  176. help
  177. This driver supports ACPI-controlled docking stations and removable
  178. drive bays such as the IBM Ultrabay and the Dell Module Bay.
  179. config ACPI_CPU_FREQ_PSS
  180. bool
  181. select THERMAL
  182. config ACPI_PROCESSOR_CSTATE
  183. def_bool y
  184. depends on IA64 || X86
  185. config ACPI_PROCESSOR_IDLE
  186. bool
  187. select CPU_IDLE
  188. config ACPI_MCFG
  189. bool
  190. config ACPI_CPPC_LIB
  191. bool
  192. depends on ACPI_PROCESSOR
  193. select MAILBOX
  194. select PCC
  195. help
  196. If this option is enabled, this file implements common functionality
  197. to parse CPPC tables as described in the ACPI 5.1+ spec. The
  198. routines implemented are meant to be used by other
  199. drivers to control CPU performance using CPPC semantics.
  200. If your platform does not support CPPC in firmware,
  201. leave this option disabled.
  202. config ACPI_PROCESSOR
  203. tristate "Processor"
  204. depends on X86 || IA64 || ARM64
  205. select ACPI_PROCESSOR_IDLE
  206. select ACPI_CPU_FREQ_PSS if X86 || IA64
  207. default y
  208. help
  209. This driver adds support for the ACPI Processor package. It is required
  210. by several flavors of cpufreq performance-state, thermal, throttling and
  211. idle drivers.
  212. To compile this driver as a module, choose M here:
  213. the module will be called processor.
  214. config ACPI_IPMI
  215. tristate "IPMI"
  216. depends on IPMI_SI
  217. default n
  218. help
  219. This driver enables the ACPI to access the BMC controller. And it
  220. uses the IPMI request/response message to communicate with BMC
  221. controller, which can be found on on the server.
  222. To compile this driver as a module, choose M here:
  223. the module will be called as acpi_ipmi.
  224. config ACPI_HOTPLUG_CPU
  225. bool
  226. depends on ACPI_PROCESSOR && HOTPLUG_CPU
  227. select ACPI_CONTAINER
  228. default y
  229. config ACPI_PROCESSOR_AGGREGATOR
  230. tristate "Processor Aggregator"
  231. depends on ACPI_PROCESSOR
  232. depends on X86
  233. help
  234. ACPI 4.0 defines processor Aggregator, which enables OS to perform
  235. specific processor configuration and control that applies to all
  236. processors in the platform. Currently only logical processor idling
  237. is defined, which is to reduce power consumption. This driver
  238. supports the new device.
  239. config ACPI_THERMAL
  240. tristate "Thermal Zone"
  241. depends on ACPI_PROCESSOR
  242. select THERMAL
  243. default y
  244. help
  245. This driver supports ACPI thermal zones. Most mobile and
  246. some desktop systems support ACPI thermal zones. It is HIGHLY
  247. recommended that this option be enabled, as your processor(s)
  248. may be damaged without it.
  249. To compile this driver as a module, choose M here:
  250. the module will be called thermal.
  251. config ACPI_NUMA
  252. bool "NUMA support"
  253. depends on NUMA
  254. depends on (X86 || IA64 || ARM64)
  255. default y if IA64_GENERIC || IA64_SGI_SN2 || ARM64
  256. config ACPI_CUSTOM_DSDT_FILE
  257. string "Custom DSDT Table file to include"
  258. default ""
  259. depends on !STANDALONE
  260. help
  261. This option supports a custom DSDT by linking it into the kernel.
  262. See Documentation/acpi/dsdt-override.txt
  263. Enter the full path name to the file which includes the AmlCode
  264. declaration.
  265. If unsure, don't enter a file name.
  266. config ACPI_CUSTOM_DSDT
  267. bool
  268. default ACPI_CUSTOM_DSDT_FILE != ""
  269. config ARCH_HAS_ACPI_TABLE_UPGRADE
  270. def_bool n
  271. config ACPI_TABLE_UPGRADE
  272. bool "Allow upgrading ACPI tables via initrd"
  273. depends on BLK_DEV_INITRD && ARCH_HAS_ACPI_TABLE_UPGRADE
  274. default y
  275. help
  276. This option provides functionality to upgrade arbitrary ACPI tables
  277. via initrd. No functional change if no ACPI tables are passed via
  278. initrd, therefore it's safe to say Y.
  279. See Documentation/acpi/initrd_table_override.txt for details
  280. config ACPI_DEBUG
  281. bool "Debug Statements"
  282. default n
  283. help
  284. The ACPI subsystem can produce debug output. Saying Y enables this
  285. output and increases the kernel size by around 50K.
  286. Use the acpi.debug_layer and acpi.debug_level kernel command-line
  287. parameters documented in Documentation/acpi/debug.txt and
  288. Documentation/kernel-parameters.txt to control the type and
  289. amount of debug output.
  290. config ACPI_PCI_SLOT
  291. bool "PCI slot detection driver"
  292. depends on SYSFS
  293. default n
  294. help
  295. This driver creates entries in /sys/bus/pci/slots/ for all PCI
  296. slots in the system. This can help correlate PCI bus addresses,
  297. i.e., segment/bus/device/function tuples, with physical slots in
  298. the system. If you are unsure, say N.
  299. config X86_PM_TIMER
  300. bool "Power Management Timer Support" if EXPERT
  301. depends on X86
  302. default y
  303. help
  304. The Power Management Timer is available on all ACPI-capable,
  305. in most cases even if ACPI is unusable or blacklisted.
  306. This timing source is not affected by power management features
  307. like aggressive processor idling, throttling, frequency and/or
  308. voltage scaling, unlike the commonly used Time Stamp Counter
  309. (TSC) timing source.
  310. You should nearly always say Y here because many modern
  311. systems require this timer.
  312. config ACPI_CONTAINER
  313. bool "Container and Module Devices"
  314. default (ACPI_HOTPLUG_MEMORY || ACPI_HOTPLUG_CPU)
  315. help
  316. This driver supports ACPI Container and Module devices (IDs
  317. ACPI0004, PNP0A05, and PNP0A06).
  318. This helps support hotplug of nodes, CPUs, and memory.
  319. To compile this driver as a module, choose M here:
  320. the module will be called container.
  321. config ACPI_HOTPLUG_MEMORY
  322. bool "Memory Hotplug"
  323. depends on MEMORY_HOTPLUG
  324. help
  325. This driver supports ACPI memory hotplug. The driver
  326. fields notifications on ACPI memory devices (PNP0C80),
  327. which represent memory ranges that may be onlined or
  328. offlined during runtime.
  329. If your hardware and firmware do not support adding or
  330. removing memory devices at runtime, you need not enable
  331. this driver.
  332. To compile this driver as a module, choose M here:
  333. the module will be called acpi_memhotplug.
  334. config ACPI_HOTPLUG_IOAPIC
  335. bool
  336. depends on PCI
  337. depends on X86_IO_APIC
  338. default y
  339. config ACPI_SBS
  340. tristate "Smart Battery System"
  341. depends on X86
  342. select POWER_SUPPLY
  343. help
  344. This driver supports the Smart Battery System, another
  345. type of access to battery information, found on some laptops.
  346. To compile this driver as a module, choose M here:
  347. the modules will be called sbs and sbshc.
  348. config ACPI_HED
  349. tristate "Hardware Error Device"
  350. help
  351. This driver supports the Hardware Error Device (PNP0C33),
  352. which is used to report some hardware errors notified via
  353. SCI, mainly the corrected errors.
  354. config ACPI_CUSTOM_METHOD
  355. tristate "Allow ACPI methods to be inserted/replaced at run time"
  356. depends on DEBUG_FS
  357. default n
  358. help
  359. This debug facility allows ACPI AML methods to be inserted and/or
  360. replaced without rebooting the system. For details refer to:
  361. Documentation/acpi/method-customizing.txt.
  362. NOTE: This option is security sensitive, because it allows arbitrary
  363. kernel memory to be written to by root (uid=0) users, allowing them
  364. to bypass certain security measures (e.g. if root is not allowed to
  365. load additional kernel modules after boot, this feature may be used
  366. to override that restriction).
  367. config ACPI_BGRT
  368. bool "Boottime Graphics Resource Table support"
  369. depends on EFI && X86
  370. help
  371. This driver adds support for exposing the ACPI Boottime Graphics
  372. Resource Table, which allows the operating system to obtain
  373. data from the firmware boot splash. It will appear under
  374. /sys/firmware/acpi/bgrt/ .
  375. config ACPI_REDUCED_HARDWARE_ONLY
  376. bool "Hardware-reduced ACPI support only" if EXPERT
  377. def_bool n
  378. help
  379. This config item changes the way the ACPI code is built. When this
  380. option is selected, the kernel will use a specialized version of
  381. ACPICA that ONLY supports the ACPI "reduced hardware" mode. The
  382. resulting kernel will be smaller but it will also be restricted to
  383. running in ACPI reduced hardware mode ONLY.
  384. If you are unsure what to do, do not enable this option.
  385. source "drivers/acpi/nfit/Kconfig"
  386. source "drivers/acpi/apei/Kconfig"
  387. source "drivers/acpi/dptf/Kconfig"
  388. config ACPI_WATCHDOG
  389. bool
  390. config ACPI_EXTLOG
  391. tristate "Extended Error Log support"
  392. depends on X86_MCE && X86_LOCAL_APIC
  393. select UEFI_CPER
  394. select RAS
  395. default n
  396. help
  397. Certain usages such as Predictive Failure Analysis (PFA) require
  398. more information about the error than what can be described in
  399. processor machine check banks. Most server processors log
  400. additional information about the error in processor uncore
  401. registers. Since the addresses and layout of these registers vary
  402. widely from one processor to another, system software cannot
  403. readily make use of them. To complicate matters further, some of
  404. the additional error information cannot be constructed without
  405. detailed knowledge about platform topology.
  406. Enhanced MCA Logging allows firmware to provide additional error
  407. information to system software, synchronous with MCE or CMCI. This
  408. driver adds support for that functionality with corresponding
  409. tracepoint which carries that information to userspace.
  410. menuconfig PMIC_OPREGION
  411. bool "PMIC (Power Management Integrated Circuit) operation region support"
  412. help
  413. Select this option to enable support for ACPI operation
  414. region of the PMIC chip. The operation region can be used
  415. to control power rails and sensor reading/writing on the
  416. PMIC chip.
  417. if PMIC_OPREGION
  418. config CRC_PMIC_OPREGION
  419. bool "ACPI operation region support for CrystalCove PMIC"
  420. depends on INTEL_SOC_PMIC
  421. help
  422. This config adds ACPI operation region support for CrystalCove PMIC.
  423. config XPOWER_PMIC_OPREGION
  424. bool "ACPI operation region support for XPower AXP288 PMIC"
  425. depends on AXP288_ADC = y
  426. help
  427. This config adds ACPI operation region support for XPower AXP288 PMIC.
  428. config BXT_WC_PMIC_OPREGION
  429. bool "ACPI operation region support for BXT WhiskeyCove PMIC"
  430. depends on INTEL_SOC_PMIC
  431. help
  432. This config adds ACPI operation region support for BXT WhiskeyCove PMIC.
  433. endif
  434. config ACPI_CONFIGFS
  435. tristate "ACPI configfs support"
  436. select CONFIGFS_FS
  437. help
  438. Select this option to enable support for ACPI configuration from
  439. userspace. The configurable ACPI groups will be visible under
  440. /config/acpi, assuming configfs is mounted under /config.
  441. if ARM64
  442. source "drivers/acpi/arm64/Kconfig"
  443. endif
  444. endif # ACPI