2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see Documentation/kbuild/kconfig-language.txt.
|
|
|
|
#
|
|
|
|
|
|
|
|
menu "Firmware Drivers"
|
|
|
|
|
2015-07-31 22:46:16 +08:00
|
|
|
config ARM_PSCI_FW
|
|
|
|
bool
|
|
|
|
|
drivers: psci: PSCI checker module
On arm and arm64, PSCI is one of the possible firmware interfaces
used for power management. This includes both turning CPUs on and off,
and suspending them (entering idle states).
This patch adds a PSCI checker module that enables basic testing of
PSCI operations during startup. There are two main tests: CPU
hotplugging and suspending.
In the hotplug tests, the hotplug API is used to turn off and on again
all CPUs in the system, and then all CPUs in each cluster, checking
the consistency of the return codes.
In the suspend tests, a high-priority thread is created on each core
and uses low-level cpuidle functionalities to enter suspend, in all
the possible states and multiple times. This should allow a maximum
number of CPUs to enter the same sleep state at the same or slightly
different time.
In essence, the suspend tests use a principle similar to that of the
intel_powerclamp driver (drivers/thermal/intel_powerclamp.c), but the
threads are only kept for the duration of the test (they are already
gone when userspace is started) and it does not require to stop/start
the tick.
While in theory power management PSCI functions (CPU_{ON,OFF,SUSPEND})
could be directly called, this proved too difficult as it would imply
the duplication of all the logic used by the kernel to allow for a
clean shutdown/bringup/suspend of the CPU (the deepest sleep states
implying potentially the shutdown of the CPU).
Note that this file cannot be compiled as a loadable module, since it
uses a number of non-exported identifiers (essentially for
PSCI-specific checks and direct use of cpuidle) and relies on the
absence of userspace to avoid races when calling hotplug and cpuidle
functions.
For now at least, CONFIG_PSCI_CHECKER is mutually exclusive with
CONFIG_TORTURE_TEST, because torture tests may also use hotplug and
cause false positives in the hotplug tests.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kevin Hilman <khilman@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> [torture test config]
Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
[lpieralisi: added cpuidle locking, reworded commit log/kconfig entry]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2016-11-09 01:55:46 +08:00
|
|
|
config ARM_PSCI_CHECKER
|
|
|
|
bool "ARM PSCI checker"
|
2017-07-31 16:55:00 +08:00
|
|
|
depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST
|
drivers: psci: PSCI checker module
On arm and arm64, PSCI is one of the possible firmware interfaces
used for power management. This includes both turning CPUs on and off,
and suspending them (entering idle states).
This patch adds a PSCI checker module that enables basic testing of
PSCI operations during startup. There are two main tests: CPU
hotplugging and suspending.
In the hotplug tests, the hotplug API is used to turn off and on again
all CPUs in the system, and then all CPUs in each cluster, checking
the consistency of the return codes.
In the suspend tests, a high-priority thread is created on each core
and uses low-level cpuidle functionalities to enter suspend, in all
the possible states and multiple times. This should allow a maximum
number of CPUs to enter the same sleep state at the same or slightly
different time.
In essence, the suspend tests use a principle similar to that of the
intel_powerclamp driver (drivers/thermal/intel_powerclamp.c), but the
threads are only kept for the duration of the test (they are already
gone when userspace is started) and it does not require to stop/start
the tick.
While in theory power management PSCI functions (CPU_{ON,OFF,SUSPEND})
could be directly called, this proved too difficult as it would imply
the duplication of all the logic used by the kernel to allow for a
clean shutdown/bringup/suspend of the CPU (the deepest sleep states
implying potentially the shutdown of the CPU).
Note that this file cannot be compiled as a loadable module, since it
uses a number of non-exported identifiers (essentially for
PSCI-specific checks and direct use of cpuidle) and relies on the
absence of userspace to avoid races when calling hotplug and cpuidle
functions.
For now at least, CONFIG_PSCI_CHECKER is mutually exclusive with
CONFIG_TORTURE_TEST, because torture tests may also use hotplug and
cause false positives in the hotplug tests.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kevin Hilman <khilman@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> [torture test config]
Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
[lpieralisi: added cpuidle locking, reworded commit log/kconfig entry]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2016-11-09 01:55:46 +08:00
|
|
|
help
|
|
|
|
Run the PSCI checker during startup. This checks that hotplug and
|
|
|
|
suspend operations work correctly when using PSCI.
|
|
|
|
|
|
|
|
The torture tests may interfere with the PSCI checker by turning CPUs
|
|
|
|
on and off through hotplug, so for now torture tests and PSCI checker
|
|
|
|
are mutually exclusive.
|
|
|
|
|
2017-03-28 18:36:07 +08:00
|
|
|
config ARM_SCMI_PROTOCOL
|
|
|
|
bool "ARM System Control and Management Interface (SCMI) Message Protocol"
|
|
|
|
depends on ARM || ARM64 || COMPILE_TEST
|
|
|
|
depends on MAILBOX
|
|
|
|
help
|
|
|
|
ARM System Control and Management Interface (SCMI) protocol is a
|
|
|
|
set of operating system-independent software interfaces that are
|
|
|
|
used in system management. SCMI is extensible and currently provides
|
|
|
|
interfaces for: Discovery and self-description of the interfaces
|
|
|
|
it supports, Power domain management which is the ability to place
|
|
|
|
a given device or domain into the various power-saving states that
|
|
|
|
it supports, Performance management which is the ability to control
|
|
|
|
the performance of a domain that is composed of compute engines
|
|
|
|
such as application processors and other accelerators, Clock
|
|
|
|
management which is the ability to set and inquire rates on platform
|
|
|
|
managed clocks and Sensor management which is the ability to read
|
|
|
|
sensor data, and be notified of sensor value.
|
|
|
|
|
|
|
|
This protocol library provides interface for all the client drivers
|
|
|
|
making use of the features offered by the SCMI.
|
|
|
|
|
2017-06-14 20:48:26 +08:00
|
|
|
config ARM_SCMI_POWER_DOMAIN
|
|
|
|
tristate "SCMI power domain driver"
|
|
|
|
depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
|
|
|
|
default y
|
|
|
|
select PM_GENERIC_DOMAINS if PM
|
|
|
|
help
|
|
|
|
This enables support for the SCMI power domains which can be
|
|
|
|
enabled or disabled via the SCP firmware
|
|
|
|
|
|
|
|
This driver can also be built as a module. If so, the module
|
|
|
|
will be called scmi_pm_domain. Note this may needed early in boot
|
|
|
|
before rootfs may be available.
|
|
|
|
|
2015-03-30 17:59:52 +08:00
|
|
|
config ARM_SCPI_PROTOCOL
|
|
|
|
tristate "ARM System Control and Power Interface (SCPI) Message Protocol"
|
2017-01-30 16:52:01 +08:00
|
|
|
depends on ARM || ARM64 || COMPILE_TEST
|
2016-06-06 01:23:21 +08:00
|
|
|
depends on MAILBOX
|
2015-03-30 17:59:52 +08:00
|
|
|
help
|
|
|
|
System Control and Power Interface (SCPI) Message Protocol is
|
|
|
|
defined for the purpose of communication between the Application
|
|
|
|
Cores(AP) and the System Control Processor(SCP). The MHU peripheral
|
|
|
|
provides a mechanism for inter-processor communication between SCP
|
|
|
|
and AP.
|
|
|
|
|
|
|
|
SCP controls most of the power managament on the Application
|
|
|
|
Processors. It offers control and management of: the core/cluster
|
|
|
|
power states, various power domain DVFS including the core/cluster,
|
|
|
|
certain system clocks configuration, thermal sensors and many
|
|
|
|
others.
|
|
|
|
|
|
|
|
This protocol library provides interface for all the client drivers
|
|
|
|
making use of the features offered by the SCP.
|
|
|
|
|
2016-06-02 23:34:03 +08:00
|
|
|
config ARM_SCPI_POWER_DOMAIN
|
|
|
|
tristate "SCPI power domain driver"
|
2016-07-06 20:49:46 +08:00
|
|
|
depends on ARM_SCPI_PROTOCOL || (COMPILE_TEST && OF)
|
2016-06-02 23:34:03 +08:00
|
|
|
default y
|
|
|
|
select PM_GENERIC_DOMAINS if PM
|
|
|
|
help
|
|
|
|
This enables support for the SCPI power domains which can be
|
|
|
|
enabled or disabled via the SCP firmware
|
|
|
|
|
2018-01-08 23:38:09 +08:00
|
|
|
config ARM_SDE_INTERFACE
|
|
|
|
bool "ARM Software Delegated Exception Interface (SDEI)"
|
|
|
|
depends on ARM64
|
|
|
|
help
|
|
|
|
The Software Delegated Exception Interface (SDEI) is an ARM
|
|
|
|
standard for registering callbacks from the platform firmware
|
|
|
|
into the OS. This is typically used to implement RAS notifications.
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
config EDD
|
2006-06-25 20:47:46 +08:00
|
|
|
tristate "BIOS Enhanced Disk Drive calls determine boot disk"
|
2009-12-15 10:01:16 +08:00
|
|
|
depends on X86
|
2005-04-17 06:20:36 +08:00
|
|
|
help
|
|
|
|
Say Y or M here if you want to enable BIOS Enhanced Disk Drive
|
|
|
|
Services real mode BIOS calls to determine which disk
|
|
|
|
BIOS tries boot from. This information is then exported via sysfs.
|
|
|
|
|
|
|
|
This option is experimental and is known to fail to boot on some
|
|
|
|
obscure configurations. Most disk controller BIOS vendors do
|
|
|
|
not yet implement this feature.
|
|
|
|
|
2008-04-29 16:02:45 +08:00
|
|
|
config EDD_OFF
|
|
|
|
bool "Sets default behavior for EDD detection to off"
|
|
|
|
depends on EDD
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Say Y if you want EDD disabled by default, even though it is compiled into the
|
|
|
|
kernel. Say N if you want EDD enabled by default. EDD can be dynamically set
|
|
|
|
using the kernel parameter 'edd={on|skipmbr|off}'.
|
|
|
|
|
2008-06-27 19:12:54 +08:00
|
|
|
config FIRMWARE_MEMMAP
|
2011-01-21 06:44:16 +08:00
|
|
|
bool "Add firmware-provided memory map to sysfs" if EXPERT
|
2009-12-15 10:01:16 +08:00
|
|
|
default X86
|
2008-06-27 19:12:54 +08:00
|
|
|
help
|
|
|
|
Add the firmware-provided (unmodified) memory map to /sys/firmware/memmap.
|
|
|
|
That memory map is used for example by kexec to set up parameter area
|
|
|
|
for the next kernel, but can also be used for debugging purposes.
|
|
|
|
|
|
|
|
See also Documentation/ABI/testing/sysfs-firmware-memmap.
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
config EFI_PCDP
|
|
|
|
bool "Console device selection via EFI PCDP or HCDP table"
|
|
|
|
depends on ACPI && EFI && IA64
|
|
|
|
default y if IA64
|
|
|
|
help
|
|
|
|
If your firmware supplies the PCDP table, and you want to
|
|
|
|
automatically use the primary console device it describes
|
|
|
|
as the Linux console, say Y here.
|
|
|
|
|
|
|
|
If your firmware supplies the HCDP table, and you want to
|
|
|
|
use the first serial port it describes as the Linux console,
|
|
|
|
say Y here. If your EFI ConOut path contains only a UART
|
|
|
|
device, it will become the console automatically. Otherwise,
|
|
|
|
you must specify the "console=hcdp" kernel boot argument.
|
|
|
|
|
|
|
|
Neither the PCDP nor the HCDP affects naming of serial devices,
|
|
|
|
so a serial console may be /dev/ttyS0, /dev/ttyS1, etc, depending
|
|
|
|
on how the driver discovers devices.
|
|
|
|
|
|
|
|
You must also enable the appropriate drivers (serial, VGA, etc.)
|
|
|
|
|
2010-10-18 17:03:14 +08:00
|
|
|
See DIG64_HCDPv20_042804.pdf available from
|
|
|
|
<http://www.dig64.org/specifications/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-05-09 04:07:02 +08:00
|
|
|
config DMIID
|
|
|
|
bool "Export DMI identification via sysfs to userspace"
|
|
|
|
depends on DMI
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Say Y here if you want to query SMBIOS/DMI system identification
|
|
|
|
information from userspace through /sys/class/dmi/id/ or if you want
|
|
|
|
DMI-based module auto-loading.
|
|
|
|
|
2011-02-23 09:53:21 +08:00
|
|
|
config DMI_SYSFS
|
|
|
|
tristate "DMI table support in sysfs"
|
|
|
|
depends on SYSFS && DMI
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Say Y or M here to enable the exporting of the raw DMI table
|
|
|
|
data via sysfs. This is useful for consuming the data without
|
|
|
|
requiring any access to /dev/mem at all. Tables are found
|
|
|
|
under /sys/firmware/dmi when this option is enabled and
|
|
|
|
loaded.
|
|
|
|
|
2014-01-24 07:54:39 +08:00
|
|
|
config DMI_SCAN_MACHINE_NON_EFI_FALLBACK
|
|
|
|
bool
|
|
|
|
|
2008-04-10 10:50:41 +08:00
|
|
|
config ISCSI_IBFT_FIND
|
|
|
|
bool "iSCSI Boot Firmware Table Attributes"
|
2013-12-06 16:52:19 +08:00
|
|
|
depends on X86 && ACPI
|
2008-04-10 10:50:41 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables the kernel to find the region of memory
|
|
|
|
in which the ISCSI Boot Firmware Table (iBFT) resides. This
|
|
|
|
is necessary for iSCSI Boot Firmware Table Attributes module to work
|
|
|
|
properly.
|
|
|
|
|
|
|
|
config ISCSI_IBFT
|
|
|
|
tristate "iSCSI Boot Firmware Table Attributes module"
|
2010-04-13 02:06:18 +08:00
|
|
|
select ISCSI_BOOT_SYSFS
|
2010-10-14 09:07:16 +08:00
|
|
|
depends on ISCSI_IBFT_FIND && SCSI && SCSI_LOWLEVEL
|
2008-04-10 10:50:41 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables support for detection and exposing of iSCSI
|
|
|
|
Boot Firmware Table (iBFT) via sysfs to userspace. If you wish to
|
|
|
|
detect iSCSI boot parameters dynamically during system boot, say Y.
|
|
|
|
Otherwise, say N.
|
|
|
|
|
2015-02-26 18:08:06 +08:00
|
|
|
config RASPBERRYPI_FIRMWARE
|
|
|
|
tristate "Raspberry Pi Firmware Driver"
|
|
|
|
depends on BCM2835_MBOX
|
|
|
|
help
|
|
|
|
This option enables support for communicating with the firmware on the
|
|
|
|
Raspberry Pi.
|
|
|
|
|
2016-01-28 22:23:11 +08:00
|
|
|
config FW_CFG_SYSFS
|
|
|
|
tristate "QEMU fw_cfg device support in sysfs"
|
|
|
|
depends on SYSFS && (ARM || ARM64 || PPC_PMAC || SPARC || X86)
|
2016-02-11 22:23:51 +08:00
|
|
|
depends on HAS_IOPORT_MAP
|
2016-01-28 22:23:11 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Say Y or M here to enable the exporting of the QEMU firmware
|
|
|
|
configuration (fw_cfg) file entries via sysfs. Entries are
|
|
|
|
found under /sys/firmware/fw_cfg when this option is enabled
|
|
|
|
and loaded.
|
|
|
|
|
|
|
|
config FW_CFG_SYSFS_CMDLINE
|
|
|
|
bool "QEMU fw_cfg device parameter parsing"
|
|
|
|
depends on FW_CFG_SYSFS
|
|
|
|
help
|
|
|
|
Allow the qemu_fw_cfg device to be initialized via the kernel
|
|
|
|
command line or using a module parameter.
|
|
|
|
WARNING: Using incorrect parameters (base address in particular)
|
|
|
|
may crash your system.
|
|
|
|
|
2018-11-14 02:14:01 +08:00
|
|
|
config INTEL_STRATIX10_SERVICE
|
|
|
|
tristate "Intel Stratix10 Service Layer"
|
2019-02-01 10:37:59 +08:00
|
|
|
depends on ARCH_STRATIX10 && HAVE_ARM_SMCCC
|
2018-11-14 02:14:01 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Intel Stratix10 service layer runs at privileged exception level,
|
|
|
|
interfaces with the service providers (FPGA manager is one of them)
|
|
|
|
and manages secure monitor call to communicate with secure monitor
|
|
|
|
software at secure monitor exception level.
|
|
|
|
|
|
|
|
Say Y here if you want Stratix10 service layer support.
|
|
|
|
|
2015-02-27 05:49:09 +08:00
|
|
|
config QCOM_SCM
|
|
|
|
bool
|
|
|
|
depends on ARM || ARM64
|
2016-06-18 01:40:43 +08:00
|
|
|
select RESET_CONTROLLER
|
2015-02-27 05:49:09 +08:00
|
|
|
|
2015-09-12 05:01:16 +08:00
|
|
|
config QCOM_SCM_32
|
|
|
|
def_bool y
|
|
|
|
depends on QCOM_SCM && ARM
|
|
|
|
|
|
|
|
config QCOM_SCM_64
|
|
|
|
def_bool y
|
|
|
|
depends on QCOM_SCM && ARM64
|
|
|
|
|
2017-08-15 06:46:18 +08:00
|
|
|
config QCOM_SCM_DOWNLOAD_MODE_DEFAULT
|
|
|
|
bool "Qualcomm download mode enabled by default"
|
|
|
|
depends on QCOM_SCM
|
|
|
|
help
|
|
|
|
A device with "download mode" enabled will upon an unexpected
|
|
|
|
warm-restart enter a special debug mode that allows the user to
|
|
|
|
"download" memory content over USB for offline postmortem analysis.
|
|
|
|
The feature can be enabled/disabled on the kernel command line.
|
|
|
|
|
|
|
|
Say Y here to enable "download mode" by default.
|
|
|
|
|
2016-10-19 07:08:34 +08:00
|
|
|
config TI_SCI_PROTOCOL
|
|
|
|
tristate "TI System Control Interface (TISCI) Message Protocol"
|
|
|
|
depends on TI_MESSAGE_MANAGER
|
|
|
|
help
|
|
|
|
TI System Control Interface (TISCI) Message Protocol is used to manage
|
|
|
|
compute systems such as ARM, DSP etc with the system controller in
|
|
|
|
complex System on Chip(SoC) such as those found on certain keystone
|
|
|
|
generation SoC from TI.
|
|
|
|
|
|
|
|
System controller provides various facilities including power
|
|
|
|
management function support.
|
|
|
|
|
|
|
|
This protocol library is used by client drivers to use the features
|
|
|
|
provided by the system controller.
|
|
|
|
|
2016-01-04 22:37:32 +08:00
|
|
|
config HAVE_ARM_SMCCC
|
|
|
|
bool
|
|
|
|
|
2015-06-11 05:05:08 +08:00
|
|
|
source "drivers/firmware/broadcom/Kconfig"
|
2011-04-30 08:39:19 +08:00
|
|
|
source "drivers/firmware/google/Kconfig"
|
2013-02-08 23:48:51 +08:00
|
|
|
source "drivers/firmware/efi/Kconfig"
|
2018-10-07 21:04:42 +08:00
|
|
|
source "drivers/firmware/imx/Kconfig"
|
2016-08-27 21:43:43 +08:00
|
|
|
source "drivers/firmware/meson/Kconfig"
|
2016-08-20 01:05:04 +08:00
|
|
|
source "drivers/firmware/tegra/Kconfig"
|
2018-09-13 03:38:36 +08:00
|
|
|
source "drivers/firmware/xilinx/Kconfig"
|
2011-04-30 08:39:19 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
endmenu
|