Send OCC mode change and IPS parms after reaching active state
Change is only applicable for POWER10 PowerVM systems.
Send mode change requests to OCC when PowerMode is changed.
Retry OCC command once, if a valid response is not received.
Tested: built openpower-occ-control successfully and verified
functionality on hardware.
Change-Id: If375f8abfdb2ad82937b8744096c2ccc471263d2
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/configure.ac b/configure.ac
index 0b96f56..892378c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,6 +86,18 @@
]
AC_SUBST([CPPFLAGS], [$cpp_flags])
)
+
+ AC_ARG_ENABLE([power10-support],
+ AS_HELP_STRING([--with-power10-support], [To specify if system has power10 support])
+ )
+ AM_CONDITIONAL([POWER10_SUPPORT], [test "$with_power10_support" == "yes"])
+ AS_IF([test "x$with_power10_support" == "xyes"],
+ AC_MSG_NOTICE([Enabling POWER10])
+ [
+ cpp_flags="$CPPFLAGS -DPOWER10"
+ ]
+ AC_SUBST([CPPFLAGS], [$cpp_flags])
+ )
])
AC_ARG_VAR(OCC_CONTROL_BUSNAME, [The Dbus busname to own])