/openbmc/phosphor-fan-presence/monitor/test/ |
H A D | power_off_cause_test.cpp | 14 MissingFanFRUCause cause{2}; in TEST() local 15 EXPECT_FALSE(cause.satisfied(health)); in TEST() 18 EXPECT_FALSE(cause.satisfied(health)); in TEST() 21 EXPECT_TRUE(cause.satisfied(health)); in TEST() 24 EXPECT_TRUE(cause.satisfied(health)); in TEST() 29 EXPECT_TRUE(cause.satisfied(health)); in TEST() 39 NonfuncFanRotorCause cause{2}; in TEST() local 40 EXPECT_FALSE(cause.satisfied(health)); in TEST() 43 EXPECT_FALSE(cause.satisfied(health)); in TEST() 46 EXPECT_TRUE(cause.satisfied(health)); in TEST() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | irq-gt641xx.c | 22 u32 cause; in ack_gt641xx_irq() local 25 cause = GT_READ(GT_INTRCAUSE_OFS); in ack_gt641xx_irq() 26 cause &= ~GT641XX_IRQ_TO_BIT(d->irq); in ack_gt641xx_irq() 27 GT_WRITE(GT_INTRCAUSE_OFS, cause); in ack_gt641xx_irq() 46 u32 cause, mask; in mask_ack_gt641xx_irq() local 53 cause = GT_READ(GT_INTRCAUSE_OFS); in mask_ack_gt641xx_irq() 54 cause &= ~GT641XX_IRQ_TO_BIT(d->irq); in mask_ack_gt641xx_irq() 55 GT_WRITE(GT_INTRCAUSE_OFS, cause); in mask_ack_gt641xx_irq() 81 u32 cause, mask; in gt641xx_irq_dispatch() local 84 cause = GT_READ(GT_INTRCAUSE_OFS); in gt641xx_irq_dispatch() [all …]
|
H A D | mips-cm.c | 381 int ocause, cause; in mips_cm_error_report() local 393 cause = FIELD_GET(CM_GCR_ERROR_CAUSE_ERRTYPE, cm_error); in mips_cm_error_report() 396 if (!cause) in mips_cm_error_report() 399 if (cause < 16) { in mips_cm_error_report() 410 } else if (cause < 24) { in mips_cm_error_report() 445 cm2_causes[cause], buf); in mips_cm_error_report() 452 cause = FIELD_GET(CM3_GCR_ERROR_CAUSE_ERRTYPE, cm_error); in mips_cm_error_report() 455 if (!cause) in mips_cm_error_report() 468 if (cause == 1 || cause == 3) { /* Tag ECC */ in mips_cm_error_report() 489 } else if (cause == 2) { in mips_cm_error_report() [all …]
|
/openbmc/linux/arch/mips/bcm47xx/ |
H A D | irq.c | 36 u32 cause; in plat_irq_dispatch() local 38 cause = read_c0_cause() & read_c0_status() & CAUSEF_IP; in plat_irq_dispatch() 40 clear_c0_status(cause); in plat_irq_dispatch() 42 if (cause & CAUSEF_IP7) in plat_irq_dispatch() 44 if (cause & CAUSEF_IP2) in plat_irq_dispatch() 46 if (cause & CAUSEF_IP3) in plat_irq_dispatch() 48 if (cause & CAUSEF_IP4) in plat_irq_dispatch() 50 if (cause & CAUSEF_IP5) in plat_irq_dispatch() 52 if (cause & CAUSEF_IP6) in plat_irq_dispatch()
|
/openbmc/linux/arch/riscv/mm/ |
H A D | fault.c | 53 if (kfence_handle_page_fault(addr, regs->cause == EXC_STORE_PAGE_FAULT, regs)) in no_context() 194 static inline bool access_error(unsigned long cause, struct vm_area_struct *vma) in access_error() argument 196 switch (cause) { in access_error() 214 panic("%s: unhandled cause %lu", __func__, cause); in access_error() 228 unsigned long addr, cause; in handle_page_fault() local 233 cause = regs->cause; in handle_page_fault() 239 if (kprobe_page_fault(regs, cause)) in handle_page_fault() 266 tsk->thread.bad_cause = cause; in handle_page_fault() 283 if (cause == EXC_STORE_PAGE_FAULT) in handle_page_fault() 285 else if (cause == EXC_INST_PAGE_FAULT) in handle_page_fault() [all …]
|
/openbmc/linux/security/integrity/ima/ |
H A D | ima_appraise.c | 281 enum integrity_status *status, const char **cause) in xattr_verify() argument 297 *cause = "verity-signature-required"; in xattr_verify() 299 *cause = "IMA-signature-required"; in xattr_verify() 319 *cause = "invalid-hash"; in xattr_verify() 330 *cause = "verity-signature-required"; in xattr_verify() 337 *cause = "invalid-signature-version"; in xattr_verify() 358 *cause = "invalid-signature"; in xattr_verify() 369 *cause = "IMA-signature-required"; in xattr_verify() 377 *cause = "invalid-signature-version"; in xattr_verify() 385 *cause = "sigv3-hashing-error"; in xattr_verify() [all …]
|
/openbmc/docs/designs/ |
H A D | bmc-reboot-cause-update.md | 13 vendors to record different types of BMC reboot cause event logs. The purpose of 28 corresponding BMC reboot cause. 29 2. Each BMC vendor needs to record the results of the retrieved reboot cause to 31 3. Each vendor needs to ensure the accuracy of interpreting the reboot cause 33 4. New reboot cause types need to be defined to cover the requirements 34 5. Revise the definitions of certain existing reboot cause types to better 43 A[BMC reboot] --> B[Driver get the reboot cause] 44 …B --> C[Driver set the corresponding flag based on the reboot cause to /sys/class/watchdog/watchdo… 49 After a BMC reboot, each BMC vendor’s driver first retrieves the reboot cause. 50 Then, based on the reboot cause, it sets different flags to the specified path. [all …]
|
/openbmc/u-boot/arch/riscv/lib/ |
H A D | interrupts.c | 67 ulong handle_trap(ulong cause, ulong epc, struct pt_regs *regs) in handle_trap() argument 71 is_irq = (cause & MCAUSE_INT); in handle_trap() 72 irq = (cause & ~MCAUSE_INT); in handle_trap() 85 _exit_trap(cause, epc, regs); in handle_trap() 89 _exit_trap(cause, epc, regs); in handle_trap()
|
/openbmc/u-boot/arch/arm/mach-imx/mx7ulp/ |
H A D | soc.c | 129 char cause[18]; in print_cpuinfo() local 138 printf("Reset cause: %s\n", get_reset_cause(cause)); in print_cpuinfo() 177 u32 cause1, cause = 0, srs = 0; in get_reset_cause() local 190 cause = cause1 & (CMC_SRS_POR | CMC_SRS_WUP | CMC_SRS_WARM); in get_reset_cause() 192 switch (cause) { in get_reset_cause() 200 cause = cause1 & (CMC_SRS_WDG | CMC_SRS_SW | in get_reset_cause() 202 switch (cause) { in get_reset_cause()
|
/openbmc/linux/arch/mips/kvm/ |
H A D | vz.c | 258 u32 cause) in kvm_vz_irq_deliver_cb() argument 287 u32 cause) in kvm_vz_irq_clear_cb() argument 366 u32 cause) in _kvm_vz_restore_stimer() argument 375 write_gc0_cause(cause); in _kvm_vz_restore_stimer() 388 u32 compare, u32 cause) in _kvm_vz_restore_htimer() argument 404 write_gc0_cause(cause); in _kvm_vz_restore_htimer() 426 u32 cause, compare; in kvm_vz_restore_timer() local 429 cause = kvm_read_sw_gc0_cause(cop0); in kvm_vz_restore_timer() 432 _kvm_vz_restore_stimer(vcpu, compare, cause); in kvm_vz_restore_timer() 471 u32 cause, compare, before_count, end_count; in _kvm_vz_save_htimer() local [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | subr.c | 191 u32 cause = readl(adapter->regs + FPGA_GMAC_ADDR_INTERRUPT_CAUSE); in fpga_phy_intr_handler() local 194 if (cause & (1 << p)) { in fpga_phy_intr_handler() 201 writel(cause, adapter->regs + FPGA_GMAC_ADDR_INTERRUPT_CAUSE); in fpga_phy_intr_handler() 210 u32 cause = readl(adapter->regs + A_PL_CAUSE); in fpga_slow_intr() local 213 cause &= ~F_PL_INTR_SGE_DATA; in fpga_slow_intr() 214 if (cause & F_PL_INTR_SGE_ERR) { in fpga_slow_intr() 219 if (cause & FPGA_PCIX_INTERRUPT_GMAC) in fpga_slow_intr() 222 if (cause & FPGA_PCIX_INTERRUPT_TP) { in fpga_slow_intr() 232 if (cause & FPGA_PCIX_INTERRUPT_PCIX) { in fpga_slow_intr() 238 if (cause) in fpga_slow_intr() [all …]
|
/openbmc/phosphor-fan-presence/docs/monitor/ |
H A D | power_off_config.md | 18 - `cause` - ["missing_fan_frus", "nonfunc_fan_rotors"] 25 - Number of the configured `cause` instances to begin the power off `type` 31 of the `cause` criteria is met. 44 `cause` criteria still exists. This timer is canceled when the `count` 45 instances of the `cause` is not longer met. 61 "cause": "missing_fan_frus", 68 "cause": "nonfunc_fan_rotors", 75 "cause": "nonfunc_fan_rotors",
|
/openbmc/qemu/target/ppc/ |
H A D | misc_helper.c | 90 const char *caller, uint32_t cause, in raise_hv_fu_exception() argument 98 raise_exception_err_ra(env, POWERPC_EXCP_HV_FU, cause, raddr); in raise_hv_fu_exception() 102 uint32_t sprn, uint32_t cause, in raise_fu_exception() argument 108 cause &= FSCR_IC_MASK; in raise_fu_exception() 109 env->spr[SPR_FSCR] |= (target_ulong)cause << FSCR_IC_POS; in raise_fu_exception() 116 const char *caller, uint32_t cause) in helper_hfscr_facility_check() argument 121 raise_hv_fu_exception(env, bit, caller, cause, GETPC()); in helper_hfscr_facility_check() 127 uint32_t sprn, uint32_t cause) in helper_fscr_facility_check() argument 134 raise_fu_exception(env, bit, sprn, cause, GETPC()); in helper_fscr_facility_check() 139 uint32_t sprn, uint32_t cause) in helper_msr_facility_check() argument [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/vf610/ |
H A D | generic.c | 282 u32 cause; in get_reset_cause() local 285 cause = readl(&src_regs->srsr); in get_reset_cause() 286 writel(cause, &src_regs->srsr); in get_reset_cause() 288 if (cause & SRC_SRSR_POR_RST) in get_reset_cause() 290 else if (cause & SRC_SRSR_WDOG_A5) in get_reset_cause() 292 else if (cause & SRC_SRSR_WDOG_M4) in get_reset_cause() 294 else if (cause & SRC_SRSR_JTAG_RST) in get_reset_cause() 296 else if (cause & SRC_SRSR_SW_RST) in get_reset_cause() 298 else if (cause & SRC_SRSR_RESETB) in get_reset_cause()
|
/openbmc/linux/arch/nios2/kernel/ |
H A D | traps.c | 122 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) in handle_unaligned_c() argument 126 cause >>= 2; in handle_unaligned_c() 136 pr_alert(" cause %d\n", cause); in handle_unaligned_c() 168 asmlinkage void unhandled_exception(struct pt_regs *regs, int cause) in unhandled_exception() argument 172 cause /= 4; in unhandled_exception() 175 cause, user_mode(regs) ? "user" : "kernel", addr); in unhandled_exception()
|
/openbmc/linux/arch/xtensa/kernel/ |
H A D | traps.c | 82 int cause; member 438 #define set_handler(type, cause, handler) \ argument 443 per_cpu(exc_table, cpu).type[cause] = (handler);\ 449 __init trap_set_handler(int cause, xtensa_exception_handler *handler) in trap_set_handler() argument 451 void *previous = per_cpu(exc_table, 0).default_handler[cause]; in trap_set_handler() 453 set_handler(default_handler, cause, handler); in trap_set_handler() 499 for(i = 0; dispatch_init_table[i].cause >= 0; i++) { in trap_init() 501 int cause = dispatch_init_table[i].cause; in trap_init() local 505 set_handler(default_handler, cause, handler); in trap_init() 507 set_handler(fast_user_handler, cause, handler); in trap_init() [all …]
|
/openbmc/linux/arch/mips/bcm63xx/ |
H A D | irq.c | 163 u32 cause; in plat_irq_dispatch() local 166 cause = read_c0_cause() & read_c0_status() & ST0_IM; in plat_irq_dispatch() 168 if (!cause) in plat_irq_dispatch() 171 if (cause & CAUSEF_IP7) in plat_irq_dispatch() 173 if (cause & CAUSEF_IP0) in plat_irq_dispatch() 175 if (cause & CAUSEF_IP1) in plat_irq_dispatch() 177 if (cause & CAUSEF_IP2) in plat_irq_dispatch() 180 if (cause & CAUSEF_IP3) in plat_irq_dispatch() 183 if (cause & CAUSEF_IP3) in plat_irq_dispatch() 185 if (cause & CAUSEF_IP4) in plat_irq_dispatch() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | mc5.c | 370 u32 cause = t3_read_reg(adap, A_MC5_DB_INT_CAUSE); in t3_mc5_intr_handler() local 372 if ((cause & F_PARITYERR) && mc5->parity_enabled) { in t3_mc5_intr_handler() 377 if (cause & F_REQQPARERR) { in t3_mc5_intr_handler() 382 if (cause & F_DISPQPARERR) { in t3_mc5_intr_handler() 387 if (cause & F_ACTRGNFULL) in t3_mc5_intr_handler() 389 if (cause & F_NFASRCHFAIL) in t3_mc5_intr_handler() 391 if (cause & F_UNKNOWNCMD) in t3_mc5_intr_handler() 393 if (cause & F_DELACTEMPTY) in t3_mc5_intr_handler() 395 if (cause & MC5_INT_FATAL) in t3_mc5_intr_handler() 398 t3_write_reg(adap, A_MC5_DB_INT_CAUSE, cause); in t3_mc5_intr_handler()
|
/openbmc/linux/security/integrity/ |
H A D | integrity_audit.c | 30 const char *cause, int result, int audit_info) in integrity_audit_msg() argument 32 integrity_audit_message(audit_msgno, inode, fname, op, cause, in integrity_audit_msg() 38 const char *cause, int result, int audit_info, in integrity_audit_message() argument 56 audit_log_format(ab, " op=%s cause=%s comm=", op, cause); in integrity_audit_message()
|
/openbmc/intel-ipmi-oem/src/ |
H A D | chassiscommands.cpp | 556 static uint4_t getRestartCauseValue(const std::string& cause) in getRestartCauseValue() argument 559 if (cause == "xyz.openbmc_project.State.Host.RestartCause.Unknown") in getRestartCauseValue() 563 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.IpmiCommand") in getRestartCauseValue() 567 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.ResetButton") in getRestartCauseValue() 571 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.PowerButton") in getRestartCauseValue() 575 else if (cause == in getRestartCauseValue() 580 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.OEM") in getRestartCauseValue() 584 else if (cause == in getRestartCauseValue() 589 else if (cause == "xyz.openbmc_project.State.Host.RestartCause." in getRestartCauseValue() 594 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.PEFReset") in getRestartCauseValue() [all …]
|
/openbmc/qemu/target/mips/tcg/sysemu/ |
H A D | tlb_helper.c | 1035 int cause = -1; in mips_cpu_do_interrupt() local 1131 cause = 0; in mips_cpu_do_interrupt() 1163 cause = 1; in mips_cpu_do_interrupt() 1167 cause = 2; in mips_cpu_do_interrupt() 1188 cause = 3; in mips_cpu_do_interrupt() 1209 cause = 4; in mips_cpu_do_interrupt() 1213 cause = 5; in mips_cpu_do_interrupt() 1217 cause = 6; in mips_cpu_do_interrupt() 1220 cause = 7; in mips_cpu_do_interrupt() 1223 cause = 8; in mips_cpu_do_interrupt() [all …]
|
/openbmc/qemu/target/xtensa/ |
H A D | exc_helper.c | 48 void HELPER(exception_cause)(CPUXtensaState *env, uint32_t pc, uint32_t cause) in HELPER() 65 env->sregs[EXCCAUSE] = cause; in HELPER() 72 uint32_t pc, uint32_t cause, uint32_t vaddr) in HELPER() 75 HELPER(exception_cause)(env, pc, cause); in HELPER() 78 void debug_exception_env(CPUXtensaState *env, uint32_t cause) in debug_exception_env() argument 81 HELPER(debug_exception)(env, env->pc, cause); in debug_exception_env() 85 void HELPER(debug_exception)(CPUXtensaState *env, uint32_t pc, uint32_t cause) in HELPER() 90 env->sregs[DEBUGCAUSE] = cause; in HELPER()
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mx25/ |
H A D | generic.c | 186 u32 cause = readl(&ccm->rcsr) & 0x0f; in get_reset_cause() local 188 if (cause == 0) in get_reset_cause() 190 else if (cause == 1) in get_reset_cause() 192 else if ((cause & 2) == 2) in get_reset_cause() 194 else if ((cause & 4) == 4) in get_reset_cause() 196 else if ((cause & 8) == 8) in get_reset_cause()
|
/openbmc/linux/arch/alpha/mm/ |
H A D | fault.c | 86 long cause, struct pt_regs *regs) in do_page_fault() argument 98 if (cause == 0) { in do_page_fault() 129 if (cause < 0) { in do_page_fault() 132 } else if (!cause) { in do_page_fault() 204 die_if_kernel("Oops", regs, cause, (unsigned long*)regs - 16); in do_page_fault()
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-facebook-greatlakes.dts | 250 /*C0-C7*/ "presence-ocp-nic","","","reset-cause-nic-primary", 251 "reset-cause-nic-secondary","","","", 265 /*M0-M7*/ "","power-nic-bmc-enable","","usb-bmc-enable","","reset-cause-usb-hub","","", 269 "reset-cause-pcie-slot1","reset-cause-pcie-slot2", 270 "reset-cause-pcie-slot3","reset-cause-pcie-slot4","","", 281 /*Y0-Y7*/ "","","","reset-cause-emmc","","","","",
|