/openbmc/linux/arch/x86/kernel/ |
H A D | nmi.c | 18 #include <linux/nmi.h> 31 #include <asm/nmi.h> 39 #include <trace/events/nmi.h> 89 * Prevent NMI reason port (0x61) being accessed simultaneously, can 90 * only be used in NMI handler. 126 "INFO: NMI handler (%ps) took too long to run: %lld.%03d msecs\n", in nmi_check_duration() 159 /* return total number of NMI events handled */ in nmi_handle() 176 * internal NMI handler call chains (SERR and IO_CHECK). in __register_nmi_handler() 205 * the name passed in to describe the nmi handler in unregister_nmi_handler() 210 "Trying to free NMI (%s) from NMI context!\n", n->name); in unregister_nmi_handler() [all …]
|
/openbmc/openpower-proc-control/ |
H A D | nmi_interface.hpp | 5 #include <xyz/openbmc_project/Control/Host/NMI/server.hpp> 12 using Base = sdbusplus::xyz::openbmc_project::Control::Host::server::NMI; 15 /* @class NMI 16 * @brief Implementation of NMI (Soft Reset) 18 class NMI : public Interface class 21 NMI() = delete; 22 NMI(const NMI&) = delete; 23 NMI& operator=(const NMI&) = delete; 24 NMI(NMI&&) = delete; 25 NMI& operator=(NMI&&) = delete; [all …]
|
/openbmc/docs/designs/ |
H A D | nmi-dbus-interface.md | 1 # Design proposal for issuing NMI on servers that use OpenBMC 23 Whenever the host is unresponsive/running, Admin needs to trigger an NMI event 29 This proposal aims to trigger NMI, which in turn will invoke an 38 NMI.interface.yaml) and implement the new D-Bus back-end for respective 43 Enable NMI D-Bus phosphor interface and support this via Redfish 51 An NMI type 52 - Nmi: Generate a Diagnostic Interrupt (usually an NMI on x86 systems) to 62 {"Action":"ComputerSystem.Reset","ResetType":"Nmi"} to trigger NMI. 63 3. Redfish URI will invoke a D-Bus NMI back-end call which will use an arch 64 specific back-end implementation of xyz.openbmc_project.Control.Host.NMI to [all …]
|
/openbmc/linux/arch/x86/platform/uv/ |
H A D | uv_nmi.c | 3 * SGI NMI support routines 16 #include <linux/nmi.h> 26 #include <asm/nmi.h> 34 * UV handler for NMI 36 * Handle system-wide NMI events generated by the global 'power nmi' command. 38 * Basic operation is to field the NMI interrupt on each CPU and wait 39 * until all CPU's have arrived into the nmi handler. If some CPU's do not 40 * make it into the handler, try and force them in with the IPI(NMI) signal. 46 * To do this we register our primary NMI notifier on the NMI_UNKNOWN 47 * chain. This reduces the number of false NMI calls when the perf [all …]
|
/openbmc/linux/Documentation/RCU/ |
H A D | NMI-RCU.rst | 3 Using RCU to Protect Dynamic NMI Handlers 10 how to do this, drawing loosely from Zwane Mwaikambo's NMI-timer 21 The dummy_nmi_callback() function is a "dummy" NMI handler that does 23 the NMI handler to take the default machine-specific action:: 28 NMI handler:: 45 The do_nmi() function processes each NMI. It first disables preemption 47 count of NMIs. It then invokes the NMI handler stored in the nmi_callback 49 default_do_nmi() function to handle a machine-specific NMI. Finally, 63 Back to the discussion of NMI and RCU:: 70 The set_nmi_callback() function registers an NMI handler. Note that any [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Chassis/Buttons/ |
H A D | NMI.interface.yaml | 2 NMI button is a Diagnostic Interrupt(Front Panel NMI).Diagnostic interrupt 5 connected to the BMC through a front panel connector. user can press NMI 6 button on the front panel and then trigger NMI signal. 10 Emulate NMI button press. 20 Enable/disable NMI button. false means NMI button is disabled true 21 means NMI button is enabled 29 NMI button released signal 32 NMI button pressed signal
|
/openbmc/openbmc-test-automation/openpower/ |
H A D | test_nmi_interface.robot | 18 Trigger NMI When OPAL/Host OS Is Not Up 20 ... while injecting NMI when HOST OS is not up. 24 Trigger NMI 27 Trigger NMI When OPAL/Host OS Is Running And Secureboot Is Disabled 29 ... while injecting NMI, when HOST OS is running and 34 Trigger NMI valid_status_codes=[${HTTP_OK}] 35 Verify Crash Dump Directory After NMI Inject 40 Verify Crash Dump Directory After NMI Inject 41 [Documentation] Verification of crash dump directory after NMI inject. 69 Trigger NMI [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Chassis/Control/ |
H A D | NMISource.interface.yaml | 2 An interface for NMI signal source. 8 Keeps track of NMI signal source in BMC. 13 whether the BMC enables NMI event. 19 The type of NMI source. 23 NONE NMI signal. 26 Via Front Panel NMI button. 41 Via southbridge NMI. 44 Via chipset NMI.
|
/openbmc/phosphor-dbus-interfaces/yaml/com/intel/Control/ |
H A D | NMISource.interface.yaml | 2 An interface for NMI signal source. 7 Keeps track of NMI signal source in BMC. 12 whether the BMC enables NMI event. 18 The type of NMI source. 22 NONE NMI signal. 25 Via Front Panel NMI button. 43 Via southbridge NMI. 46 Via chipset NMI.
|
/openbmc/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | allwinner,sun7i-a20-sc-nmi.yaml | 4 $id: http://devicetree.org/schemas/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml# 25 - const: allwinner,sun6i-a31-sc-nmi 27 - const: allwinner,sun7i-a20-sc-nmi 29 - const: allwinner,sun8i-v3s-nmi 30 - const: allwinner,sun9i-a80-nmi 31 - const: allwinner,sun9i-a80-nmi 33 - const: allwinner,sun50i-a100-nmi 34 - const: allwinner,sun9i-a80-nmi 56 compatible = "allwinner,sun7i-a20-sc-nmi";
|
H A D | renesas,rzg2l-irqc.yaml | 15 interrupts of NMI, IRQ, and GPIOINT and the interrupts of the built-in peripheral 19 - NMI edge select (NMI is not treated as NMI exception and supports fall edge and 32 description: The first cell should contain a macro RZG2L_{NMI,IRQX} included in the 48 - description: NMI interrupt 94 - const: nmi 234 interrupt-names = "nmi",
|
/openbmc/linux/arch/x86/lib/ |
H A D | usercopy.c | 14 * copy_from_user_nmi - NMI safe copy from user 22 * from NMI context. Despite the name it is not restricted to be called 23 * from NMI context. It is safe to be called from any other context as 27 * For NMI context invocations this relies on the nested NMI work to allow 28 * atomic faults from the NMI path; the nested NMI paths are careful to 43 * Even though this function is typically called from NMI/IRQ context in copy_from_user_nmi()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | nmi.c | 2 /* Pseudo NMI support on sparc64 systems. 6 * The NMI watchdog support and infrastructure is based almost 7 * entirely upon the x86 NMI support code. 13 #include <linux/nmi.h> 29 /* We don't have a real NMI on sparc64, but we can fake one 40 * >0: the NMI watchdog is active, but can be disabled 41 * <0: the NMI watchdog has not been set up, and cannot be enabled 42 * 0: the NMI watchdog is disabled, but can be enabled 100 if (notify_die(DIE_NMI, "nmi", regs, 0, in perfctr_irq() 114 die_nmi("BUG: NMI Watchdog detected LOCKUP", in perfctr_irq() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | arm_gicv3.c | 24 static bool irqbetter(GICv3CPUState *cs, int irq, uint8_t prio, bool nmi) in irqbetter() argument 41 if (nmi != cs->hppi.nmi) { in irqbetter() 42 return nmi; in irqbetter() 144 uint32_t nmi = 0x0; in gicv3_get_priority() local 147 nmi = extract32(cs->gicr_inmir0, irq, 1); in gicv3_get_priority() 149 nmi = *gic_bmp_ptr32(cs->gic->nmi, irq); in gicv3_get_priority() 150 nmi = nmi & (1 << (irq & 0x1f)); in gicv3_get_priority() 153 if (nmi) { in gicv3_get_priority() 154 /* DS = 0 & Non-secure NMI */ in gicv3_get_priority() 187 bool nmi = false; in gicv3_redist_update_noirqset() local [all …]
|
/openbmc/linux/lib/ |
H A D | nmi_backtrace.c | 3 * NMI backtrace support 8 * HW NMI watchdog support 12 * Arch specific calls to support NMI watchdog 14 * Bits copied from original nmi.c file 19 #include <linux/nmi.h> 56 * Don't try to send an NMI to this cpu; it may work on some in nmi_trigger_cpumask_backtrace() 65 pr_info("Sending NMI from CPU %d to CPUs %*pbl:\n", in nmi_trigger_cpumask_backtrace() 101 * Allow nested NMI backtraces while serializing in nmi_cpu_backtrace() 106 pr_warn("NMI backtrace for cpu %d skipped: idling at %pS\n", in nmi_cpu_backtrace() 109 pr_warn("NMI backtrace for cpu %d\n", cpu); in nmi_cpu_backtrace()
|
/openbmc/linux/arch/x86/entry/ |
H A D | entry_64.S | 984 * only on return from non-NMI IST interrupts that came 1150 * the iretq it performs will take us out of NMI context. 1152 * NMI is using the top of the stack of the previous NMI. We 1153 * can't let it execute because the nested NMI will corrupt the 1154 * stack of the previous NMI. NMI handlers are not re-entrant 1161 * is an NMI stack. 1162 * If the variable is not set and the stack is not the NMI 1168 * o Continue processing the NMI 1169 * If the variable is set or the previous stack is the NMI stack: 1171 * o return back to the first NMI [all …]
|
/openbmc/linux/Documentation/watchdog/ |
H A D | hpwdt.rst | 2 HPE iLO NMI Watchdog Driver 11 The HPE iLO NMI Watchdog driver is a kernel module that provides basic 12 watchdog functionality and handler for the iLO "Generate NMI to System" 34 NMI is delivered to the system. Setting the value to 35 zero disables the pretimeout NMI. 42 kdumptimeout Minimum timeout in seconds to apply upon receipt of an NMI 53 Due to limitations in the iLO hardware, the NMI pretimeout if enabled, 58 Upon receipt of an NMI from the iLO, the hpwdt driver will initiate a 70 If the hpwdt does not receive the NMI associated with an expiring timer, 76 The HPE iLO NMI Watchdog Driver and documentation were originally developed
|
/openbmc/linux/kernel/ |
H A D | watchdog_perf.c | 9 * Some chunks also taken from the old x86-specific nmi watchdog code, thanks 13 #define pr_fmt(fmt) "NMI watchdog: " fmt 15 #include <linux/nmi.h> 39 * So it runs effectively with 2.5 times the rate of the NMI in watchdog_update_hrtimer_threshold() 41 * the NMI watchdog expires. The NMI watchdog on x86 is based on in watchdog_update_hrtimer_threshold() 43 * might run way faster than expected and the NMI fires in a in watchdog_update_hrtimer_threshold() 46 * enough to get the NMI period smaller than the hrtimer watchdog in watchdog_update_hrtimer_threshold() 49 * The sample threshold is used to check in the NMI handler whether in watchdog_update_hrtimer_threshold() 50 * the minimum time between two NMI samples has elapsed. That in watchdog_update_hrtimer_threshold() 248 * watchdog_hardlockup_probe - Probe whether NMI event is available at all [all …]
|
/openbmc/linux/include/xen/interface/ |
H A D | nmi.h | 3 * nmi.h 5 * NMI callback registration and reason codes. 16 * NMI reason codes: 25 /* Unknown hardware-generated NMI. */ 35 * Register NMI callback for this (calling) VCPU. Currently this only makes 47 * Deregister NMI callback for this (calling) VCPU.
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | watchdog.c | 7 * This uses code from arch/sparc/kernel/nmi.c and kernel/watchdog.c 17 #include <linux/nmi.h> 32 #include <asm/nmi.h> 41 * The local soft-NMI, and the SMP checker. 43 * The soft-NMI checker can detect lockups on the local CPU. When interrupts 47 * watchdog's soft_nmi_interrupt(), which appears to Linux as an NMI 50 * The soft-NMI checker will compare the heartbeat timestamp for this CPU 54 * The limitation of the soft-NMI watchdog is that it does not work when 70 * Some platforms implement true NMI IPIs, which can be used by the SMP 72 * state with the NMI IPI, to get crash/debug data from it. This way the [all …]
|
/openbmc/linux/arch/x86/kernel/apic/ |
H A D | hw_nmi.c | 3 * HW NMI watchdog support 7 * Arch specific calls to support NMI watchdog 9 * Bits copied from original nmi.c file 14 #include <asm/nmi.h> 20 #include <linux/nmi.h>
|
/openbmc/linux/arch/sh/boards/mach-sdk7786/ |
H A D | nmi.c | 3 * SDK7786 FPGA NMI Support. 21 * Default to the manual NMI switch. 40 pr_warn("Unknown NMI mode %s\n", str); in nmi_mode_setup() 43 printk("Set NMI mode to %d\n", nmi_mode); in nmi_mode_setup() 72 /* Set the NMI source */ in sdk7786_nmi_init()
|
/openbmc/linux/Documentation/trace/ |
H A D | events-nmi.rst | 2 NMI Trace Events 7 /sys/kernel/tracing/events/nmi 14 NMI handlers are hogging large amounts of CPU time. The kernel 17 INFO: NMI handler took too long to run: 9.207 msecs 34 cd /sys/kernel/tracing/events/nmi/nmi_handler
|
/openbmc/openpower-proc-control/service_files/ |
H A D | xyz.openbmc_project.Control.Host.NMI.service.in | 2 Description=Start the Open Power Host Control NMI service 9 ExecStart=@bindir@/openpower-proc-nmi 10 SyslogIdentifier=openpower-proc-nmi 13 BusName=xyz.openbmc_project.Control.Host.NMI
|
/openbmc/linux/Documentation/core-api/ |
H A D | entry.rst | 16 exceptions`_, `NMI and NMI-like exceptions`_. 197 NMI and NMI-like exceptions 200 NMIs and NMI-like exceptions (machine checks, double faults, debug 209 NMIs and other NMI-like exceptions handle state transitions without 226 preemption count modification in the NMI entry/exit case must not be 233 noinstr void nmi(struct pt_regs *regs) 277 NMIs can happen in any context. For example, an NMI-like exception triggered 278 while handling an NMI. So NMI entry code has to be reentrant and state updates
|