History

drivers: firmware: psci: Announce support for OS initiated suspend mode

PSCI firmware v1.0+, supports two different modes for CPU_SUSPEND. The Platform Coordinated mode, which is the default and mandatory mode, while support for the OS initiated (OSI) mode is optional. In some cases it's interesting for the user/developer to know if the OSI mode is supported by the PSCI FW, so print a message to the log if that is the case.

Ulf Hansson committed 7 years ago

Commit 60dd1ea1 parent d036b5c2 files · +25 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/psci.h+5−0
@@ -49,6 +49,7 @@ · 48 unmodified lines
49 49
50#define PSCI_1_0_FN_PSCI_FEATURES PSCI_0_2_FN(10)50#define PSCI_1_0_FN_PSCI_FEATURES PSCI_0_2_FN(10)
51#define PSCI_1_0_FN_SYSTEM_SUSPEND PSCI_0_2_FN(14)51#define PSCI_1_0_FN_SYSTEM_SUSPEND PSCI_0_2_FN(14)
52#define PSCI_1_0_FN_SET_SUSPEND_MODE PSCI_0_2_FN(15)
52 53
53#define PSCI_1_0_FN64_SYSTEM_SUSPEND PSCI_0_2_FN64(14)54#define PSCI_1_0_FN64_SYSTEM_SUSPEND PSCI_0_2_FN64(14)
54 55
@@ -97,6 +98,10 @@ · 42 unmodified lines
97#define PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK \98#define PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK \
98 (0x1 << PSCI_1_0_FEATURES_CPU_SUSPEND_PF_SHIFT)99 (0x1 << PSCI_1_0_FEATURES_CPU_SUSPEND_PF_SHIFT)
99 100
101#define PSCI_1_0_OS_INITIATED BIT(0)
102#define PSCI_1_0_SUSPEND_MODE_PC 0
103#define PSCI_1_0_SUSPEND_MODE_OSI 1
104
100/* PSCI return values (inclusive of all PSCI versions) */105/* PSCI return values (inclusive of all PSCI versions) */
101#define PSCI_RET_SUCCESS 0106#define PSCI_RET_SUCCESS 0
102#define PSCI_RET_NOT_SUPPORTED -1107#define PSCI_RET_NOT_SUPPORTED -1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t