Skip to content

Commit

Permalink
Re-apply p9_int_scom inits on shutdown path
Browse files Browse the repository at this point in the history
The interrupt resource provider shutdown path is clearing out some
scom inits that need to be set or else we see problems in the
hypervisor. This commit registers a new event to the shutdown
command which will re-apply the scominits prior to shutting down
and passing off control to the hypervisor

Change-Id: I98e3de847a48447ff592dc3506605e124cdeda4c
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48413
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
  • Loading branch information
crgeddes committed Oct 17, 2017
1 parent 9dbd9cb commit 241fe35
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 84 deletions.
22 changes: 11 additions & 11 deletions src/include/usr/initservice/initserviceif.H
Expand Up @@ -58,18 +58,18 @@ namespace INITSERVICE
*/
enum EventPriority_t
{
NOTIFY_FIRST = 0,
HIGHEST_PRIORITY = NOTIFY_FIRST,
NO_PRIORITY = 16,
MBOX_PRIORITY = 17,
INTR_PRIORITY = 18,
LOWEST_PRIORITY = 127,
CONSOLE_PRIORITY = LOWEST_PRIORITY,
LAST_PRE_MEM_FLUSH_PRIORITY = LOWEST_PRIORITY,

NOTIFY_FIRST = 0,
HIGHEST_PRIORITY = NOTIFY_FIRST,
NO_PRIORITY = 16,
MBOX_PRIORITY = 17,
INTR_PRIORITY = 18,
PRESHUTDOWN_INIT_PRIORITY = 19,
LOWEST_PRIORITY = 127,
CONSOLE_PRIORITY = LOWEST_PRIORITY,
LAST_PRE_MEM_FLUSH_PRIORITY = LOWEST_PRIORITY,
HIGHEST_POST_MEM_FLUSH_PRIORITY = 128, // 1st post mem flush callback
PNOR_RP_PRIORITY = HIGHEST_POST_MEM_FLUSH_PRIORITY,
POST_MEM_FLUSH_NOTIFY_LAST = 255
PNOR_RP_PRIORITY = HIGHEST_POST_MEM_FLUSH_PRIORITY,
POST_MEM_FLUSH_NOTIFY_LAST = 255

};

Expand Down
7 changes: 7 additions & 0 deletions src/usr/fapi2/fapi2.mk
Expand Up @@ -45,6 +45,7 @@ EXTRAINCDIR += $(ROOTPATH)/src/import/chips/p9/procedures/hwp/sbe/
EXTRAINCDIR += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/accessors/
EXTRAINCDIR += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/lib/
EXTRAINCDIR += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/ffdc/
EXTRAINCDIR += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/initfiles/
EXTRAINCDIR += ${HWP_PATH}
EXTRAINCDIR += ${HWP_PATH_2}/hwp/memory
EXTRAINCDIR += ${HWP_PATH_2}/hwp/memory/lib/
Expand Down Expand Up @@ -152,9 +153,15 @@ include $(ROOTPATH)/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucke
include $(ROOTPATH)/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket.mk
include $(ROOTPATH)/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundw_bucket_attr.mk

# We specifically removed this from the istep10.so and placed it here because
# we have to reapply this init on the shutdown path after the interrupt resource
# provider is shutdown
include $(ROOTPATH)/src/import/chips/p9/procedures/hwp/initfiles/p9_int_scom.mk

VPATH += ${HWP_PATH_1}/hwp/accessors
VPATH += ${ROOTPATH}/src/import/hwpf/fapi2/src/
VPATH += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/pm/
VPATH += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/ffdc/
VPATH += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/lib/
VPATH += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/initfiles/
VPATH += ${GENPATH}
3 changes: 2 additions & 1 deletion src/usr/isteps/istep10/makefile
Expand Up @@ -84,11 +84,12 @@ include ${PROCEDURES_PATH}/hwp/initfiles/p9_fbc_ioo_dl_scom.mk
include ${PROCEDURES_PATH}/hwp/initfiles/p9_nx_scom.mk
include ${PROCEDURES_PATH}/hwp/initfiles/p9_cxa_scom.mk
include ${PROCEDURES_PATH}/hwp/initfiles/p9_mmu_scom.mk
include ${PROCEDURES_PATH}/hwp/initfiles/p9_int_scom.mk
include ${PROCEDURES_PATH}/hwp/initfiles/p9_vas_scom.mk
include ${PROCEDURES_PATH}/hwp/initfiles/p9c_dmi_scom.mk
include ${PROCEDURES_PATH}/hwp/initfiles/p9c_mi_scom.mk
include ${PROCEDURES_PATH}/hwp/initfiles/p9c_mc_scom.mk
# Note that p9_int_scom.mk is included in fapi2.mk for
# workaround reasons so we are not including it here

# proc_obus_scominit : Apply scom inits to Obus
include ${PROCEDURES_PATH}/hwp/io/p9_io_obus_scominit.mk
Expand Down

0 comments on commit 241fe35

Please sign in to comment.