Kconfig 13 KB

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