Home
last modified time | relevance | path

Searched refs:cause (Results 1 – 25 of 1409) sorted by relevance

12345678910>>...57

/openbmc/phosphor-fan-presence/monitor/test/
H A Dpower_off_cause_test.cpp14 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 Dirq-gt641xx.c22 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()
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()
86 cause &= mask; in gt641xx_irq_dispatch()
[all …]
H A Dmips-cm.c381 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 Dirq.c36 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 Dfault.c196 switch (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()
294 if (unlikely(access_error(cause, vma))) { in handle_page_fault()
319 tsk->thread.bad_cause = cause; in handle_page_fault()
331 tsk->thread.bad_cause = cause; in handle_page_fault()
[all …]
/openbmc/linux/security/integrity/ima/
H A Dima_appraise.c319 *cause = "invalid-hash"; in xattr_verify()
358 *cause = "invalid-signature"; in xattr_verify()
404 *cause = "unknown-ima-data"; in xattr_verify()
429 *cause = "invalid-signature"; in modsig_verify()
487 const char *cause = "unknown"; in ima_appraise_measurement() local
509 cause = "missing-hash"; in ima_appraise_measurement()
535 cause = "missing-HMAC"; in ima_appraise_measurement()
542 cause = "invalid-HMAC"; in ima_appraise_measurement()
550 &cause); in ima_appraise_measurement()
574 op, cause, rc, 0); in ima_appraise_measurement()
[all …]
/openbmc/u-boot/arch/riscv/lib/
H A Dinterrupts.c67 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 Dsoc.c129 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/docs/designs/
H A Dbmc-reboot-cause-update.md13 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]
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.
52 determine the type of reboot cause. Finally, it generates the corresponding
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Control/Power/
H A DThrottle.interface.yaml11 This property shall contain the cause(s) of the component being
29 The cause of the component being throttled is a clock limit.
32 The cause of the component being throttled is a fault detected
36 The cause of the component being throttled is a power limit.
39 The cause of the component being throttled is a thermal limit.
42 The cause of the component being throttled is not known.
/openbmc/phosphor-fan-presence/docs/monitor/
H A Dpower_off_config.md18 - `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 Dmisc_helper.c98 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()
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
146 raise_fu_exception(env, bit, sprn, cause, GETPC()); in helper_msr_facility_check()
154 uint32_t sprn, uint32_t cause) in helper_mmcr0_facility_check() argument
[all …]
/openbmc/linux/arch/mips/kvm/
H A Dvz.c258 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()
404 write_gc0_cause(cause); in _kvm_vz_restore_htimer()
426 u32 cause, compare; in kvm_vz_restore_timer() local
486 *out_cause = cause; in _kvm_vz_save_htimer()
828 if (cause & CAUSEF_BD) in kvm_trap_vz_no_handler()
1224 if (cause & CAUSEF_BD) in kvm_trap_vz_handle_gpsi()
1305 if (cause & CAUSEF_BD) in kvm_trap_vz_handle_gsfc()
[all …]
H A Dinterrupt.c24 void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, u32 cause) in kvm_mips_deliver_interrupts() argument
35 kvm_mips_callbacks->irq_clear(vcpu, priority, cause); in kvm_mips_deliver_interrupts()
44 kvm_mips_callbacks->irq_deliver(vcpu, priority, cause); in kvm_mips_deliver_interrupts()
/openbmc/u-boot/arch/arm/cpu/armv7/vf610/
H A Dgeneric.c282 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/drivers/net/ethernet/chelsio/cxgb/
H A Dsubr.c194 if (cause & (1 << p)) { in fpga_phy_intr_handler()
213 cause &= ~F_PL_INTR_SGE_DATA; in fpga_slow_intr()
214 if (cause & F_PL_INTR_SGE_ERR) { in fpga_slow_intr()
238 if (cause) in fpga_slow_intr()
674 u32 cause; in t1_elmer0_ext_intr_handler() local
854 if (!cause) in asic_slow_intr()
856 if (cause & F_PL_INTR_SGE_ERR) { in asic_slow_intr()
860 if (cause & F_PL_INTR_TP) in asic_slow_intr()
862 if (cause & F_PL_INTR_ESPI) in asic_slow_intr()
864 if (cause & F_PL_INTR_PCIX) { in asic_slow_intr()
[all …]
/openbmc/linux/arch/nios2/kernel/
H A Dtraps.c122 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/security/integrity/
H A Dintegrity_audit.c30 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/linux/arch/mips/bcm63xx/
H A Dirq.c163 u32 cause; in plat_irq_dispatch() local
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()
187 if (cause & CAUSEF_IP5) in plat_irq_dispatch()
[all …]
/openbmc/linux/arch/xtensa/kernel/
H A Dtraps.c82 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/drivers/net/ethernet/chelsio/cxgb3/
H A Dmc5.c370 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/intel-ipmi-oem/src/
H A Dchassiscommands.cpp556 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()
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()
598 else if (cause == in getRestartCauseValue()
603 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.SoftReset") in getRestartCauseValue()
[all …]
/openbmc/qemu/target/xtensa/
H A Dexc_helper.c48 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/qemu/target/mips/tcg/sysemu/
H A Dtlb_helper.c1035 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/u-boot/arch/arm/cpu/arm926ejs/mx25/
H A Dgeneric.c186 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()

12345678910>>...57