2005-04-17 05:20:36 +07:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
2015-07-31 21:46:16 +07:00
|
|
|
obj-$(CONFIG_ARM_PSCI_FW) += psci.o
|
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 00:55:46 +07:00
|
|
|
obj-$(CONFIG_ARM_PSCI_CHECKER) += psci_checker.o
|
2015-03-30 16:59:52 +07:00
|
|
|
obj-$(CONFIG_ARM_SCPI_PROTOCOL) += arm_scpi.o
|
2016-06-02 22:34:03 +07:00
|
|
|
obj-$(CONFIG_ARM_SCPI_POWER_DOMAIN) += scpi_pm_domain.o
|
2006-04-04 07:09:22 +07:00
|
|
|
obj-$(CONFIG_DMI) += dmi_scan.o
|
2011-02-23 08:53:21 +07:00
|
|
|
obj-$(CONFIG_DMI_SYSFS) += dmi-sysfs.o
|
2006-04-04 07:09:22 +07:00
|
|
|
obj-$(CONFIG_EDD) += edd.o
|
2005-04-17 05:20:36 +07:00
|
|
|
obj-$(CONFIG_EFI_PCDP) += pcdp.o
|
2005-09-07 05:17:14 +07:00
|
|
|
obj-$(CONFIG_DELL_RBU) += dell_rbu.o
|
2005-09-07 05:17:15 +07:00
|
|
|
obj-$(CONFIG_DCDBAS) += dcdbas.o
|
2007-05-09 03:07:02 +07:00
|
|
|
obj-$(CONFIG_DMIID) += dmi-id.o
|
2008-04-10 09:50:41 +07:00
|
|
|
obj-$(CONFIG_ISCSI_IBFT_FIND) += iscsi_ibft_find.o
|
|
|
|
obj-$(CONFIG_ISCSI_IBFT) += iscsi_ibft.o
|
2008-06-27 18:12:54 +07:00
|
|
|
obj-$(CONFIG_FIRMWARE_MEMMAP) += memmap.o
|
2015-02-26 17:08:06 +07:00
|
|
|
obj-$(CONFIG_RASPBERRYPI_FIRMWARE) += raspberrypi.o
|
2016-01-28 21:23:11 +07:00
|
|
|
obj-$(CONFIG_FW_CFG_SYSFS) += qemu_fw_cfg.o
|
2015-02-27 04:49:09 +07:00
|
|
|
obj-$(CONFIG_QCOM_SCM) += qcom_scm.o
|
2015-09-12 04:01:16 +07:00
|
|
|
obj-$(CONFIG_QCOM_SCM_64) += qcom_scm-64.o
|
|
|
|
obj-$(CONFIG_QCOM_SCM_32) += qcom_scm-32.o
|
2015-10-12 21:56:19 +07:00
|
|
|
CFLAGS_qcom_scm-32.o :=$(call as-instr,.arch armv7-a\n.arch_extension sec,-DREQUIRES_SEC=1) -march=armv7-a
|
2016-10-19 06:08:34 +07:00
|
|
|
obj-$(CONFIG_TI_SCI_PROTOCOL) += ti_sci.o
|
2011-04-30 07:39:19 +07:00
|
|
|
|
2015-06-11 04:05:08 +07:00
|
|
|
obj-y += broadcom/
|
2016-08-27 20:43:43 +07:00
|
|
|
obj-y += meson/
|
2011-04-30 07:39:31 +07:00
|
|
|
obj-$(CONFIG_GOOGLE_FIRMWARE) += google/
|
2013-02-08 22:48:51 +07:00
|
|
|
obj-$(CONFIG_EFI) += efi/
|
2013-12-16 21:39:40 +07:00
|
|
|
obj-$(CONFIG_UEFI_CPER) += efi/
|
2016-08-20 00:05:04 +07:00
|
|
|
obj-y += tegra/
|