Kconfig 16 KB

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