Home
last modified time | relevance | path

Searched full:nmi (Results 1 – 25 of 572) sorted by relevance

12345678910>>...23

/Linux-v6.1/arch/x86/kernel/
Dnmi.c18 #include <linux/nmi.h>
31 #include <asm/nmi.h>
39 #include <trace/events/nmi.h>
80 * Prevent NMI reason port (0x61) being accessed simultaneously, can
81 * only be used in NMI handler.
117 "INFO: NMI handler (%ps) took too long to run: %lld.%03d msecs\n", in nmi_check_duration()
150 /* return total number of NMI events handled */ in nmi_handle()
167 * internal NMI handler call chains (SERR and IO_CHECK). in __register_nmi_handler()
196 * the name passed in to describe the nmi handler in unregister_nmi_handler()
201 "Trying to free NMI (%s) from NMI context!\n", n->name); in unregister_nmi_handler()
[all …]
Dsmp.c31 #include <asm/nmi.h>
121 /* We are registered on stopping cpu too, avoid spurious NMI */ in smp_stop_nmi_callback()
164 * and re-enable irqs. Jumping straight to an NMI might in native_stop_other_cpus()
167 * finish their work before we force them off with the NMI. in native_stop_other_cpus()
182 * prevent an NMI shutdown attempt in case that not all in native_stop_other_cpus()
190 /* if the REBOOT_VECTOR didn't work, try with the NMI */ in native_stop_other_cpus()
193 * If NMI IPI is enabled, try to register the stop handler in native_stop_other_cpus()
201 pr_emerg("Shutting down cpus with NMI\n"); in native_stop_other_cpus()
Dnmi_selftest.c3 * arch/x86/kernel/nmi-selftest.c
5 * Testsuite for NMI: IPIs
20 #include <asm/nmi.h>
28 /* check to see if NMI IPIs work on this machine */
75 /* sync above data before sending NMI */ in test_nmi_ipi()
151 printk("| NMI testsuite:\n"); in nmi_selftest()
/Linux-v6.1/arch/x86/platform/uv/
Duv_nmi.c3 * 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 …]
/Linux-v6.1/Documentation/RCU/
DNMI-RCU.rst3 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 …]
/Linux-v6.1/Documentation/devicetree/bindings/interrupt-controller/
Dallwinner,sun7i-a20-sc-nmi.yaml4 $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";
/Linux-v6.1/arch/sparc/kernel/
Dnmi.c2 /* 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
95 if (notify_die(DIE_NMI, "nmi", regs, 0, in perfctr_irq()
109 die_nmi("BUG: NMI Watchdog detected LOCKUP", in perfctr_irq()
[all …]
/Linux-v6.1/arch/x86/lib/
Dusercopy.c14 * 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()
/Linux-v6.1/lib/
Dnmi_backtrace.c3 * 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()
99 * Allow nested NMI backtraces while serializing in nmi_cpu_backtrace()
104 pr_warn("NMI backtrace for cpu %d skipped: idling at %pS\n", in nmi_cpu_backtrace()
107 pr_warn("NMI backtrace for cpu %d\n", cpu); in nmi_cpu_backtrace()
Dgenalloc.c8 * It is safe to use the allocator in NMI handlers and other special
21 * On architectures that don't have NMI-safe cmpxchg implementation,
22 * the allocator can NOT be used in NMI handler. So code uses the
23 * allocator in NMI handler should depend on
274 * Can not be used in NMI handler on architectures without
275 * NMI-safe cmpxchg implementation.
336 * Can not be used in NMI handler on architectures without
337 * NMI-safe cmpxchg implementation.
357 * given pool allocation function. Can not be used in NMI handler on
358 * architectures without NMI-safe cmpxchg implementation.
[all …]
/Linux-v6.1/arch/x86/entry/
Dentry_64.S982 * only on return from non-NMI IST interrupts that came
1149 * the iretq it performs will take us out of NMI context.
1151 * NMI is using the top of the stack of the previous NMI. We
1152 * can't let it execute because the nested NMI will corrupt the
1153 * stack of the previous NMI. NMI handlers are not re-entrant
1160 * is an NMI stack.
1161 * If the variable is not set and the stack is not the NMI
1167 * o Continue processing the NMI
1168 * If the variable is set or the previous stack is the NMI stack:
1170 * o return back to the first NMI
[all …]
/Linux-v6.1/Documentation/watchdog/
Dhpwdt.rst2 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
/Linux-v6.1/kernel/
Dwatchdog_hld.c9 * 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>
55 * So it runs effectively with 2.5 times the rate of the NMI in watchdog_update_hrtimer_threshold()
57 * the NMI watchdog expires. The NMI watchdog on x86 is based on in watchdog_update_hrtimer_threshold()
59 * might run way faster than expected and the NMI fires in a in watchdog_update_hrtimer_threshold()
62 * enough to get the NMI period smaller than the hrtimer watchdog in watchdog_update_hrtimer_threshold()
65 * The sample threshold is used to check in the NMI handler whether in watchdog_update_hrtimer_threshold()
66 * the minimum time between two NMI samples has elapsed. That in watchdog_update_hrtimer_threshold()
283 * hardlockup_detector_perf_init - Probe whether NMI event is available at all
[all …]
/Linux-v6.1/include/xen/interface/
Dnmi.h3 * 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.
/Linux-v6.1/arch/powerpc/kernel/
Dwatchdog.c7 * 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 …]
/Linux-v6.1/arch/x86/kernel/apic/
Dhw_nmi.c3 * 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>
/Linux-v6.1/Documentation/core-api/
Dentry.rst16 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
/Linux-v6.1/arch/sh/boards/mach-sdk7786/
Dnmi.c3 * 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()
/Linux-v6.1/Documentation/trace/
Devents-nmi.rst2 NMI Trace Events
7 /sys/kernel/debug/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/debug/tracing/events/nmi/nmi_handler
Dosnoise-tracer.rst21 NMI or in the hardware itself. At the end of the period, hwlatd enables
23 prints a NMI occurrence counter. If the output does not report NMI
25 the latency. The hwlat detects the NMI execution by observing
26 the entry and exit of a NMI.
34 interference. The interference counter for NMI, IRQs, SoftIRQs, and
65 … CPU# |||| TIMESTAMP IN US IN US AVAILABLE IN US HW NMI IRQ SIRQ THREAD
121 - osnoise:nmi_noise: noise from NMI, including the duration.
/Linux-v6.1/Documentation/devicetree/bindings/pinctrl/
Dlantiq,pinctrl-xway.txt52 spi_cs4, spi_cs5, spi_cs6, asc0, asc0 cts rts, stp, nmi, gpt1, gpt2,
57 spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu
64 asc0, asc0 cts rts, stp, nmi, gpt1, gpt2, gpt3, clkout0, clkout1,
69 spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, mdio, gphy
84 spi_cs2, spi_cs3, spi_cs4, spi_cs5, spi_cs6, asc0, asc0 cts rts, stp, nmi,
89 spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, dfe
96 spi_cs6, asc0, asc0 cts rts, stp, nmi, gpt1, gpt2, gpt3, clkout0, clkout1,
101 spi, asc, cgu, exin, stp, gpt, nmi, pci, ebu, mdio, dfe
111 stp, nmi, gpt1, gpt2, gpt3, clkout0, clkout1, clkout2, clkout3, gnt1,
116 spi, usif, cgu, exin, stp, gpt, nmi, pci, ebu, mdio, dfe, gphy
/Linux-v6.1/arch/x86/platform/intel-mid/
Dintel-mid.c78 * Moorestown does not have external NMI source nor port 0x61 to report
79 * NMI status. The possible NMI sources are from pmu as a result of NMI
81 * misled NMI handler.
/Linux-v6.1/drivers/irqchip/
Dirq-sunxi-nmi.c2 * Allwinner A20/A31 SoCs NMI IRQ chip driver.
11 #define DRV_NAME "sunxi-nmi"
31 * For deprecated sun6i-a31-sc-nmi compatible.
209 /* Clear any pending NMI interrupts */ in sunxi_sc_nmi_irq_init()
227 IRQCHIP_DECLARE(sun6i_sc_nmi, "allwinner,sun6i-a31-sc-nmi", sun6i_sc_nmi_irq_init);
234 IRQCHIP_DECLARE(sun7i_sc_nmi, "allwinner,sun7i-a20-sc-nmi", sun7i_sc_nmi_irq_init);
241 IRQCHIP_DECLARE(sun9i_nmi, "allwinner,sun9i-a80-nmi", sun9i_nmi_irq_init);
/Linux-v6.1/arch/mips/sgi-ip27/
Dip27-nmi.c10 #include <asm/sn/nmi.h>
66 pr_emerg("NMI nasid %d: slice %d\n", nasid, slice); in nmi_cpu_eframe_save()
171 * Save the nmi cpu registers for all cpus in the system.
197 * Wait up to 15 seconds for the other cpus to respond to the NMI. in cont_nmi_dump()
198 * If a cpu has not responded after 10 sec, send it 1 additional NMI. in cont_nmi_dump()
200 * - sometimes a MMSC fail to NMI all cpus. in cont_nmi_dump()
236 * Save the nmi cpu registers for all cpu in the eframe format. in cont_nmi_dump()
/Linux-v6.1/arch/x86/events/amd/
Dcore.c12 #include <asm/nmi.h>
663 * When a PMC counter overflows, an NMI is used to process the event and
664 * reset the counter. NMI latency can result in the counter being updated
665 * before the NMI can run, which can result in what appear to be spurious
666 * NMIs. This function is intended to wait for the NMI to run and reset
667 * the counter to avoid possible unhandled NMI messages.
695 * This shouldn't be called from NMI context, but add a safeguard here in amd_pmu_check_overflow()
696 * to return, since if we're in NMI context we can't wait for an NMI in amd_pmu_check_overflow()
704 * NMI if it has overflowed. This relies on the fact that all active in amd_pmu_check_overflow()
768 * This can be called from NMI context (via x86_pmu_stop). The counter in amd_pmu_disable_event()
[all …]

12345678910>>...23