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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -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 0 | 106 | #define PSCI_RET_SUCCESS 0 |
| 102 | #define PSCI_RET_NOT_SUPPORTED -1 | 107 | #define PSCI_RET_NOT_SUPPORTED -1 |