From bb022b97b964a45a0fe34773a6a6b0d7a43bc31a Mon Sep 17 00:00:00 2001 From: "Edward A. James" Date: Wed, 1 Nov 2017 16:26:54 -0500 Subject: Add occ-disable dependency to host-crash and host-timeout We need to unbind the occ-hmwon devices when either the host crashes or we get a watchdog timeout on the host. This is so that OCC code can start using the SBE FIFO without contention in the case of a checkstop or other host problem. Change-Id: I9ae3b1539a9eb4240cef74f2198c05b7a1b68380 Signed-off-by: Edward A. James --- .../common/recipes-phosphor/occ/openpower-occ-control.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'meta-openbmc-machines/meta-openpower') diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control.bb index 33dac2f82..9f7e52fe7 100644 --- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control.bb +++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control.bb @@ -57,4 +57,14 @@ HOST_OCC_FMT = "../${OCC_TMPL}:${HOST_TGTFMT}.requires/${OCC_INSTFMT}" SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'HOST_OCC_FMT', 'OCC_ENABLE', 'HOST_START', 'OBMC_HOST_INSTANCES')}" SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'HOST_OCC_FMT', 'OCC_DISABLE', 'HOST_STOP', 'OBMC_HOST_INSTANCES')}" +# Set the occ disable service to be executed on host error +HOST_ERROR_TARGETS = "crash timeout" + +OCC_DISABLE_TMPL = "op-occ-disable@.service" +HOST_ERROR_TGTFMT = "obmc-host-{0}@{1}.target" +OCC_DISABLE_INSTFMT = "op-occ-disable@{1}.service" +HOST_ERROR_FMT = "../${OCC_DISABLE_TMPL}:${HOST_ERROR_TGTFMT}.wants/${OCC_DISABLE_INSTFMT}" + +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'HOST_ERROR_FMT', 'HOST_ERROR_TARGETS', 'OBMC_HOST_INSTANCES')}" + S = "${WORKDIR}/git" -- cgit v1.2.1