linux-stable/drivers/platform/x86
Shanth Murthy 76062b4ae2 platform/x86: intel_pmc_ipc: read s0ix residency API
This patch adds a new API to indicate S0ix residency in usec. It utilizes
the PMC Global Control Registers (GCR) to read deep and shallow
S0ix residency.

PMC MMIO resources:
        o Lower 4kB: IPC1 (PMC inter-processor communication) interface
        o Upper 4kB: GCR (Global Control Registers)

This enables the power management framework to take corrective actions when
the platform fails to enter S0ix after kernel freeze as part of the suspend
to idle flow. (echo freeze > /sys/power/state).

This is expected to be used with a S0ix failsafe framework such as:
<https://lwn.net/Articles/689505/>

[rajneesh: folded in "fix division in 32-bit case" from Andy Shevchenko]
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Signed-off-by: Shanth Murthy <shanth.murthy@intel.com>
[andy: fixed kbuild error, removed "total" from variables, fixed macro]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2017-02-24 23:48:46 -08:00
..
acer-wmi.c platform/x86: acer-wmi: setup accelerometer when machine has appropriate notify event 2017-02-03 14:04:53 +02:00
acerhdf.c
alienware-wmi.c platform/x86: alienware-wmi: Remove header duplicate 2017-02-24 23:48:46 -08:00
amilo-rfkill.c
apple-gmux.c
asus-laptop.c
asus-nb-wmi.c
asus-wireless.c
asus-wmi.c
asus-wmi.h
classmate-laptop.c
compal-laptop.c
dell-laptop.c
dell-rbtn.c
dell-rbtn.h
dell-smbios.c
dell-smbios.h
dell-smo8800.c
dell-wmi-aio.c
dell-wmi.c
eeepc-laptop.c
eeepc-wmi.c
fujitsu-laptop.c platform/x86: fujitsu-laptop: make hotkey handling functions more similar 2017-02-04 02:47:19 +01:00
fujitsu-tablet.c
hdaps.c
hp-wireless.c
hp-wmi.c
hp_accel.c platform/x86: hp_accel: Add support for HP ZBook 17 2017-02-03 14:04:53 +02:00
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: handle ACPI event 1 2017-01-22 12:47:06 +02:00
intel-hid.c
intel-rst.c
intel-smartconnect.c
intel-vbtn.c
intel_bxtwc_tmu.c
intel_ips.c
intel_ips.h
intel_menlow.c
intel_mid_powerbtn.c platform/x86: intel_mid_powerbtn: Use SCU IPC directly 2017-02-24 23:48:45 -08:00
intel_mid_thermal.c platform/x86: intel_mid_thermal: Fix module autoload 2017-02-03 14:04:53 +02:00
intel_oaktrail.c
intel_pmc_core.c platform/x86: intel_pmc_core: fix out-of-bounds accesses on stack 2017-02-14 00:39:48 +02:00
intel_pmc_core.h
intel_pmc_ipc.c platform/x86: intel_pmc_ipc: read s0ix residency API 2017-02-24 23:48:46 -08:00
intel_pmic_gpio.c
intel_punit_ipc.c
intel_scu_ipc.c
intel_scu_ipcutil.c
intel_telemetry_core.c
intel_telemetry_debugfs.c
intel_telemetry_pltdrv.c
intel_turbo_max_3.c platform/x86: Support Turbo Boost Max 3.0 for non HWP systems 2017-02-04 02:47:20 +01:00
Kconfig platform/x86: silead depends on I2C being built-in 2017-02-14 00:39:48 +02:00
Makefile platform/x86: add support for devices with Silead touchscreens 2017-02-14 00:39:48 +02:00
mlx-platform.c platform/x86: mlx-platform: mlxcpld-hotplug driver style fixes 2017-02-03 14:04:53 +02:00
mlxcpld-hotplug.c
msi-laptop.c
msi-wmi.c ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
mxm-wmi.c
panasonic-laptop.c
pvpanic.c
samsung-laptop.c
samsung-q10.c
silead_dmi.c platform/x86: add support for devices with Silead touchscreens 2017-02-14 00:39:48 +02:00
sony-laptop.c
surface3-wmi.c platform/x86: surface3-wmi: fix uninitialized symbol 2017-01-21 01:43:42 +02:00
surface3_button.c
surfacepro3_button.c
tc1100-wmi.c
thinkpad_acpi.c
topstar-laptop.c
toshiba-wmi.c
toshiba_acpi.c
toshiba_bluetooth.c
toshiba_haps.c
wmi.c
xo1-rfkill.c
xo15-ebook.c