diff mbox series

[RFC,v2,2/2] opal : Introducing capability for firmware-stop-support

Message ID 20200706043838.76722-2-huntbag@linux.vnet.ibm.com
State New
Headers show
Series [RFC,v2,1/2] opal : Support for pre-entry and post-exit of stop state in opal | expand


Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (abe4c4799ffee4be12674ad59fc0bc521b0724f3)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Abhishek Goel July 6, 2020, 4:38 a.m. UTC
This patch introduces support for firmware-stop-support. If Kernel does
not know about stop version, it can fallback to opal for idle stop
support if firmware-stop-supported property is present.

Just like "idle-stop", "idle-stop-quirk" can be defined in features if
there is some quirk that needs to be handled and if kernel identifies
the corresponding version it can use that or fallback to opal for idle
stop support.

The complete idea was previosuly posted in this patch:

Signed-off-by: Abhishek Goel <huntbag@linux.vnet.ibm.com>
Signed-off-by: Pratik Rajesh Sampat <psampat@linux.ibm.com>
 v1->v2 : No changes in this patch.

 core/cpufeatures.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff mbox series


diff --git a/core/cpufeatures.c b/core/cpufeatures.c
index c6754abb..a8de2baa 100644
--- a/core/cpufeatures.c
+++ b/core/cpufeatures.c
@@ -510,6 +510,19 @@  static const struct cpu_feature cpu_features_table[] = {
 	-1, -1, -1,
 	NULL, },
+	/*
+	 * ISAv3.0B firmware-stop-support
+	 * Opal fallback for shallow stop states
+	 */
+	{ "firmware-stop-supported",
+	CPU_P9,
+	-1, -1, -1,
+	NULL, },
 	 * ISAv3.0B Hypervisor Virtualization Interrupt
 	 * Also associated system registers, LPCR EE, HEIC, HVICE,