[Skiboot] [PATCH] Don't warn on "long" OPAL_RESYNC_TIMEBASE calls

Stewart Smith stewart at linux.ibm.com
Wed Nov 28 08:16:30 AEDT 2018


On P8 this is called when we exit fastsleep, and we shouldn't measure
the "time" spent in the call for what (in retrospect) is an obvious
reason.

Fixes: 50ea35c2d07874755c03e6ae2bdf7a33ad2c768a
Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
 core/opal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/opal.c b/core/opal.c
index 2834b38e02b0..3a8ea30b79f0 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -197,7 +197,7 @@ int64_t opal_exit_check(int64_t retval, struct stack_frame *eframe)
 		}
 	}
 
-	if (call_time > 100) {
+	if (call_time > 100 && token != OPAL_RESYNC_TIMEBASE) {
 		prlog((call_time < 1000) ? PR_DEBUG : PR_WARNING,
 		      "Spent %llu msecs in OPAL call %llu!\n",
 		      call_time, token);
-- 
2.19.1



More information about the Skiboot mailing list