2019-08-16 16:36:51 +02:00
|
|
|
softmmu_ss.add(files('intc.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_ARM_GIC', if_true: files(
|
|
|
|
'arm_gic.c',
|
|
|
|
'arm_gic_common.c',
|
|
|
|
'arm_gicv2m.c',
|
|
|
|
'arm_gicv3_common.c',
|
|
|
|
'arm_gicv3_its_common.c',
|
2021-11-15 23:36:19 +01:00
|
|
|
))
|
2022-03-08 19:24:51 +01:00
|
|
|
softmmu_ss.add(when: 'CONFIG_ARM_GICV3_TCG', if_true: files(
|
2021-11-15 23:36:19 +01:00
|
|
|
'arm_gicv3.c',
|
|
|
|
'arm_gicv3_dist.c',
|
2021-09-13 17:07:23 +02:00
|
|
|
'arm_gicv3_its.c',
|
2021-11-15 23:36:19 +01:00
|
|
|
'arm_gicv3_redist.c',
|
2019-08-16 16:36:51 +02:00
|
|
|
))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_pic.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_HEATHROW_PIC', if_true: files('heathrow_pic.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_I8259', if_true: files('i8259_common.c', 'i8259.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_IMX', if_true: files('imx_avic.c', 'imx_gpcv2.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic_common.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_OPENPIC', if_true: files('openpic.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_PL190', if_true: files('pl190.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_REALVIEW', if_true: files('realview_gic.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_intctl.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_XILINX', if_true: files('xilinx_intc.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP', if_true: files('xlnx-zynqmp-ipi.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_PMU', if_true: files('xlnx-pmu-iomod-intc.c'))
|
|
|
|
|
|
|
|
specific_ss.add(when: 'CONFIG_ALLWINNER_A10_PIC', if_true: files('allwinner-a10-pic.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_APIC', if_true: files('apic.c', 'apic_common.c'))
|
2021-11-15 23:36:18 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_ARM_GIC', if_true: files('arm_gicv3_cpuif_common.c'))
|
2022-03-08 19:24:51 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_ARM_GICV3_TCG', if_true: files('arm_gicv3_cpuif.c'))
|
2019-08-16 16:36:51 +02:00
|
|
|
specific_ss.add(when: 'CONFIG_ARM_GIC_KVM', if_true: files('arm_gic_kvm.c'))
|
|
|
|
specific_ss.add(when: ['CONFIG_ARM_GIC_KVM', 'TARGET_AARCH64'], if_true: files('arm_gicv3_kvm.c', 'arm_gicv3_its_kvm.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_nvic.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_vic.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_gic.c', 'exynos4210_combiner.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_irqmp.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_LOONGSON_LIOINTC', if_true: files('loongson_liointc.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gic.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_intc.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_OMPIC', if_true: files('ompic.c'))
|
2020-12-24 18:22:47 +01:00
|
|
|
specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_OPENPIC'],
|
|
|
|
if_true: files('openpic_kvm.c'))
|
ppc/pnv: Add a XIVE2 controller to the POWER10 chip
The XIVE2 interrupt controller of the POWER10 processor follows the
same logic than on POWER9 but the HW interface has been largely
reviewed. It has a new register interface, different BARs, extra
VSDs, new layout for the XIVE2 structures, and a set of new features
which are described below.
This is a model of the POWER10 XIVE2 interrupt controller for the
PowerNV machine. It focuses primarily on the needs of the skiboot
firmware but some initial hypervisor support is implemented for KVM
use (escalation).
Support for new features will be implemented in time and will require
new support from the OS.
* XIVE2 BARS
The interrupt controller BARs have a different layout outlined below.
Each sub-engine has now own its range and the indirect TIMA access was
replaced with a set of pages, one per CPU, under the IC BAR:
- IC BAR (Interrupt Controller)
. 4 pages, one per sub-engine
. 128 indirect TIMA pages
- TM BAR (Thread Interrupt Management Area)
. 4 pages
- ESB BAR (ESB pages for IPIs)
. up to 1TB
- END BAR (ESB pages for ENDs)
. up to 2TB
- NVC BAR (Notification Virtual Crowd)
. up to 128
- NVPG BAR (Notification Virtual Process and Group)
. up to 1TB
- Direct mapped Thread Context Area (reads & writes)
OPAL does not use the grouping and crowd capability.
* Virtual Structure Tables
XIVE2 adds new tables types and also changes the field layout of the END
and NVP Virtualization Structure Descriptors.
- EAS
- END new layout
- NVT was splitted in :
. NVP (Processor), 32B
. NVG (Group), 32B
. NVC (Crowd == P9 block group) 32B
- IC for remote configuration
- SYNC for cache injection
- ERQ for event input queue
The setup is slighly different on XIVE2 because the indexing has changed
for some of the tables, block ID or the chip topology ID can be used.
* XIVE2 features
SCOM and MMIO registers have a new layout and XIVE2 adds a new global
capability and configuration registers.
The lowlevel hardware offers a set of new features among which :
- a configurable number of priorities : 1 - 8
- StoreEOI with load-after-store ordering is activated by default
- Gen2 TIMA layout
- A P9-compat mode, or Gen1, TIMA toggle bit for SW compatibility
- increase to 24bit for VP number
Other features will have some impact on the Hypervisor and guest OS
when activated, but this is not required for initial support of the
controller.
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
2022-03-02 06:51:38 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_POWERNV', if_true: files('xics_pnv.c', 'pnv_xive.c', 'pnv_xive2.c'))
|
2020-12-12 01:15:31 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_PPC_UIC', if_true: files('ppc-uic.c'))
|
2019-08-16 16:36:51 +02:00
|
|
|
specific_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_ic.c', 'bcm2836_control.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_RX_ICU', if_true: files('rx_icu.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_S390_FLIC', if_true: files('s390_flic.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_S390_FLIC_KVM', if_true: files('s390_flic_kvm.c'))
|
2021-02-21 19:50:50 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_SH_INTC', if_true: files('sh_intc.c'))
|
2021-08-31 13:06:00 +02:00
|
|
|
specific_ss.add(when: 'CONFIG_RISCV_ACLINT', if_true: files('riscv_aclint.c'))
|
2022-02-04 18:46:54 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_RISCV_APLIC', if_true: files('riscv_aplic.c'))
|
2022-02-20 09:55:23 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_RISCV_IMSIC', if_true: files('riscv_imsic.c'))
|
2020-09-03 12:40:17 +02:00
|
|
|
specific_ss.add(when: 'CONFIG_SIFIVE_PLIC', if_true: files('sifive_plic.c'))
|
2022-03-02 06:51:38 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_XICS', if_true: files('xics.c', 'xive2.c'))
|
2020-12-24 18:22:47 +01:00
|
|
|
specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_XICS'],
|
|
|
|
if_true: files('xics_kvm.c'))
|
2020-12-24 18:22:55 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_PSERIES', if_true: files('xics_spapr.c', 'spapr_xive.c'))
|
2019-08-16 16:36:51 +02:00
|
|
|
specific_ss.add(when: 'CONFIG_XIVE', if_true: files('xive.c'))
|
2020-12-24 18:22:47 +01:00
|
|
|
specific_ss.add(when: ['CONFIG_KVM', 'CONFIG_XIVE'],
|
|
|
|
if_true: files('spapr_xive_kvm.c'))
|
2021-03-12 22:41:42 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_GOLDFISH_PIC', if_true: files('goldfish_pic.c'))
|
2021-03-12 22:41:43 +01:00
|
|
|
specific_ss.add(when: 'CONFIG_M68K_IRQC', if_true: files('m68k_irqc.c'))
|