License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 14:07:57 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
# ACPI Configuration
|
|
|
|
#
|
|
|
|
|
2018-08-21 20:37:33 +00:00
|
|
|
config ARCH_SUPPORTS_ACPI
|
|
|
|
bool
|
|
|
|
|
2007-07-03 05:40:59 +00:00
|
|
|
menuconfig ACPI
|
2007-10-29 21:20:38 +00:00
|
|
|
bool "ACPI (Advanced Configuration and Power Interface) Support"
|
2018-07-24 09:48:45 +00:00
|
|
|
depends on ARCH_SUPPORTS_ACPI
|
2007-02-16 03:34:36 +00:00
|
|
|
select PNP
|
2018-12-30 20:40:05 +00:00
|
|
|
select NLS
|
2022-01-30 22:38:18 +00:00
|
|
|
select CRC32
|
2018-07-24 09:48:45 +00:00
|
|
|
default y if X86
|
2009-02-19 21:45:47 +00:00
|
|
|
help
|
2005-04-16 22:20:36 +00:00
|
|
|
Advanced Configuration and Power Interface (ACPI) support for
|
2009-02-19 21:45:47 +00:00
|
|
|
Linux requires an ACPI-compliant platform (hardware/firmware),
|
2005-04-16 22:20:36 +00:00
|
|
|
and assumes the presence of OS-directed configuration and power
|
|
|
|
management (OSPM) software. This option will enlarge your
|
|
|
|
kernel by about 70K.
|
|
|
|
|
|
|
|
Linux ACPI provides a robust functional replacement for several
|
|
|
|
legacy configuration and power management interfaces, including
|
|
|
|
the Plug-and-Play BIOS specification (PnP BIOS), the
|
|
|
|
MultiProcessor Specification (MPS), and the Advanced Power
|
|
|
|
Management (APM) specification. If both ACPI and APM support
|
2009-02-19 21:45:47 +00:00
|
|
|
are configured, ACPI is used.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2009-02-19 21:45:47 +00:00
|
|
|
The project home page for the Linux ACPI subsystem is here:
|
2013-10-10 21:25:58 +00:00
|
|
|
<https://01.org/linux-acpi>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
Linux support for ACPI is based on Intel Corporation's ACPI
|
2009-02-19 21:45:47 +00:00
|
|
|
Component Architecture (ACPI CA). For more information on the
|
|
|
|
ACPI CA, see:
|
2020-07-17 18:24:36 +00:00
|
|
|
<https://acpica.org/>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2014-04-08 12:59:48 +00:00
|
|
|
ACPI is an open industry specification originally co-developed by
|
|
|
|
Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba. Currently,
|
|
|
|
it is developed by the ACPI Specification Working Group (ASWG) under
|
|
|
|
the UEFI Forum and any UEFI member can join the ASWG and contribute
|
|
|
|
to the ACPI specification.
|
2009-02-19 21:45:47 +00:00
|
|
|
The specification is available at:
|
2020-07-27 09:29:38 +00:00
|
|
|
<https://uefi.org/specifications>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-05-27 08:53:27 +00:00
|
|
|
if ACPI
|
|
|
|
|
2014-07-18 10:02:52 +00:00
|
|
|
config ACPI_LEGACY_TABLES_LOOKUP
|
|
|
|
bool
|
|
|
|
|
2014-07-18 10:02:54 +00:00
|
|
|
config ARCH_MIGHT_HAVE_ACPI_PDC
|
|
|
|
bool
|
|
|
|
|
2015-03-24 17:58:51 +00:00
|
|
|
config ACPI_GENERIC_GSI
|
|
|
|
bool
|
|
|
|
|
2015-03-24 14:02:39 +00:00
|
|
|
config ACPI_SYSTEM_POWER_STATES_SUPPORT
|
|
|
|
bool
|
|
|
|
|
2015-06-10 16:08:52 +00:00
|
|
|
config ACPI_CCA_REQUIRED
|
|
|
|
bool
|
|
|
|
|
2021-10-29 19:51:32 +00:00
|
|
|
config ACPI_TABLE_LIB
|
|
|
|
bool
|
|
|
|
|
2015-10-19 02:25:56 +00:00
|
|
|
config ACPI_DEBUGGER
|
2015-12-03 02:43:00 +00:00
|
|
|
bool "AML debugger interface"
|
2015-10-19 02:25:56 +00:00
|
|
|
select ACPI_DEBUG
|
|
|
|
help
|
2015-12-03 02:43:14 +00:00
|
|
|
Enable in-kernel debugging of AML facilities: statistics,
|
|
|
|
internal object dump, single step control method execution.
|
2015-10-19 02:25:56 +00:00
|
|
|
This is still under development, currently enabling this only
|
|
|
|
results in the compilation of the ACPICA debugger files.
|
|
|
|
|
2015-12-03 02:43:14 +00:00
|
|
|
if ACPI_DEBUGGER
|
|
|
|
|
|
|
|
config ACPI_DEBUGGER_USER
|
2021-09-21 06:21:24 +00:00
|
|
|
tristate "Userspace debugger accessibility"
|
2015-12-03 02:43:14 +00:00
|
|
|
depends on DEBUG_FS
|
|
|
|
help
|
|
|
|
Export /sys/kernel/debug/acpi/acpidbg for userspace utilities
|
|
|
|
to access the debugger functionalities.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2016-09-27 20:54:13 +00:00
|
|
|
config ACPI_SPCR_TABLE
|
2018-01-18 15:09:51 +00:00
|
|
|
bool "ACPI Serial Port Console Redirection Support"
|
|
|
|
default y if X86
|
|
|
|
help
|
|
|
|
Enable support for Serial Port Console Redirection (SPCR) Table.
|
|
|
|
This table provides information about the configuration of the
|
|
|
|
earlycon console.
|
2016-09-27 20:54:13 +00:00
|
|
|
|
2021-01-29 06:15:48 +00:00
|
|
|
config ACPI_FPDT
|
|
|
|
bool "ACPI Firmware Performance Data Table (FPDT) support"
|
|
|
|
depends on X86_64
|
|
|
|
help
|
|
|
|
Enable support for the Firmware Performance Data Table (FPDT).
|
|
|
|
This table provides information on the timing of the system
|
|
|
|
boot, S3 suspend and S3 resume firmware code paths.
|
|
|
|
|
2017-10-05 23:24:03 +00:00
|
|
|
config ACPI_LPIT
|
|
|
|
bool
|
|
|
|
depends on X86_64
|
|
|
|
default y
|
|
|
|
|
2007-07-28 07:33:16 +00:00
|
|
|
config ACPI_SLEEP
|
|
|
|
bool
|
2008-10-22 18:58:43 +00:00
|
|
|
depends on SUSPEND || HIBERNATION
|
2015-03-24 14:02:39 +00:00
|
|
|
depends on ACPI_SYSTEM_POWER_STATES_SUPPORT
|
2007-07-28 07:33:16 +00:00
|
|
|
default y
|
|
|
|
|
2015-07-02 23:06:00 +00:00
|
|
|
config ACPI_REV_OVERRIDE_POSSIBLE
|
2016-09-17 14:44:17 +00:00
|
|
|
bool "Allow supported ACPI revision to be overridden"
|
2015-07-02 23:06:00 +00:00
|
|
|
depends on X86
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
The platform firmware on some systems expects Linux to return "5" as
|
|
|
|
the supported ACPI revision which makes it expose system configuration
|
|
|
|
information in a special way.
|
|
|
|
|
|
|
|
For example, based on what ACPI exports as the supported revision,
|
|
|
|
Dell XPS 13 (2015) configures its audio device to either work in HDA
|
|
|
|
mode or in I2S mode, where the former is supposed to be used on Linux
|
|
|
|
until the latter is fully supported (in the kernel as well as in user
|
|
|
|
space).
|
|
|
|
|
|
|
|
This option enables a DMI-based quirk for the above Dell machine (so
|
|
|
|
that HDA audio is exposed by the platform firmware to the kernel) and
|
|
|
|
makes it possible to force the kernel to return "5" as the supported
|
|
|
|
ACPI revision via the "acpi_rev_override" command line switch.
|
|
|
|
|
2010-07-16 11:11:31 +00:00
|
|
|
config ACPI_EC_DEBUGFS
|
|
|
|
tristate "EC read/write access through /sys/kernel/debug/ec"
|
|
|
|
help
|
|
|
|
Say N to disable Embedded Controller /sys/kernel/debug interface
|
|
|
|
|
2010-07-29 20:30:24 +00:00
|
|
|
Be aware that using this interface can confuse your Embedded
|
|
|
|
Controller in a way that a normal reboot is not enough. You then
|
2010-08-18 13:22:10 +00:00
|
|
|
have to power off your system, and remove the laptop battery for
|
2010-07-29 20:30:24 +00:00
|
|
|
some seconds.
|
2010-07-16 11:11:31 +00:00
|
|
|
An Embedded Controller typically is available on laptops and reads
|
|
|
|
sensor values like battery state and temperature.
|
2010-07-29 20:30:24 +00:00
|
|
|
The kernel accesses the EC through ACPI parsed code provided by BIOS
|
|
|
|
tables. This option allows to access the EC directly without ACPI
|
|
|
|
code being involved.
|
2010-07-16 11:11:31 +00:00
|
|
|
Thus this option is a debug option that helps to write ACPI drivers
|
|
|
|
and can be used to identify ACPI code or EC firmware bugs.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_AC
|
|
|
|
tristate "AC Adapter"
|
2010-10-08 05:54:57 +00:00
|
|
|
select POWER_SUPPLY
|
2005-08-25 16:22:04 +00:00
|
|
|
default y
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver supports the AC Adapter object, which indicates
|
|
|
|
whether a system is on AC or not. If you have a system that can
|
2005-08-25 16:22:04 +00:00
|
|
|
switch between A/C and battery, say Y.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2009-02-19 21:45:47 +00:00
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the module will be called ac.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_BATTERY
|
|
|
|
tristate "Battery"
|
2010-10-08 05:54:57 +00:00
|
|
|
select POWER_SUPPLY
|
2005-08-25 16:22:04 +00:00
|
|
|
default y
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
|
|
|
This driver adds support for battery information through
|
|
|
|
/proc/acpi/battery. If you have a mobile system with a battery,
|
|
|
|
say Y.
|
|
|
|
|
2009-02-19 21:45:47 +00:00
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the module will be called battery.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_BUTTON
|
|
|
|
tristate "Button"
|
2006-11-09 05:40:13 +00:00
|
|
|
depends on INPUT
|
2005-08-25 16:22:04 +00:00
|
|
|
default y
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver handles events on the power, sleep, and lid buttons.
|
2013-10-12 22:11:00 +00:00
|
|
|
A daemon reads events from input devices or via netlink and
|
|
|
|
performs user-defined actions such as shutting down the system.
|
|
|
|
This is necessary for software-controlled poweroff.
|
2009-02-19 21:45:47 +00:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the module will be called button.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2020-02-11 23:38:06 +00:00
|
|
|
config ACPI_TINY_POWER_BUTTON
|
|
|
|
tristate "Tiny Power Button Driver"
|
|
|
|
depends on !ACPI_BUTTON
|
|
|
|
help
|
|
|
|
This driver provides a tiny alternative to the ACPI Button driver.
|
|
|
|
The tiny power button driver only handles the power button. Rather
|
|
|
|
than notifying userspace via the input layer or a netlink event, this
|
|
|
|
driver directly signals the init process to shut down.
|
|
|
|
|
|
|
|
This driver is particularly suitable for cloud and VM environments,
|
|
|
|
which use a simulated power button to initiate a controlled poweroff,
|
|
|
|
but which may not want to run a separate userspace daemon to process
|
|
|
|
input events.
|
|
|
|
|
|
|
|
config ACPI_TINY_POWER_BUTTON_SIGNAL
|
|
|
|
int "Tiny Power Button Signal"
|
|
|
|
depends on ACPI_TINY_POWER_BUTTON
|
|
|
|
default 38
|
|
|
|
help
|
|
|
|
Default signal to send to init in response to the power button.
|
|
|
|
|
|
|
|
Likely values here include 38 (SIGRTMIN+4) to power off, or 2
|
|
|
|
(SIGINT) to simulate Ctrl+Alt+Del.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_VIDEO
|
|
|
|
tristate "Video"
|
2022-06-13 09:33:47 +00:00
|
|
|
depends on BACKLIGHT_CLASS_DEVICE
|
2007-09-17 21:41:05 +00:00
|
|
|
depends on INPUT
|
2008-04-21 08:07:13 +00:00
|
|
|
select THERMAL
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver implements the ACPI Extensions For Display Adapters
|
2005-04-16 22:20:36 +00:00
|
|
|
for integrated graphics devices on motherboard, as specified in
|
2009-02-19 21:45:47 +00:00
|
|
|
ACPI 2.0 Specification, Appendix B. This supports basic operations
|
|
|
|
such as defining the video POST device, retrieving EDID information,
|
|
|
|
and setting up a video output.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the module will be called video.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
config ACPI_FAN
|
|
|
|
tristate "Fan"
|
2014-06-19 07:43:29 +00:00
|
|
|
depends on THERMAL
|
2005-08-25 16:22:04 +00:00
|
|
|
default y
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver supports ACPI fan devices, allowing user-mode
|
2005-04-16 22:20:36 +00:00
|
|
|
applications to perform basic fan control (on, off, status).
|
|
|
|
|
2009-02-19 21:45:47 +00:00
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the module will be called fan.
|
|
|
|
|
2018-03-16 12:51:01 +00:00
|
|
|
config ACPI_TAD
|
|
|
|
tristate "ACPI Time and Alarm (TAD) Device Support"
|
|
|
|
depends on SYSFS && PM_SLEEP
|
|
|
|
help
|
|
|
|
The ACPI Time and Alarm (TAD) device is an alternative to the Real
|
|
|
|
Time Clock (RTC). Its wake timers allow the system to transition from
|
|
|
|
the S3 (or optionally S4/S5) state to S0 state after a time period
|
|
|
|
elapses. In comparison with the RTC Alarm, the TAD provides a larger
|
|
|
|
scale of flexibility in the wake timers. The time capabilities of the
|
|
|
|
TAD maintain the time of day information across platform power
|
|
|
|
transitions, and keep track of time even when the platform is turned
|
|
|
|
off.
|
|
|
|
|
2006-07-09 21:22:28 +00:00
|
|
|
config ACPI_DOCK
|
2008-09-27 03:10:28 +00:00
|
|
|
bool "Dock"
|
2006-07-09 21:22:28 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver supports ACPI-controlled docking stations and removable
|
|
|
|
drive bays such as the IBM Ultrabay and the Dell Module Bay.
|
2006-10-20 21:30:25 +00:00
|
|
|
|
2015-08-05 13:40:25 +00:00
|
|
|
config ACPI_CPU_FREQ_PSS
|
|
|
|
bool
|
|
|
|
|
2016-07-19 17:52:53 +00:00
|
|
|
config ACPI_PROCESSOR_CSTATE
|
|
|
|
def_bool y
|
2019-12-16 11:07:01 +00:00
|
|
|
depends on ACPI_PROCESSOR
|
2016-07-19 17:52:53 +00:00
|
|
|
depends on IA64 || X86
|
|
|
|
|
2015-08-05 13:40:26 +00:00
|
|
|
config ACPI_PROCESSOR_IDLE
|
|
|
|
bool
|
|
|
|
select CPU_IDLE
|
|
|
|
|
2016-06-10 19:55:13 +00:00
|
|
|
config ACPI_MCFG
|
|
|
|
bool
|
|
|
|
|
2015-10-02 14:01:19 +00:00
|
|
|
config ACPI_CPPC_LIB
|
|
|
|
bool
|
|
|
|
depends on ACPI_PROCESSOR
|
|
|
|
select MAILBOX
|
|
|
|
select PCC
|
|
|
|
help
|
|
|
|
If this option is enabled, this file implements common functionality
|
|
|
|
to parse CPPC tables as described in the ACPI 5.1+ spec. The
|
|
|
|
routines implemented are meant to be used by other
|
|
|
|
drivers to control CPU performance using CPPC semantics.
|
|
|
|
If your platform does not support CPPC in firmware,
|
|
|
|
leave this option disabled.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_PROCESSOR
|
|
|
|
tristate "Processor"
|
2021-07-05 12:42:04 +00:00
|
|
|
depends on X86 || IA64 || ARM64 || LOONGARCH
|
2016-07-19 17:52:59 +00:00
|
|
|
select ACPI_PROCESSOR_IDLE
|
2021-07-05 12:42:04 +00:00
|
|
|
select ACPI_CPU_FREQ_PSS if X86 || IA64 || LOONGARCH
|
2022-06-17 02:51:51 +00:00
|
|
|
select THERMAL
|
2005-08-25 16:22:04 +00:00
|
|
|
default y
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
2015-08-05 13:40:25 +00:00
|
|
|
This driver adds support for the ACPI Processor package. It is required
|
|
|
|
by several flavors of cpufreq performance-state, thermal, throttling and
|
|
|
|
idle drivers.
|
2009-02-19 21:45:47 +00:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the module will be called processor.
|
2013-09-13 05:14:51 +00:00
|
|
|
|
2010-12-08 02:10:18 +00:00
|
|
|
config ACPI_IPMI
|
|
|
|
tristate "IPMI"
|
2017-03-25 14:02:54 +00:00
|
|
|
depends on IPMI_HANDLER
|
2010-12-08 02:10:18 +00:00
|
|
|
help
|
|
|
|
This driver enables the ACPI to access the BMC controller. And it
|
|
|
|
uses the IPMI request/response message to communicate with BMC
|
2022-02-06 14:58:03 +00:00
|
|
|
controller, which can be found on the server.
|
2010-12-08 02:10:18 +00:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the module will be called as acpi_ipmi.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
config ACPI_HOTPLUG_CPU
|
2005-07-30 08:18:00 +00:00
|
|
|
bool
|
2013-01-17 02:53:28 +00:00
|
|
|
depends on ACPI_PROCESSOR && HOTPLUG_CPU
|
2005-04-16 22:20:36 +00:00
|
|
|
select ACPI_CONTAINER
|
2005-07-30 08:18:00 +00:00
|
|
|
default y
|
2005-04-16 22:20:36 +00:00
|
|
|
|
ACPI: create Processor Aggregator Device driver
ACPI 4.0 created the logical "processor aggregator device" as
a mechinism for platforms to ask the OS to force otherwise busy
processors to enter (power saving) idle.
The intent is to lower power consumption to ride-out
transient electrical and thermal emergencies,
rather than powering off the server.
On platforms that can save more power/performance via P-states,
the platform will first exhaust P-states before forcing idle.
However, the relative benefit of P-states vs. idle states
is platform dependent, and thus this driver need not know
or care about it.
This driver does not use the kernel's CPU hot-plug mechanism
because after the transient emergency is over, the system must
be returned to its normal state, and hotplug would permanently
break both cpusets and binding.
So to force idle, the driver creates a power saving thread.
The scheduler will migrate the thread to the preferred CPU.
The thread has max priority and has SCHED_RR policy,
so it can occupy one CPU. To save power, the thread will
invoke the deep C-state entry instructions.
To avoid starvation, the thread will sleep 5% of the time
time for every second (current RT scheduler has threshold
to avoid starvation, but if other CPUs are idle,
the CPU can borrow CPU timer from other,
which makes the mechanism not work here)
Vaidyanathan Srinivasan has proposed scheduler enhancements
to allow injecting idle time into the system. This driver doesn't
depend on those enhancements, but could cut over to them
when they are available.
Peter Z. does not favor upstreaming this driver until
the those scheduler enhancements are in place. However,
we favor upstreaming this driver now because it is useful
now, and can be enhanced over time.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
NACKed-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-07-27 22:11:02 +00:00
|
|
|
config ACPI_PROCESSOR_AGGREGATOR
|
|
|
|
tristate "Processor Aggregator"
|
|
|
|
depends on ACPI_PROCESSOR
|
2009-09-27 06:35:55 +00:00
|
|
|
depends on X86
|
ACPI: create Processor Aggregator Device driver
ACPI 4.0 created the logical "processor aggregator device" as
a mechinism for platforms to ask the OS to force otherwise busy
processors to enter (power saving) idle.
The intent is to lower power consumption to ride-out
transient electrical and thermal emergencies,
rather than powering off the server.
On platforms that can save more power/performance via P-states,
the platform will first exhaust P-states before forcing idle.
However, the relative benefit of P-states vs. idle states
is platform dependent, and thus this driver need not know
or care about it.
This driver does not use the kernel's CPU hot-plug mechanism
because after the transient emergency is over, the system must
be returned to its normal state, and hotplug would permanently
break both cpusets and binding.
So to force idle, the driver creates a power saving thread.
The scheduler will migrate the thread to the preferred CPU.
The thread has max priority and has SCHED_RR policy,
so it can occupy one CPU. To save power, the thread will
invoke the deep C-state entry instructions.
To avoid starvation, the thread will sleep 5% of the time
time for every second (current RT scheduler has threshold
to avoid starvation, but if other CPUs are idle,
the CPU can borrow CPU timer from other,
which makes the mechanism not work here)
Vaidyanathan Srinivasan has proposed scheduler enhancements
to allow injecting idle time into the system. This driver doesn't
depend on those enhancements, but could cut over to them
when they are available.
Peter Z. does not favor upstreaming this driver until
the those scheduler enhancements are in place. However,
we favor upstreaming this driver now because it is useful
now, and can be enhanced over time.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
NACKed-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-07-27 22:11:02 +00:00
|
|
|
help
|
|
|
|
ACPI 4.0 defines processor Aggregator, which enables OS to perform
|
2009-10-09 13:53:24 +00:00
|
|
|
specific processor configuration and control that applies to all
|
ACPI: create Processor Aggregator Device driver
ACPI 4.0 created the logical "processor aggregator device" as
a mechinism for platforms to ask the OS to force otherwise busy
processors to enter (power saving) idle.
The intent is to lower power consumption to ride-out
transient electrical and thermal emergencies,
rather than powering off the server.
On platforms that can save more power/performance via P-states,
the platform will first exhaust P-states before forcing idle.
However, the relative benefit of P-states vs. idle states
is platform dependent, and thus this driver need not know
or care about it.
This driver does not use the kernel's CPU hot-plug mechanism
because after the transient emergency is over, the system must
be returned to its normal state, and hotplug would permanently
break both cpusets and binding.
So to force idle, the driver creates a power saving thread.
The scheduler will migrate the thread to the preferred CPU.
The thread has max priority and has SCHED_RR policy,
so it can occupy one CPU. To save power, the thread will
invoke the deep C-state entry instructions.
To avoid starvation, the thread will sleep 5% of the time
time for every second (current RT scheduler has threshold
to avoid starvation, but if other CPUs are idle,
the CPU can borrow CPU timer from other,
which makes the mechanism not work here)
Vaidyanathan Srinivasan has proposed scheduler enhancements
to allow injecting idle time into the system. This driver doesn't
depend on those enhancements, but could cut over to them
when they are available.
Peter Z. does not favor upstreaming this driver until
the those scheduler enhancements are in place. However,
we favor upstreaming this driver now because it is useful
now, and can be enhanced over time.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
NACKed-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-07-27 22:11:02 +00:00
|
|
|
processors in the platform. Currently only logical processor idling
|
|
|
|
is defined, which is to reduce power consumption. This driver
|
2009-10-09 13:53:24 +00:00
|
|
|
supports the new device.
|
ACPI: create Processor Aggregator Device driver
ACPI 4.0 created the logical "processor aggregator device" as
a mechinism for platforms to ask the OS to force otherwise busy
processors to enter (power saving) idle.
The intent is to lower power consumption to ride-out
transient electrical and thermal emergencies,
rather than powering off the server.
On platforms that can save more power/performance via P-states,
the platform will first exhaust P-states before forcing idle.
However, the relative benefit of P-states vs. idle states
is platform dependent, and thus this driver need not know
or care about it.
This driver does not use the kernel's CPU hot-plug mechanism
because after the transient emergency is over, the system must
be returned to its normal state, and hotplug would permanently
break both cpusets and binding.
So to force idle, the driver creates a power saving thread.
The scheduler will migrate the thread to the preferred CPU.
The thread has max priority and has SCHED_RR policy,
so it can occupy one CPU. To save power, the thread will
invoke the deep C-state entry instructions.
To avoid starvation, the thread will sleep 5% of the time
time for every second (current RT scheduler has threshold
to avoid starvation, but if other CPUs are idle,
the CPU can borrow CPU timer from other,
which makes the mechanism not work here)
Vaidyanathan Srinivasan has proposed scheduler enhancements
to allow injecting idle time into the system. This driver doesn't
depend on those enhancements, but could cut over to them
when they are available.
Peter Z. does not favor upstreaming this driver until
the those scheduler enhancements are in place. However,
we favor upstreaming this driver now because it is useful
now, and can be enhanced over time.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
NACKed-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-07-27 22:11:02 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_THERMAL
|
|
|
|
tristate "Thermal Zone"
|
|
|
|
depends on ACPI_PROCESSOR
|
2008-01-17 07:51:11 +00:00
|
|
|
select THERMAL
|
2005-08-25 16:22:04 +00:00
|
|
|
default y
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver supports ACPI thermal zones. Most mobile and
|
2005-04-16 22:20:36 +00:00
|
|
|
some desktop systems support ACPI thermal zones. It is HIGHLY
|
|
|
|
recommended that this option be enabled, as your processor(s)
|
|
|
|
may be damaged without it.
|
|
|
|
|
2009-02-19 21:45:47 +00:00
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the module will be called thermal.
|
|
|
|
|
2020-12-30 00:18:26 +00:00
|
|
|
config ACPI_PLATFORM_PROFILE
|
2021-02-11 20:17:00 +00:00
|
|
|
tristate
|
2020-12-30 00:18:26 +00:00
|
|
|
|
2008-02-22 19:25:04 +00:00
|
|
|
config ACPI_CUSTOM_DSDT_FILE
|
|
|
|
string "Custom DSDT Table file to include"
|
|
|
|
default ""
|
2005-04-16 22:20:36 +00:00
|
|
|
depends on !STANDALONE
|
|
|
|
help
|
2008-02-07 00:28:02 +00:00
|
|
|
This option supports a custom DSDT by linking it into the kernel.
|
2019-06-07 18:54:32 +00:00
|
|
|
See Documentation/admin-guide/acpi/dsdt-override.rst
|
2008-02-07 00:28:02 +00:00
|
|
|
|
2006-03-24 17:23:14 +00:00
|
|
|
Enter the full path name to the file which includes the AmlCode
|
2018-11-13 10:46:23 +00:00
|
|
|
or dsdt_aml_code declaration.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-02-22 19:25:04 +00:00
|
|
|
If unsure, don't enter a file name.
|
|
|
|
|
|
|
|
config ACPI_CUSTOM_DSDT
|
|
|
|
bool
|
|
|
|
default ACPI_CUSTOM_DSDT_FILE != ""
|
|
|
|
|
2016-06-20 10:56:12 +00:00
|
|
|
config ARCH_HAS_ACPI_TABLE_UPGRADE
|
|
|
|
def_bool n
|
|
|
|
|
2016-04-11 02:13:33 +00:00
|
|
|
config ACPI_TABLE_UPGRADE
|
|
|
|
bool "Allow upgrading ACPI tables via initrd"
|
2016-06-20 10:56:12 +00:00
|
|
|
depends on BLK_DEV_INITRD && ARCH_HAS_ACPI_TABLE_UPGRADE
|
2016-04-11 02:13:33 +00:00
|
|
|
default y
|
2012-09-30 22:23:54 +00:00
|
|
|
help
|
2016-04-11 02:13:33 +00:00
|
|
|
This option provides functionality to upgrade arbitrary ACPI tables
|
2012-09-30 22:23:54 +00:00
|
|
|
via initrd. No functional change if no ACPI tables are passed via
|
|
|
|
initrd, therefore it's safe to say Y.
|
2019-06-07 18:54:32 +00:00
|
|
|
See Documentation/admin-guide/acpi/initrd_table_override.rst for details
|
2012-09-30 22:23:54 +00:00
|
|
|
|
2018-12-18 06:02:45 +00:00
|
|
|
config ACPI_TABLE_OVERRIDE_VIA_BUILTIN_INITRD
|
|
|
|
bool "Override ACPI tables from built-in initrd"
|
|
|
|
depends on ACPI_TABLE_UPGRADE
|
2021-07-15 09:26:01 +00:00
|
|
|
depends on INITRAMFS_SOURCE!="" && INITRAMFS_COMPRESSION_NONE
|
2018-12-18 06:02:45 +00:00
|
|
|
help
|
|
|
|
This option provides functionality to override arbitrary ACPI tables
|
|
|
|
from built-in uncompressed initrd.
|
|
|
|
|
2019-06-07 18:54:32 +00:00
|
|
|
See Documentation/admin-guide/acpi/initrd_table_override.rst for details
|
2018-12-18 06:02:45 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_DEBUG
|
|
|
|
bool "Debug Statements"
|
|
|
|
help
|
2008-11-07 23:58:05 +00:00
|
|
|
The ACPI subsystem can produce debug output. Saying Y enables this
|
|
|
|
output and increases the kernel size by around 50K.
|
|
|
|
|
|
|
|
Use the acpi.debug_layer and acpi.debug_level kernel command-line
|
2019-06-07 18:54:32 +00:00
|
|
|
parameters documented in Documentation/firmware-guide/acpi/debug.rst and
|
2016-10-18 12:12:27 +00:00
|
|
|
Documentation/admin-guide/kernel-parameters.rst to control the type and
|
2008-11-07 23:58:05 +00:00
|
|
|
amount of debug output.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2008-06-10 21:30:42 +00:00
|
|
|
config ACPI_PCI_SLOT
|
2013-01-18 16:07:42 +00:00
|
|
|
bool "PCI slot detection driver"
|
2018-12-19 22:46:59 +00:00
|
|
|
depends on SYSFS && PCI
|
2008-06-10 21:30:42 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver creates entries in /sys/bus/pci/slots/ for all PCI
|
|
|
|
slots in the system. This can help correlate PCI bus addresses,
|
|
|
|
i.e., segment/bus/device/function tuples, with physical slots in
|
|
|
|
the system. If you are unsure, say N.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_CONTAINER
|
2013-02-21 20:05:51 +00:00
|
|
|
bool "Container and Module Devices"
|
2013-03-11 10:53:48 +00:00
|
|
|
default (ACPI_HOTPLUG_MEMORY || ACPI_HOTPLUG_CPU)
|
2009-02-19 21:45:47 +00:00
|
|
|
help
|
|
|
|
This driver supports ACPI Container and Module devices (IDs
|
|
|
|
ACPI0004, PNP0A05, and PNP0A06).
|
2005-03-02 05:00:00 +00:00
|
|
|
|
2009-02-19 21:45:47 +00:00
|
|
|
This helps support hotplug of nodes, CPUs, and memory.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
config ACPI_HOTPLUG_MEMORY
|
2013-03-03 22:18:03 +00:00
|
|
|
bool "Memory Hotplug"
|
2006-06-27 09:53:30 +00:00
|
|
|
depends on MEMORY_HOTPLUG
|
2005-04-16 22:20:36 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver supports ACPI memory hotplug. The driver
|
|
|
|
fields notifications on ACPI memory devices (PNP0C80),
|
|
|
|
which represent memory ranges that may be onlined or
|
|
|
|
offlined during runtime.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2009-02-19 21:45:47 +00:00
|
|
|
If your hardware and firmware do not support adding or
|
|
|
|
removing memory devices at runtime, you need not enable
|
|
|
|
this driver.
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2015-02-05 05:44:49 +00:00
|
|
|
config ACPI_HOTPLUG_IOAPIC
|
|
|
|
bool
|
|
|
|
depends on PCI
|
|
|
|
depends on X86_IO_APIC
|
|
|
|
default y
|
|
|
|
|
2006-07-01 15:36:54 +00:00
|
|
|
config ACPI_SBS
|
2007-09-26 15:43:48 +00:00
|
|
|
tristate "Smart Battery System"
|
2007-03-19 14:45:50 +00:00
|
|
|
depends on X86
|
2010-10-08 05:54:57 +00:00
|
|
|
select POWER_SUPPLY
|
2006-07-01 15:36:54 +00:00
|
|
|
help
|
2009-02-19 21:45:47 +00:00
|
|
|
This driver supports the Smart Battery System, another
|
2007-09-26 15:43:48 +00:00
|
|
|
type of access to battery information, found on some laptops.
|
2006-07-01 15:36:54 +00:00
|
|
|
|
2009-02-19 21:45:47 +00:00
|
|
|
To compile this driver as a module, choose M here:
|
|
|
|
the modules will be called sbs and sbshc.
|
|
|
|
|
2010-05-18 06:35:17 +00:00
|
|
|
config ACPI_HED
|
|
|
|
tristate "Hardware Error Device"
|
|
|
|
help
|
|
|
|
This driver supports the Hardware Error Device (PNP0C33),
|
|
|
|
which is used to report some hardware errors notified via
|
|
|
|
SCI, mainly the corrected errors.
|
|
|
|
|
2011-05-26 10:26:24 +00:00
|
|
|
config ACPI_CUSTOM_METHOD
|
|
|
|
tristate "Allow ACPI methods to be inserted/replaced at run time"
|
|
|
|
depends on DEBUG_FS
|
|
|
|
help
|
2012-01-03 16:49:48 +00:00
|
|
|
This debug facility allows ACPI AML methods to be inserted and/or
|
2011-05-26 10:26:24 +00:00
|
|
|
replaced without rebooting the system. For details refer to:
|
2019-06-07 18:54:32 +00:00
|
|
|
Documentation/firmware-guide/acpi/method-customizing.rst.
|
2011-05-26 10:26:24 +00:00
|
|
|
|
|
|
|
NOTE: This option is security sensitive, because it allows arbitrary
|
|
|
|
kernel memory to be written to by root (uid=0) users, allowing them
|
|
|
|
to bypass certain security measures (e.g. if root is not allowed to
|
|
|
|
load additional kernel modules after boot, this feature may be used
|
|
|
|
to override that restriction).
|
|
|
|
|
2012-01-31 18:19:20 +00:00
|
|
|
config ACPI_BGRT
|
2012-09-29 00:57:05 +00:00
|
|
|
bool "Boottime Graphics Resource Table support"
|
2017-04-04 16:02:41 +00:00
|
|
|
depends on EFI && (X86 || ARM64)
|
2019-11-20 13:43:10 +00:00
|
|
|
help
|
2012-01-31 18:19:20 +00:00
|
|
|
This driver adds support for exposing the ACPI Boottime Graphics
|
|
|
|
Resource Table, which allows the operating system to obtain
|
|
|
|
data from the firmware boot splash. It will appear under
|
|
|
|
/sys/firmware/acpi/bgrt/ .
|
|
|
|
|
2014-01-17 18:51:30 +00:00
|
|
|
config ACPI_REDUCED_HARDWARE_ONLY
|
|
|
|
bool "Hardware-reduced ACPI support only" if EXPERT
|
|
|
|
def_bool n
|
|
|
|
help
|
2014-11-14 09:44:07 +00:00
|
|
|
This config item changes the way the ACPI code is built. When this
|
|
|
|
option is selected, the kernel will use a specialized version of
|
|
|
|
ACPICA that ONLY supports the ACPI "reduced hardware" mode. The
|
|
|
|
resulting kernel will be smaller but it will also be restricted to
|
|
|
|
running in ACPI reduced hardware mode ONLY.
|
2014-01-17 18:51:30 +00:00
|
|
|
|
2014-11-14 09:44:07 +00:00
|
|
|
If you are unsure what to do, do not enable this option.
|
2014-01-17 18:51:30 +00:00
|
|
|
|
2016-07-24 04:24:19 +00:00
|
|
|
source "drivers/acpi/nfit/Kconfig"
|
2019-11-07 01:42:55 +00:00
|
|
|
source "drivers/acpi/numa/Kconfig"
|
2010-05-18 06:35:12 +00:00
|
|
|
source "drivers/acpi/apei/Kconfig"
|
2016-07-17 20:45:32 +00:00
|
|
|
source "drivers/acpi/dptf/Kconfig"
|
2010-05-18 06:35:12 +00:00
|
|
|
|
2016-09-20 12:30:51 +00:00
|
|
|
config ACPI_WATCHDOG
|
|
|
|
bool
|
|
|
|
|
2013-10-21 21:29:25 +00:00
|
|
|
config ACPI_EXTLOG
|
|
|
|
tristate "Extended Error Log support"
|
2017-02-03 13:17:43 +00:00
|
|
|
depends on X86_MCE && X86_LOCAL_APIC && EDAC
|
2013-10-28 21:06:55 +00:00
|
|
|
select UEFI_CPER
|
2013-10-21 21:29:25 +00:00
|
|
|
help
|
|
|
|
Certain usages such as Predictive Failure Analysis (PFA) require
|
|
|
|
more information about the error than what can be described in
|
|
|
|
processor machine check banks. Most server processors log
|
|
|
|
additional information about the error in processor uncore
|
|
|
|
registers. Since the addresses and layout of these registers vary
|
|
|
|
widely from one processor to another, system software cannot
|
|
|
|
readily make use of them. To complicate matters further, some of
|
|
|
|
the additional error information cannot be constructed without
|
|
|
|
detailed knowledge about platform topology.
|
|
|
|
|
|
|
|
Enhanced MCA Logging allows firmware to provide additional error
|
|
|
|
information to system software, synchronous with MCE or CMCI. This
|
2014-06-18 02:33:07 +00:00
|
|
|
driver adds support for that functionality with corresponding
|
|
|
|
tracepoint which carries that information to userspace.
|
2013-10-21 21:29:25 +00:00
|
|
|
|
2018-10-15 23:11:31 +00:00
|
|
|
config ACPI_ADXL
|
|
|
|
bool
|
|
|
|
|
2016-07-08 16:13:13 +00:00
|
|
|
config ACPI_CONFIGFS
|
|
|
|
tristate "ACPI configfs support"
|
|
|
|
select CONFIGFS_FS
|
|
|
|
help
|
|
|
|
Select this option to enable support for ACPI configuration from
|
|
|
|
userspace. The configurable ACPI groups will be visible under
|
|
|
|
/config/acpi, assuming configfs is mounted under /config.
|
|
|
|
|
2021-12-22 04:31:41 +00:00
|
|
|
config ACPI_PFRUT
|
|
|
|
tristate "ACPI Platform Firmware Runtime Update and Telemetry"
|
|
|
|
depends on 64BIT
|
|
|
|
help
|
|
|
|
This mechanism allows certain pieces of the platform firmware
|
|
|
|
to be updated on the fly while the system is running (runtime)
|
|
|
|
without the need to restart it, which is key in the cases when
|
|
|
|
the system needs to be available 100% of the time and it cannot
|
|
|
|
afford the downtime related to restarting it, or when the work
|
|
|
|
carried out by the system is particularly important, so it cannot
|
|
|
|
be interrupted, and it is not practical to wait until it is complete.
|
|
|
|
|
|
|
|
The existing firmware code can be modified (driver update) or
|
|
|
|
extended by adding new code to the firmware (code injection).
|
|
|
|
|
2021-12-22 04:32:02 +00:00
|
|
|
Besides, the telemetry driver allows user space to fetch telemetry
|
|
|
|
data from the firmware with the help of the Platform Firmware Runtime
|
|
|
|
Telemetry interface.
|
|
|
|
|
|
|
|
To compile the drivers as modules, choose M here:
|
|
|
|
the modules will be called pfr_update and pfr_telemetry.
|
2021-12-22 04:31:41 +00:00
|
|
|
|
2016-09-12 18:54:20 +00:00
|
|
|
if ARM64
|
|
|
|
source "drivers/acpi/arm64/Kconfig"
|
2018-05-11 23:58:01 +00:00
|
|
|
|
|
|
|
config ACPI_PPTT
|
|
|
|
bool
|
2016-09-12 18:54:20 +00:00
|
|
|
endif
|
|
|
|
|
ACPI: PCC: Implement OperationRegion handler for the PCC Type 3 subtype
PCC OpRegion provides a mechanism to communicate with the platform
directly from the AML. PCCT provides the list of PCC channel available
in the platform, a subset or all of them can be used in PCC Opregion.
This patch registers the PCC OpRegion handler before ACPI tables are
loaded. This relies on the special context data passed to identify and
set up the PCC channel before the OpRegion handler is executed for the
first time.
Typical PCC Opregion declaration looks like this:
OperationRegion (PFRM, PCC, 2, 0x74)
Field (PFRM, ByteAcc, NoLock, Preserve)
{
SIGN, 32,
FLGS, 32,
LEN, 32,
CMD, 32,
DATA, 800
}
It contains four named double words followed by 100 bytes of buffer
names DATA.
ASL can fill out the buffer something like:
/* Create global or local buffer */
Name (BUFF, Buffer (0x0C){})
/* Create double word fields over the buffer */
CreateDWordField (BUFF, 0x0, WD0)
CreateDWordField (BUFF, 0x04, WD1)
CreateDWordField (BUFF, 0x08, WD2)
/* Fill the named fields */
WD0 = 0x50434300
SIGN = BUFF
WD0 = 1
FLGS = BUFF
WD0 = 0x10
LEN = BUFF
/* Fill the payload in the DATA buffer */
WD0 = 0
WD1 = 0x08
WD2 = 0
DATA = BUFF
/* Write to CMD field to trigger handler */
WD0 = 0x4404
CMD = BUFF
This buffer is received by acpi_pcc_opregion_space_handler. This
handler will fetch the complete buffer via internal_pcc_buffer.
The setup handler will receive the special PCC context data which will
contain the PCC channel index which used to set up the channel. The
buffer pointer and length is saved in region context which is then used
in the handler.
(kernel test robot: Build failure with CONFIG_ACPI_DEBUGGER)
Link: https://lore.kernel.org/r/202201041539.feAV0l27-lkp@intel.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2022-01-04 19:51:08 +00:00
|
|
|
config ACPI_PCC
|
|
|
|
bool "ACPI PCC Address Space"
|
|
|
|
depends on PCC
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
The PCC Address Space also referred as PCC Operation Region pertains
|
|
|
|
to the region of PCC subspace that succeeds the PCC signature.
|
|
|
|
|
|
|
|
The PCC Operation Region works in conjunction with the PCC Table
|
|
|
|
(Platform Communications Channel Table). PCC subspaces that are
|
|
|
|
marked for use as PCC Operation Regions must not be used as PCC
|
|
|
|
subspaces for the standard ACPI features such as CPPC, RASF, PDTT and
|
|
|
|
MPST. These standard features must always use the PCC Table instead.
|
|
|
|
|
|
|
|
Enable this feature if you want to set up and install the PCC Address
|
|
|
|
Space handler to handle PCC OpRegion in the firmware.
|
|
|
|
|
2020-08-14 13:27:25 +00:00
|
|
|
source "drivers/acpi/pmic/Kconfig"
|
|
|
|
|
ACPI: Add driver for the VIOT table
The ACPI Virtual I/O Translation Table describes topology of
para-virtual platforms, similarly to vendor tables DMAR, IVRS and IORT.
For now it describes the relation between virtio-iommu and the endpoints
it manages.
Three steps are needed to configure DMA of endpoints:
(1) acpi_viot_init(): parse the VIOT table, find or create the fwnode
associated to each vIOMMU device. This needs to happen after
acpi_scan_init(), because it relies on the struct device and their
fwnode to be available.
(2) When probing the vIOMMU device, the driver registers its IOMMU ops
within the IOMMU subsystem. This step doesn't require any
intervention from the VIOT driver.
(3) viot_iommu_configure(): before binding the endpoint to a driver,
find the associated IOMMU ops. Register them, along with the
endpoint ID, into the device's iommu_fwspec.
If step (3) happens before step (2), it is deferred until the IOMMU is
initialized, then retried.
Tested-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20210618152059.1194210-4-jean-philippe@linaro.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2021-06-18 15:20:58 +00:00
|
|
|
config ACPI_VIOT
|
|
|
|
bool
|
|
|
|
|
2022-06-28 12:53:46 +00:00
|
|
|
config ACPI_PRMT
|
|
|
|
bool "Platform Runtime Mechanism Support"
|
|
|
|
depends on EFI && (X86_64 || ARM64)
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Platform Runtime Mechanism (PRM) is a firmware interface exposing a
|
|
|
|
set of binary executables that can be called from the AML interpreter
|
|
|
|
or directly from device drivers.
|
|
|
|
|
|
|
|
Say Y to enable the AML interpreter to execute the PRM code.
|
|
|
|
|
|
|
|
While this feature is optional in principle, leaving it out may
|
|
|
|
substantially increase computational overhead related to the
|
|
|
|
initialization of some server systems.
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
endif # ACPI
|
2017-11-27 08:11:48 +00:00
|
|
|
|
|
|
|
config X86_PM_TIMER
|
|
|
|
bool "Power Management Timer Support" if EXPERT
|
|
|
|
depends on X86 && (ACPI || JAILHOUSE_GUEST)
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
The Power Management Timer is available on all ACPI-capable,
|
|
|
|
in most cases even if ACPI is unusable or blacklisted.
|
|
|
|
|
|
|
|
This timing source is not affected by power management features
|
|
|
|
like aggressive processor idling, throttling, frequency and/or
|
|
|
|
voltage scaling, unlike the commonly used Time Stamp Counter
|
|
|
|
(TSC) timing source.
|
|
|
|
|
|
|
|
You should nearly always say Y here because many modern
|
|
|
|
systems require this timer.
|