Home
last modified time | relevance | path

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

12345678910>>...26

/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 …]
H A Dpower_off_rule_test.cpp24 "cause": "missing_fan_frus", in TEST()
31 "cause": "nonfunc_fan_rotors", in TEST()
38 "cause": "nonfunc_fan_rotors", in TEST()
45 "cause": "missing_fan_frus", in TEST()
/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]
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/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",
H A Dnum_nonfunc_rotors_before_error.md26 "cause": "missing_fan_frus",
33 "cause": "nonfunc_fan_rotors",
40 "cause": "nonfunc_fan_rotors",
/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/qemu/rust/qemu-api/src/
H A Derror.rs54 cause: Option<anyhow::Error>, field
61 self.cause.as_ref().map(AsRef::as_ref) in source()
68 .or_else(|| self.cause.as_deref().map(std::error::Error::description)) in description()
80 if let Some(ref cause) = self.cause { in fmt()
95 cause: None, in from()
108 cause: None, in from()
121 cause: Some(error), in from()
132 pub fn with_error(msg: impl Into<Cow<'static, str>>, cause: impl Into<anyhow::Error>) -> Self { in with_error()
136 cause: Some(cause.into()), in with_error()
306 cause: None, in cloned_from_foreign()
/openbmc/qemu/target/ppc/
H A Dmisc_helper.c90 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 …]
H A Dmmu-radix64.c145 vaddr eaddr, uint32_t cause) in ppc_radix64_raise_si() argument
152 eaddr, cause); in ppc_radix64_raise_si()
158 env->error_code = cause; in ppc_radix64_raise_si()
161 cause |= DSISR_ISSTORE; in ppc_radix64_raise_si()
166 env->spr[SPR_DSISR] = cause; in ppc_radix64_raise_si()
176 vaddr eaddr, hwaddr g_raddr, uint32_t cause) in ppc_radix64_raise_hsi() argument
182 if (cause & DSISR_PRTABLE_FAULT) { in ppc_radix64_raise_hsi()
191 eaddr, g_raddr, cause); in ppc_radix64_raise_hsi()
198 env->error_code = cause; in ppc_radix64_raise_hsi()
201 cause |= DSISR_ISSTORE; in ppc_radix64_raise_hsi()
[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()
/openbmc/qemu/target/xtensa/
H A Dexc_helper.c47 void HELPER(exception_cause)(CPUXtensaState *env, uint32_t pc, uint32_t cause) in HELPER()
64 env->sregs[EXCCAUSE] = cause; in HELPER()
71 uint32_t pc, uint32_t cause, uint32_t vaddr) in HELPER()
74 HELPER(exception_cause)(env, pc, cause); in HELPER()
77 void debug_exception_env(CPUXtensaState *env, uint32_t cause) in debug_exception_env() argument
80 HELPER(debug_exception)(env, env->pc, cause); in debug_exception_env()
84 void HELPER(debug_exception)(CPUXtensaState *env, uint32_t pc, uint32_t cause) in HELPER()
89 env->sregs[DEBUGCAUSE] = cause; in HELPER()
H A Dhelper.c226 uint32_t cause; in xtensa_breakpoint_handler() local
229 cause = check_hw_breakpoints(env); in xtensa_breakpoint_handler()
230 if (cause) { in xtensa_breakpoint_handler()
231 debug_exception_env(env, cause); in xtensa_breakpoint_handler()
/openbmc/intel-ipmi-oem/src/
H A Dchassiscommands.cpp559 static uint4_t getRestartCauseValue(const std::string& cause) in getRestartCauseValue() argument
562 if (cause == "xyz.openbmc_project.State.Host.RestartCause.Unknown") in getRestartCauseValue()
566 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.IpmiCommand") in getRestartCauseValue()
570 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.ResetButton") in getRestartCauseValue()
574 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.PowerButton") in getRestartCauseValue()
578 else if (cause == in getRestartCauseValue()
583 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.OEM") in getRestartCauseValue()
587 else if (cause == in getRestartCauseValue()
592 else if (cause == "xyz.openbmc_project.State.Host.RestartCause." in getRestartCauseValue()
597 else if (cause == "xyz.openbmc_project.State.Host.RestartCause.PEFReset") in getRestartCauseValue()
[all …]
/openbmc/qemu/target/mips/tcg/system/
H A Dtlb_helper.c1036 int cause = -1; in mips_cpu_do_interrupt() local
1132 cause = 0; in mips_cpu_do_interrupt()
1164 cause = 1; in mips_cpu_do_interrupt()
1168 cause = 2; in mips_cpu_do_interrupt()
1189 cause = 3; in mips_cpu_do_interrupt()
1210 cause = 4; in mips_cpu_do_interrupt()
1214 cause = 5; in mips_cpu_do_interrupt()
1218 cause = 6; in mips_cpu_do_interrupt()
1221 cause = 7; in mips_cpu_do_interrupt()
1224 cause = 8; in mips_cpu_do_interrupt()
[all …]
/openbmc/u-boot/arch/mips/lib/
H A Dtraps.c23 unsigned int cause = regs->cp0_cause; in show_regs() local
58 exccode = (cause & CAUSEF_EXCCODE) >> CAUSEB_EXCCODE; in show_regs()
59 printf("Cause : %08x (ExcCode %02x)\n", cause, exccode); in show_regs()
/openbmc/qemu/target/riscv/
H A Dcpu_helper.c2129 static void riscv_do_nmi(CPURISCVState *env, target_ulong cause, bool virt) in riscv_do_nmi() argument
2134 env->mncause = cause; in riscv_do_nmi()
2168 target_ulong cause = cs->exception_index & RISCV_EXCP_INT_MASK; in riscv_cpu_do_interrupt() local
2170 bool s_injected = env->mvip & (1ULL << cause) & env->mvien && in riscv_cpu_do_interrupt()
2171 !(env->mip & (1ULL << cause)); in riscv_cpu_do_interrupt()
2172 bool vs_injected = env->hvip & (1ULL << cause) & env->hvien && in riscv_cpu_do_interrupt()
2173 !(env->mip & (1ULL << cause)); in riscv_cpu_do_interrupt()
2188 riscv_do_nmi(env, cause | ((target_ulong)1U << (mxlen - 1)), in riscv_cpu_do_interrupt()
2195 switch (cause) { in riscv_cpu_do_interrupt()
2211 cause = promote_load_fault(cause); in riscv_cpu_do_interrupt()
[all …]
H A Dtrace-events2 …4_t hartid, bool async, uint64_t cause, uint64_t epc, uint64_t tval, const char *desc) "hart:%"PRI…
/openbmc/phosphor-fan-presence/monitor/
H A Dpower_off_rule.hpp51 std::unique_ptr<PowerOffCause> cause, in PowerOffRule() argument
53 _validState(validState), _cause(std::move(cause)), in PowerOffRule()
/openbmc/u-boot/board/ge/mx53ppd/
H A Dmx53ppd.c338 const char *cause; in misc_init_r() local
344 cause = "WDOG"; in misc_init_r()
346 cause = "POR"; in misc_init_r()
348 env_set("bootcause", cause); in misc_init_r()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/postfix/files/
H A Dmain.cf53 # reject_unknown_client, # This can cause a lot of false rejects.
65 # reject_non_fqdn_hostname, # This can cause a lot of false rejects.
66 # reject_unknown_hostname, # This can cause a lot of false rejects.
/openbmc/qemu/include/system/
H A Drunstate.h86 static inline bool shutdown_caused_by_guest(ShutdownCause cause) in shutdown_caused_by_guest() argument
88 return cause >= SHUTDOWN_CAUSE_GUEST_SHUTDOWN; in shutdown_caused_by_guest()
/openbmc/u-boot/doc/
H A DREADME.unaligned-memory-access.txt9 unaligned accesses, why you need to write code that doesn't cause them,
67 platforms and will cause performance problems on others.
70 Code that does not cause unaligned access
89 not be unreasonable to expect that accessing field2 would cause an unaligned
105 will never cause an unaligned access, because all memory addresses are evenly
133 the memory access in a way that does not cause unaligned access. Of course,
134 the extra instructions obviously cause a loss in performance compared to the
143 that can cause an unaligned memory access. The following function taken
177 Here is another example of some code that could cause unaligned accesses:
185 This code will cause unaligned accesses every time the data parameter points
/openbmc/qemu/replay/
H A Dreplay.c73 static const char *replay_shutdown_event_name(ShutdownCause cause) in replay_shutdown_event_name() argument
75 switch (cause) { in replay_shutdown_event_name()
264 void replay_shutdown_request(ShutdownCause cause) in replay_shutdown_request() argument
268 replay_put_event(EVENT_SHUTDOWN + cause); in replay_shutdown_request()

12345678910>>...26