From fcfd722a6abb01f780c10de0f5d801a9c4210ebd Mon Sep 17 00:00:00 2001 From: Dean Sanner Date: Tue, 5 Dec 2017 15:10:45 -0600 Subject: Support HB running in SMF Support SMF for P9N/P9C. Lots of minor tweaks to make this work, but the biggest is to run userspace in problem state This is needed because for SMF Hostboot will need to run in S=1, HV=0,PR=1 (and kernel in S=1, HV=1, PR=0) This commit makes P9 HB userpsace run in HV=0 PR=1 and kernel in HV=1, PR=0. Change-Id: Ia4771df5e8858c6b7ae54b0746e62b283afb4bc4 RTC: 197243 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/50530 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Dean Sanner Reviewed-by: Nicholas E. Bofferding Reviewed-by: Christian R. Geddes Reviewed-by: Daniel M. Crowell --- src/sys/prof/idletask.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sys/prof/idletask.C') diff --git a/src/sys/prof/idletask.C b/src/sys/prof/idletask.C index 26b260113..915c4666f 100644 --- a/src/sys/prof/idletask.C +++ b/src/sys/prof/idletask.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2016 */ +/* Contributors Listed Below - COPYRIGHT 2012,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -44,7 +44,7 @@ void* TaskManager::idleTaskLoop(void* unused) setThreadPriorityLow(); // Request privilege escalation for nap. - asm volatile("li 3, %0; sc" :: "K" (MISC_CPUNAP) : "r3", "cc"); + asm volatile("li 3, %0; sc 2" :: "K" (MISC_CPUNAP) : "r3", "cc"); // Execute nap. //@fixme-RTC:xxxxxx nap(); -- cgit v1.2.1