Home
last modified time | relevance | path

Searched full:imsic (Results 1 – 15 of 15) sorted by relevance

/linux/arch/riscv/kvm/
H A Daia_imsic.c12 #include <linux/irqchip/riscv-imsic.h>
34 struct imsic { struct
45 * 1) Hardware: IMSIC VS-file (vsfile_cpu >= 0)
46 * 2) Software: IMSIC SW-file (vsfile_cpu < 0)
49 /* IMSIC VS-file */
56 /* IMSIC SW-file */
427 /* We can only read clear if we have a IMSIC VS-file */ in imsic_vsfile_read()
497 /* We can only access register if we have a IMSIC VS-file */ in imsic_vsfile_rw()
501 /* Check IMSIC register iselect */ in imsic_vsfile_rw()
525 /* We can only zero-out if we have a IMSIC VS-file */ in imsic_vsfile_local_clear()
[all …]
H A Daia_device.c11 #include <linux/irqchip/riscv-imsic.h>
68 * VS-level IMSIC pages). in aia_config()
256 /* IMSIC base is required */ in aia_init()
270 /* Update HART index of the IMSIC based on IMSIC base */ in aia_init()
274 /* Initialize IMSIC for this VCPU */ in aia_init()
492 /* Update the IMSIC HW state before entering guest mode */ in kvm_riscv_vcpu_aia_update()
508 /* Reset the IMSIC context */ in kvm_riscv_vcpu_aia_reset()
537 /* Cleanup IMSIC context */ in kvm_riscv_vcpu_aia_deinit()
H A Daia.c13 #include <linux/irqchip/riscv-imsic.h>
586 * We release hgctrl->lock before notifying IMSIC in kvm_riscv_aia_disable()
591 /* Notify IMSIC */ in kvm_riscv_aia_disable()
629 * IMSIC guest files and number of bits in HGEIE in kvm_riscv_aia_init()
/linux/drivers/irqchip/
H A Dirq-riscv-imsic-state.c7 #define pr_fmt(fmt) "riscv-imsic: " fmt
22 #include "irq-riscv-imsic-state.h"
59 struct imsic_priv *imsic; variable
63 return imsic ? &imsic->global : NULL; in imsic_get_global_config()
101 * IMSIC EIEx and EIPx registers. These registers in __imsic_eix_update()
112 * The IMSIC EIEx and EIPx registers are indirectly in __imsic_eix_update()
136 for_each_set_bit(i, lpriv->dirty_bitmap, imsic->global.nr_ids + 1) { in __imsic_local_sync()
186 tlocal = per_cpu_ptr(imsic->global.local, tvec->cpu); in __imsic_local_sync()
190 mlocal = per_cpu_ptr(imsic->global.local, mvec->cpu); in __imsic_local_sync()
195 mlocal = per_cpu_ptr(imsic->global.local, mvec->cpu); in __imsic_local_sync()
[all …]
H A Dirq-riscv-imsic-platform.c7 #define pr_fmt(fmt) "riscv-imsic: " fmt
24 #include "irq-riscv-imsic-state.h"
32 global = &imsic->global; in imsic_cpu_page_phys()
62 local = per_cpu_ptr(imsic->global.local, vec->cpu); in imsic_irq_retrigger()
140 * state when changing target IMSIC vector from one CPU to another. in imsic_irq_set_affinity()
145 * 1) First write a temporary IMSIC vector to the device which in imsic_irq_set_affinity()
146 * has MSI address same as the old IMSIC vector but MSI data in imsic_irq_set_affinity()
147 * matches the new IMSIC vector. in imsic_irq_set_affinity()
149 * 2) Next write the new IMSIC vector to the device. in imsic_irq_set_affinity()
192 /* Do nothing if the old IMSIC vector does not belong to current CPU */ in imsic_irq_force_complete_move()
[all …]
H A Dirq-riscv-aplic-msi.c13 #include <linux/irqchip/riscv-imsic.h>
197 * controller to be RISC-V AIA IMSIC controller. in aplic_msi_setup()
201 dev_err(dev, "IMSIC global config not found\n"); in aplic_msi_setup()
208 dev_err(dev, "IMSIC guest index bits big for APLIC LHXS\n"); in aplic_msi_setup()
215 dev_err(dev, "IMSIC hart index bits big for APLIC LHXW\n"); in aplic_msi_setup()
222 dev_err(dev, "IMSIC group index bits big for APLIC HHXW\n"); in aplic_msi_setup()
229 dev_err(dev, "IMSIC group index shift should be >= %d\n", in aplic_msi_setup()
235 dev_err(dev, "IMSIC group index shift big for APLIC HHXS\n"); in aplic_msi_setup()
258 * IMSIC and the IMSIC MSI domains are created later through in aplic_msi_setup()
H A Dirq-riscv-imsic-state.h10 #include <linux/irqchip/riscv-imsic.h>
65 extern struct imsic_priv *imsic;
H A Dirq-riscv-intc.c98 * (such as PLIC, SBI IPI, CLINT, APLIC, IMSIC, etc) implement in riscv_intc_irq_eoi()
231 * interrupt controllers (such as PLIC, IMSIC and APLIC in riscv_intc_init()
H A Dirq-riscv-aplic-main.c10 #include <linux/irqchip/riscv-imsic.h>
/linux/arch/riscv/include/asm/
H A Dkvm_aia.h33 /* Number of group bits in IMSIC address */
36 /* Position of group bits in IMSIC address */
39 /* Number of hart bits in IMSIC address */
42 /* Number of guest bits in IMSIC address */
66 /* Guest physical address of IMSIC for this VCPU */
69 /* HART index of IMSIC extacted from guest physical address */
72 /* Internal state of IMSIC for this VCPU */
/linux/include/linux/irqchip/
H A Driscv-imsic.h72 /* Per-CPU IMSIC addresses */
/linux/arch/riscv/mm/
H A Dcacheflush.c35 * S-IMSIC, so the fence ensures previous data writes "happen before" in flush_icache_all()
/linux/include/acpi/
H A Dactbl2.h1560 u64 imsic_addr; /* IMSIC base address */
1561 u32 imsic_size; /* IMSIC size */
1572 /* 25: RISC-V IMSIC */
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt2617 Force the kernel to not use IMSIC software injected MSIs
2618 as IPIs. Intended for system where IMSIC is trap-n-emulated,
/linux/
H A DMAINTAINERS22056 F: drivers/irqchip/irq-riscv-imsic-*.c
22057 F: drivers/irqchip/irq-riscv-imsic-*.h
22060 F: include/linux/irqchip/riscv-imsic.h