Home
last modified time | relevance | path

Searched full:ipi (Results 1 – 25 of 430) sorted by relevance

12345678910>>...18

/openbmc/linux/drivers/mailbox/
H A Dzynqmp-ipi-mailbox.c3 * Xilinx Inter Processor Interrupt(IPI) Mailbox Driver
15 #include <linux/mailbox/zynqmp-ipi-message.h>
21 /* IPI agent ID any */
24 /* indicate if ZynqMP IPI mailbox driver uses SMC calls or HVC calls */
28 /* Default IPI SMC function IDs */
37 /* IPI SMC Macros */
47 /* IPI mailbox status */
52 #define IPI_MB_CHNL_TX 0 /* IPI mailbox TX channel */
53 #define IPI_MB_CHNL_RX 1 /* IPI mailbox RX channel */
56 * struct zynqmp_ipi_mchan - Description of a Xilinx ZynqMP IPI mailbox channel
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mailbox/
H A Dxlnx,zynqmp-ipi-mailbox.yaml4 $id: http://devicetree.org/schemas/mailbox/xlnx,zynqmp-ipi-mailbox.yaml#
7 title: Xilinx IPI(Inter Processor Interrupt) mailbox controller
10 The Xilinx IPI(Inter Processor Interrupt) mailbox controller is to manage
11 messaging between two Xilinx Zynq UltraScale+ MPSoC IPI agents. Each IPI
15 | Xilinx ZynqMP IPI Controller |
27 Hardware | | IPI Agent | | IPI Buffers | |
32 | Xilinx IPI Agent Block |
40 const: xlnx,zynqmp-ipi-mailbox
61 xlnx,ipi-id:
63 Remote Xilinx IPI agent ID of which the mailbox is connected to.
[all …]
/openbmc/linux/arch/mips/kvm/
H A Dloongson_ipi.c3 * Loongson-3 Virtual IPI interrupt support.
51 static int loongson_vipi_read(struct loongson_kvm_ipi *ipi, in loongson_vipi_read() argument
59 struct ipi_state *s = &(ipi->ipistate[id]); in loongson_vipi_read()
96 static int loongson_vipi_write(struct loongson_kvm_ipi *ipi, in loongson_vipi_write() argument
104 struct kvm *kvm = ipi->kvm; in loongson_vipi_write()
106 struct ipi_state *s = &(ipi->ipistate[id]); in loongson_vipi_write()
155 struct loongson_kvm_ipi *ipi; in kvm_ipi_read() local
159 ipi = ipi_device->ipi; in kvm_ipi_read()
161 spin_lock_irqsave(&ipi->lock, flags); in kvm_ipi_read()
162 loongson_vipi_read(ipi, addr, len, val); in kvm_ipi_read()
[all …]
/openbmc/qemu/hw/intc/
H A Dloongson_ipi_common.c3 * Loongson IPI interrupt common support
58 LoongsonIPICommonState *ipi = opaque; in loongson_ipi_iocsr_readl() local
61 if (attrs.requester_id >= ipi->num_cpu) { in loongson_ipi_iocsr_readl()
65 s = &ipi->cpu[attrs.requester_id]; in loongson_ipi_iocsr_readl()
69 static MemTxResult send_ipi_data(LoongsonIPICommonState *ipi, CPUState *cpu, in send_ipi_data() argument
72 LoongsonIPICommonClass *licc = LOONGSON_IPI_COMMON_GET_CLASS(ipi); in send_ipi_data()
101 static MemTxResult mail_send(LoongsonIPICommonState *ipi, in mail_send() argument
104 LoongsonIPICommonClass *licc = LOONGSON_IPI_COMMON_GET_CLASS(ipi); in mail_send()
118 return send_ipi_data(ipi, cs, val, addr, attrs); in mail_send()
121 static MemTxResult any_send(LoongsonIPICommonState *ipi, in any_send() argument
[all …]
/openbmc/linux/drivers/remoteproc/
H A Dmtk_scp_ipi.c21 * scp_ipi_register() - register an ipi function
24 * @id: IPI ID
25 * @handler: IPI handler
26 * @priv: private data for IPI handler
28 * Register an ipi function to receive ipi interrupt from SCP.
30 * Return: 0 if ipi registers successfully, -error on error.
53 * scp_ipi_unregister() - unregister an ipi function
56 * @id: IPI ID
58 * Unregister an ipi function to receive ipi interrupt from SCP.
112 * scp_ipi_lock() - Lock before operations of an IPI ID
[all …]
H A Dxlnx_r5_remoteproc.c12 #include <linux/mailbox/zynqmp-ipi-message.h>
22 /* IPI buffer MAX length */
94 * @ipi: pointer to mailbox information
103 struct mbox_info *ipi; member
150 struct mbox_info *ipi; in handle_event_notified() local
153 ipi = container_of(work, struct mbox_info, mbox_work); in handle_event_notified()
154 rproc = ipi->r5_core->rproc; in handle_event_notified()
157 * We only use IPI for interrupt. The RPU firmware side may or may in handle_event_notified()
158 * not write the notifyid when it trigger IPI. in handle_event_notified()
171 * Receive data from ipi buffer, ack interrupt and then
[all …]
/openbmc/linux/kernel/irq/
H A Dipi.c6 * This file contains driver APIs to the IPI subsystem.
9 #define pr_fmt(fmt) "genirq/ipi: " fmt
15 * irq_reserve_ipi() - Setup an IPI to destination cpumask
16 * @domain: IPI domain
17 * @dest: cpumask of CPUs which can receive the IPI
19 * Allocate a virq that can be used to send IPI to any CPU in dest mask.
31 pr_warn("Reservation on a non IPI domain\n"); in irq_reserve_ipi()
59 * The IPI requires a separate HW irq on each CPU. We require in irq_reserve_ipi()
62 * several IPI ranges. in irq_reserve_ipi()
80 pr_warn("Can't reserve IPI, failed to alloc descs\n"); in irq_reserve_ipi()
[all …]
H A Dipi-mux.c3 * Multiplex several virtual IPIs over a single HW IPI.
9 #define pr_fmt(fmt) "ipi-mux: " fmt
49 /* If a pending IPI was unmasked, raise a parent IPI immediately. */ in ipi_mux_unmask()
81 * The flag writes must complete before the physical IPI is in ipi_mux_send_mask()
92 .name = "IPI Mux",
146 * parent IPI.
149 * @mux_send: callback to trigger parent IPI for a particular CPU
170 fwnode = irq_domain_alloc_named_fwnode("IPI-Mux"); in ipi_mux_create()
172 pr_err("unable to create IPI Mux fwnode\n"); in ipi_mux_create()
180 pr_err("unable to add IPI Mux domain\n"); in ipi_mux_create()
[all …]
/openbmc/linux/include/linux/rpmsg/
H A Dmtk_rpmsg.h15 * struct mtk_rpmsg_info - IPI functions tied to the rpmsg device.
16 * @register_ipi: register IPI handler for an IPI id.
17 * @unregister_ipi: unregister IPI handler for a registered IPI id.
18 * @send_ipi: send IPI to an IPI id. wait is the timeout (in msecs) to wait
20 * @ns_ipi_id: the IPI id used for name service, or -1 if name service isn't
/openbmc/linux/drivers/media/platform/mediatek/vpu/
H A Dmtk_vpu.h32 * For other IPI below, AP should send the request
52 * @IPI_MAX: The maximum IPI number
82 * vpu_ipi_register - register an ipi function
85 * @id: IPI ID
86 * @handler: IPI handler
87 * @name: IPI name
88 * @priv: private data for IPI handler
90 * Register an ipi function to receive ipi interrupt from VPU.
92 * Return: Return 0 if ipi registers successfully, otherwise it is failed.
101 * @id: IPI ID
[all …]
/openbmc/linux/include/trace/events/
H A Dipi.h3 #define TRACE_SYSTEM ipi
13 * @mask: mask of recipient CPUs for the IPI
14 * @reason: string identifying the IPI purpose
100 * ipi_entry - called immediately before the IPI handler
102 * @reason: string identifying the IPI purpose
106 * for that IPI.
116 * ipi_exit - called immediately after the IPI handler returns
118 * @reason: string identifying the IPI purpose
122 * that IPI.
/openbmc/linux/Documentation/virt/kvm/
H A Dvcpu-requests.rst49 order to perform some KVM maintenance. To do so, an IPI is sent, forcing
55 1) Send an IPI. This forces a guest mode exit.
70 as well as to avoid sending unnecessary IPIs (see "IPI Reduction"), and
71 even to ensure IPI acknowledgements are waited upon (see "Waiting for
160 then the caller will wait for each VCPU to acknowledge its IPI before
162 If, for example, the VCPU is sleeping, so no IPI is necessary, then
192 kick will send an IPI to force an exit from guest mode when necessary.
197 enter guest mode. This means that an optimized implementation (see "IPI
198 Reduction") must be certain when it's safe to not send the IPI. One
208 !kvm_request_pending() on its last check and then not receiving an IPI for
[all …]
/openbmc/linux/arch/hexagon/kernel/
H A Dsmp.c38 static inline void __handle_ipi(unsigned long *ops, struct ipi_data *ipi, in __handle_ipi() argument
69 /* Used for IPI call from other CPU's to unmask int */
77 * This is based on Alpha's IPI stuff.
85 struct ipi_data *ipi = &per_cpu(ipi_data, cpu); in handle_ipi() local
88 while ((ops = xchg(&ipi->bits, 0)) != 0) in handle_ipi()
89 __handle_ipi(&ops, ipi, cpu); in handle_ipi()
102 struct ipi_data *ipi = &per_cpu(ipi_data, cpu); in send_ipi() local
104 set_bit(msg, &ipi->bits); in send_ipi()
212 /* Also need to register the interrupts for IPI */ in smp_prepare_cpus()
/openbmc/linux/arch/riscv/kernel/
H A Dsbi-ipi.c3 * Multiplex several IPIs over a single HW IPI.
67 * Don't disable IPI when CPU goes offline because in sbi_ipi_init()
69 * via generic IPI-Mux in sbi_ipi_init()
72 "irqchip/sbi-ipi:starting", in sbi_ipi_init()
76 pr_info("providing IPIs using SBI IPI extension\n"); in sbi_ipi_init()
H A Dsmp.c3 * SMP initialisation and IPI support
116 int ipi = irq - ipi_virq_base; in handle_IPI() local
118 switch (ipi) { in handle_IPI()
140 pr_warn("CPU%d: unhandled IPI%d\n", smp_processor_id(), ipi); in handle_IPI()
191 "IPI", &ipi_dummy_dev); in riscv_ipi_set_virq_range()
222 seq_printf(p, "%*s%u:%s", prec - 1, "IPI", i, in show_ipi_stats()
/openbmc/qemu/hw/microblaze/
H A Dxlnx-zynqmp-pmu.c25 #include "hw/intc/xlnx-zynqmp-ipi.h"
56 XlnxZynqMPIPI ipi[XLNX_ZYNQMP_PMU_NUM_IPIS]; member
68 /* Create the IPI device */ in xlnx_zynqmp_pmu_soc_init()
70 char *name = g_strdup_printf("ipi%d", i); in xlnx_zynqmp_pmu_soc_init()
71 object_initialize_child(obj, name, &s->ipi[i], TYPE_XLNX_ZYNQMP_IPI); in xlnx_zynqmp_pmu_soc_init()
115 /* Connect the IPI device */ in xlnx_zynqmp_pmu_soc_realize()
117 sysbus_realize(SYS_BUS_DEVICE(&s->ipi[i]), &error_abort); in xlnx_zynqmp_pmu_soc_realize()
118 sysbus_mmio_map(SYS_BUS_DEVICE(&s->ipi[i]), 0, ipi_addr[i]); in xlnx_zynqmp_pmu_soc_realize()
119 sysbus_connect_irq(SYS_BUS_DEVICE(&s->ipi[i]), 0, in xlnx_zynqmp_pmu_soc_realize()
/openbmc/linux/arch/arc/kernel/
H A Dsmp.c249 * figure out what msg was sent. For those which don't (ARC has dedicated IPI
275 * Call the platform specific IPI kick function, but avoid if possible: in ipi_send_msg_one()
278 * IPI corresponding to that msg. This is true, even if it is already in in ipi_send_msg_one()
279 * IPI handler, because !@old means it has not yet dequeued the msg(s) in ipi_send_msg_one()
320 * ipi_cpu_stop - handle IPI from smp_send_stop()
353 * Has hooks for platform specific IPI
360 pr_debug("IPI [%ld] received on cpu %d\n", in do_IPI()
367 * "dequeue" the msg corresponding to this IPI (and possibly other in do_IPI()
378 pr_info("IPI with bogus msg %ld in %ld\n", msg, copy); in do_IPI()
386 * API called by platform code to hookup arch-common ISR to their IPI IRQ
[all …]
/openbmc/linux/arch/riscv/include/asm/
H A Dsmp.h28 /* print IPI stats */
42 /* Enable IPI for CPU hotplug */
45 /* Disable IPI for CPU hotplug */
48 /* Check if IPI interrupt numbers are available */
51 /* Set the IPI interrupt numbers for arch (called by irqchip drivers) */
/openbmc/linux/kernel/sched/
H A Dmembarrier.c12 * A) Userspace thread execution after IPI vs membarrier's memory
13 * barrier before sending the IPI
22 * CPU1 after the IPI-induced memory barrier:
29 * b: send IPI IPI-induced mb
46 * before the IPI-induced memory barrier on CPU1.
48 * B) Userspace thread execution before IPI vs membarrier's memory
49 * barrier after completing the IPI
68 * b: send IPI IPI-induced mb
80 * after the IPI-induced memory barrier on CPU1.
177 * ensure that memory on remote CPUs that occur before the IPI in ipi_sync_core()
[all …]
/openbmc/linux/Documentation/admin-guide/hw-vuln/
H A Dcore-scheduling.rst112 Once a task has been selected for all the siblings in the core, an IPI is sent to
113 siblings for whom a new task was selected. Siblings on receiving the IPI will
130 When the highest priority task is selected to run, a reschedule-IPI is sent to
142 (victim) to enter idle mode. This is because the sending of the IPI would bring
145 which may not be worth protecting. It is also possible that the IPI is received
171 IPI processing delays
173 Core scheduling selects only trusted tasks to run together. IPI is used to notify
175 receiving of the IPI on some arch (on x86, this has not been observed). This may
177 IPI. Even though cache is flushed on entry to user mode, victim tasks on siblings
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dxapic_ipi_test.c9 * Test that when the APIC is in xAPIC mode, a vCPU can send an IPI to wake
15 * has reentered HLT before sending the next IPI. While the vCPUs are running,
43 * Vector for IPI from sender vCPU to halting vCPU.
50 * Incremented in the IPI handler. Provides evidence to the sender that the IPI
117 * Runs on halter vCPU when IPI arrives. Write an arbitrary non-zero value to
160 * Send IPI to halter vCPU. in sender_guest_code()
161 * First IPI can be sent unconditionally because halter vCPU in sender_guest_code()
170 * 1. Received the IPI in sender_guest_code()
348 "IPI, HLT and wake count have not increased " in do_migrations()
458 "IPI sender vCPU thread started. Letting vCPUs run for %d seconds.\n", in main()
/openbmc/linux/arch/powerpc/kexec/
H A Dcrash.c30 * avoid sending an IPI if the secondary CPUs are entering
46 * having to send an IPI explicitly. So, indicate if the crash is via
47 * system reset to avoid sending another IPI.
119 printk(KERN_EMERG "Sending IPI to other CPUs\n"); in crash_kexec_prepare_cpus()
127 * Else, send IPI to all other CPUs. in crash_kexec_prepare_cpus()
138 * the crash CPU will send an IPI and wait for other CPUs to in crash_kexec_prepare_cpus()
148 printk(KERN_EMERG "IPI complete\n"); in crash_kexec_prepare_cpus()
286 * such that another IPI will not be sent. in crash_kexec_prepare()
/openbmc/linux/arch/powerpc/sysdev/xics/
H A Dicp-opal.c26 /* Clear any pending IPI */ in icp_opal_teardown_cpu()
33 * We take the ipi irq but and never return so we need to EOI the IPI, in icp_opal_flush_ipi()
92 * Here be dragons. The caller has asked to allow only IPI's and not in icp_opal_set_cpu_priority()
159 /* Clear pending IPI */ in icp_opal_flush_interrupt()
/openbmc/linux/tools/perf/pmu-events/arch/riscv/
H A Driscv-sbi-firmware.json39 "PublicDescription": "Sent IPI to other HART event",
42 "BriefDescription": "Sent IPI to other HART event"
45 "PublicDescription": "Received IPI from other HART event",
48 "BriefDescription": "Received IPI from other HART event"
/openbmc/linux/Documentation/devicetree/bindings/powerpc/fsl/
H A Dmpic.txt71 non-IPI interrupts to a single CPU at a time (EG: Freescale MPIC).
127 2 = MPIC inter-processor interrupt (IPI)
130 the MPIC IPI number. The type-specific
193 * MPIC IPI interrupts. Note the interrupt
196 ipi@410a0 {
197 compatible = "fsl,mpic-ipi";

12345678910>>...18