irqchip: MSI parent cleanup and PCI host driver conversion
Subsystems (17)
Marc Zyngier
maintainercover irqchip: MSI parent cleanup and PCI host driver conversion
I've become annoyed by the couple of machines I have around that haven't been converted to the per-device MSI infrastructure. At the same time, I've also moaned at the amount of boilerplate code required to make use of this infrastructure.
This series therefore does a number of things:
- make irq-msi-lib.h globally available, so that PCI (and other subsystems) may make use of it
- add a new helper (msi_create_parent_irq_domain()) that encapsulates most of the magic required to create an MSI-parent domain
- convert all the existing users *except* arch/x86/kernel/apic/msi.c, which is far too esoteric for me to touch it
- convert the Apple and XGene MSI drivers to the MSI-parent infrastructure, which is why I came here the first place.
I've only tested the arm64 stuff I have access to (or care about), and I would appreciate the respective maintainers/users of the other drivers to give it a go, or at least a cursory look.
Patches on top of 6.13-rc1.
Marc Zyngier (11):
irqchip: Make irq-msi-lib.h globally available
genirq/msi: Add helper for creating MSI-parent irq domains irqchip/gic: Convert to msi_create_parent_irq_domain() helper irqchip/mvebu: Convert to msi_create_parent_irq_domain() helper irqchip/riscv-imsic: Convert to msi_create_parent_irq_domain() helper irqchip/imx-mu-msi: Convert to msi_create_parent_irq_domain() helper irqchip/loongson-pch-msi: Convert to msi_create_parent_irq_domain()
helper
iommu/amd: Convert to msi_create_parent_irq_domain() helper iommu/intel: Convert to msi_create_parent_irq_domain() helper
PCI: apple: Convert to MSI parent infrastructure
PCI: xgene: Convert to MSI parent infrastructure
drivers/iommu/amd/iommu.c | 12 ++--
drivers/iommu/intel/irq_remapping.c | 16 ++----
drivers/irqchip/irq-gic-v2m.c | 11 ++--
drivers/irqchip/irq-gic-v3-its-msi-parent.c | 2 +-
drivers/irqchip/irq-gic-v3-its.c | 16 ++----
drivers/irqchip/irq-gic-v3-mbi.c | 11 ++--
drivers/irqchip/irq-imx-mu-msi.c | 10 ++--
drivers/irqchip/irq-loongarch-avec.c | 2 +-
drivers/irqchip/irq-loongson-pch-msi.c | 15 ++---
drivers/irqchip/irq-msi-lib.c | 2 +-
drivers/irqchip/irq-mvebu-gicp.c | 14 ++---
drivers/irqchip/irq-mvebu-icu.c | 2 +-
drivers/irqchip/irq-mvebu-odmi.c | 15 ++---
drivers/irqchip/irq-mvebu-sei.c | 16 ++----
drivers/irqchip/irq-riscv-imsic-platform.c | 11 ++--
drivers/pci/controller/Kconfig | 2 +
drivers/pci/controller/pci-xgene-msi.c | 44 +++++---------
drivers/pci/controller/pcie-apple.c | 57 ++++++-------------
.../linux}/irqchip/irq-msi-lib.h | 6 +-
include/linux/msi.h | 7 +++
kernel/irq/msi.c | 40 +++++++++++++
21 files changed, 146 insertions(+), 165 deletions(-)
rename {drivers => include/linux}/irqchip/irq-msi-lib.h (84%)Signature · 1 line
2.39.2
Marc Zyngier
maintainerPATCH 1/11 irqchip: Make irq-msi-lib.h globally available
Move irq-msi-lib.h into include/linux/irqchip, making it available to compilation units outside of drivers/irqchip. This requires some churn in drivers to fetch it from the new location.
---
drivers/irqchip/irq-gic-v2m.c | 2 +-
drivers/irqchip/irq-gic-v3-its-msi-parent.c | 2 +-
drivers/irqchip/irq-gic-v3-its.c | 2 +-
drivers/irqchip/irq-gic-v3-mbi.c | 2 +-
drivers/irqchip/irq-imx-mu-msi.c | 2 +-
drivers/irqchip/irq-loongarch-avec.c | 2 +-
drivers/irqchip/irq-loongson-pch-msi.c | 2 +-
drivers/irqchip/irq-msi-lib.c | 2 +-
drivers/irqchip/irq-mvebu-gicp.c | 2 +-
drivers/irqchip/irq-mvebu-icu.c | 2 +-
drivers/irqchip/irq-mvebu-odmi.c | 2 +-
drivers/irqchip/irq-mvebu-sei.c | 2 +-
{drivers => include/linux}/irqchip/irq-msi-lib.h | 6 +++---
13 files changed, 15 insertions(+), 15 deletions(-)
rename {drivers => include/linux}/irqchip/irq-msi-lib.h (84%)drivers/irqchip/irq-gic-v2m.c +1 -1
@@ -26,7 +26,7 @@#include <linux/irqchip/arm-gic.h> #include <linux/irqchip/arm-gic-common.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> /* * MSI_TYPER:
drivers/irqchip/irq-gic-v3-its-msi-parent.c +1 -1
@@ -8,7 +8,7 @@#include <linux/pci.h> #include "irq-gic-common.h" -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> #define ITS_MSI_FLAGS_REQUIRED (MSI_FLAG_USE_DEF_DOM_OPS | \ MSI_FLAG_USE_DEF_CHIP_OPS | \
drivers/irqchip/irq-gic-v3-its.c +1 -1
@@ -41,7 +41,7 @@#include <asm/exception.h> #include "irq-gic-common.h" -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> #define ITS_FLAGS_CMDQ_NEEDS_FLUSHING (1ULL << 0)#define ITS_FLAGS_WORKAROUND_CAVIUM_22375 (1ULL << 1)
drivers/irqchip/irq-gic-v3-mbi.c +1 -1
@@ -18,7 +18,7 @@#include <linux/irqchip/arm-gic-v3.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> struct mbi_range {u32 spi_start;
drivers/irqchip/irq-imx-mu-msi.c +1 -1
@@ -24,7 +24,7 @@#include <linux/pm_domain.h> #include <linux/spinlock.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> #define IMX_MU_CHANS 4
drivers/irqchip/irq-loongarch-avec.c +1 -1
@@ -18,7 +18,7 @@#include <asm/loongarch.h> #include <asm/setup.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> #include "irq-loongson.h" #define VECTORS_PER_REG 64
drivers/irqchip/irq-loongson-pch-msi.c +1 -1
@@ -15,7 +15,7 @@#include <linux/pci.h> #include <linux/slab.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> #include "irq-loongson.h" static int nr_pics;
drivers/irqchip/irq-msi-lib.c +1 -1
@@ -4,7 +4,7 @@#include <linux/export.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> /** * msi_lib_init_dev_msi_info - Domain info setup for MSI domains
drivers/irqchip/irq-mvebu-gicp.c +1 -1
@@ -17,7 +17,7 @@#include <linux/of_platform.h> #include <linux/platform_device.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
drivers/irqchip/irq-mvebu-icu.c +1 -1
@@ -20,7 +20,7 @@#include <linux/of_platform.h> #include <linux/platform_device.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> #include <dt-bindings/interrupt-controller/mvebu-icu.h>
drivers/irqchip/irq-mvebu-odmi.c +1 -1
@@ -18,7 +18,7 @@#include <linux/of_address.h> #include <linux/slab.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
drivers/irqchip/irq-mvebu-sei.c +1 -1
@@ -14,7 +14,7 @@#include <linux/of_irq.h> #include <linux/of_platform.h> -#include "irq-msi-lib.h" +#include <linux/irqchip/irq-msi-lib.h> /* Cause register */ #define GICP_SECR (idx) (0x0 + ((idx) * 0x4))
include/linux/irqchip/irq-msi-lib.h renamed from drivers/irqchip/irq-msi-lib.h +3 -3
@@ -2,8 +2,8 @@// Copyright (C) 2022 Linutronix GmbH // Copyright (C) 2022 Intel -#ifndef _DRIVERS_IRQCHIP_IRQ_MSI_LIB_H -#define _DRIVERS_IRQCHIP_IRQ_MSI_LIB_H +#ifndef _IRQCHIP_IRQ_MSI_LIB_H +#define _IRQCHIP_IRQ_MSI_LIB_H#include <linux/bits.h> #include <linux/irqdomain.h>
@@ -24,4 +24,4 @@ bool msi_lib_init_dev_msi_info(struct device *dev, struct irq_domain *domain,struct irq_domain *real_parent, struct msi_domain_info *info); -#endif /* _DRIVERS_IRQCHIP_IRQ_MSI_LIB_H */ +#endif /* _IRQCHIP_IRQ_MSI_LIB_H */
Signature · 1 line
2.39.2
Marc Zyngier
maintainerPATCH 2/11 genirq/msi: Add helper for creating MSI-parent irq domains
In reply to Marc ZyngierCreating an irq domain that serves as an MSI parent requires a substantial amount of esoteric boiler-plate code, some of which is often provided twice (such as the bus token).
To make things a bit simpler for the unsuspecting MSI tinkerer, provide a helper that does it for them, and serves as documentation of what needs to be provided.
--- include/linux/msi.h | 7 +++++++ kernel/irq/msi.c | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+)
include/linux/msi.h +7 -0
@@ -594,6 +594,13 @@ struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode,struct msi_domain_info *info, struct irq_domain *parent); +struct irq_domain *msi_create_parent_irq_domain (struct fwnode_handle *fwnode, +const struct msi_parent_ops *msi_parent_ops, +const struct irq_domain_ops *ops, +unsigned long flags,unsigned long size, +void *host_data, +struct irq_domain *parent); + bool msi_create_device_irq_domain(struct device *dev, unsigned int domid, const struct msi_domain_template *template, unsigned int hwsize, void *domain_data,
kernel/irq/msi.c +40 -0
@@ -885,6 +885,46 @@ struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode,return __msi_create_irq_domain (fwnode, info,0 , parent); } +/** +* msi_create_parent_irq_domain - Create an MSI-parent interrupt domain +* @fwnode: Optional fwnode of the interrupt controller +* @msi_parent_ops: MSI parent callbacks and configuration +* @ops: Interrupt domain ballbacks +* @flags: Interrupt domain flags +* @size: Interrupt domain size (0 if arbitrarily large) +* @host_data: Interrupt domain private data +* @parent: Parent irq domain +* +* Return: pointer to the created &struct irq_domain or %NULL on failure +*/ +struct irq_domain *msi_create_parent_irq_domain (struct fwnode_handle *fwnode, +const struct msi_parent_ops *msi_parent_ops, +const struct irq_domain_ops *ops, +unsigned long flags,unsigned long size, +void *host_data, +struct irq_domain *parent) +{ +struct irq_domain_info info = { + .fwnode = fwnode, + .size = size, + .hwirq_max = size, + .ops = ops, + .host_data = host_data, + .domain_flags = flags |IRQ_DOMAIN_FLAG_MSI_PARENT , + .parent = parent, + .bus_token = msi_parent_ops->bus_select_token, + }; +struct irq_domain *d; + + d =irq_domain_instantiate (&info); +if (IS_ERR (d)) +return NULL ; + + d->msi_parent_ops = msi_parent_ops; +return d; +} +EXPORT_SYMBOL_GPL (msi_create_parent_irq_domain); +/** * msi_parent_init_dev_msi_info - Delegate initialization of device MSI info down * in the domain hierarchy
Signature · 1 line
2.39.2
Re: [PATCH 02/11] genirq/msi: Add helper for creating MSI-parent irq domains
Quoted 19 lines · Marc Zyngier
Creating an irq domain that serves as an MSI parent requires a substantial amount of esoteric boiler-plate code, some of which is often provided twice (such as the bus token).
To make things a bit simpler for the unsuspecting MSI tinkerer, provide a helper that does it for them, and serves as documentation of what needs to be provided.
Signed-off-by Marc Zyngier <[email protected]>--- include/linux/msi.h | 7 +++++++ kernel/irq/msi.c | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+)include/linux/msi.h +0
-0
include/linux/msi.h struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode, · line 602
Quoted 9 lines
include/linux/msi.h +6
-0@@ -594,6 +594,13 @@ struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode,struct msi_domain_info *info, struct irq_domain *parent); +struct irq_domain *msi_create_parent_irq_domain (struct fwnode_handle *fwnode, +const struct msi_parent_ops *msi_parent_ops, +const struct irq_domain_ops *ops, +unsigned long flags,unsigned long size, +void *host_data, +struct irq_domain *parent);
Can we please make this a template based interface similar to msi_create_device_irq_domain()?
Quoted 19 lines
include/linux/msi.h +19
-0+/** +* msi_create_parent_irq_domain - Create an MSI-parent interrupt domain +* @fwnode: Optional fwnode of the interrupt controller +* @msi_parent_ops: MSI parent callbacks and configuration +* @ops: Interrupt domain ballbacks +* @flags: Interrupt domain flags +* @size: Interrupt domain size (0 if arbitrarily large) +* @host_data: Interrupt domain private data +* @parent: Parent irq domain +* +* Return: pointer to the created &struct irq_domain or %NULL on failure +*/ +struct irq_domain *msi_create_parent_irq_domain (struct fwnode_handle *fwnode, +const struct msi_parent_ops *msi_parent_ops, +const struct irq_domain_ops *ops, +unsigned long flags,unsigned long size, +void *host_data, +struct irq_domain *parent) +{
include/linux/msi.h struct irq_domain *msi_create_irq_domain(struct fwnode_handle *fwnode,
Quoted 10 lines
include/linux/msi.h +10
-0+struct irq_domain_info info = { + .fwnode = fwnode, + .size = size, + .hwirq_max = size, + .ops = ops, + .host_data = host_data, + .domain_flags = flags |IRQ_DOMAIN_FLAG_MSI_PARENT , + .parent = parent, + .bus_token = msi_parent_ops->bus_select_token, + };
Instead of hiding the template in the function?
We've been burnt with interfaces which might require extensions over time before and I just converted the GIC patch (3/11) over to a template at call site model. It results in the same code size reduction at the call sites, but allows us to expand the template without touching any existing driver in the future. See below.
It might be a good idea to have a specific msi_irq_domain_info template which only contains the information required instead of reusing and expanding irq_domain_info.
Hmm?
Thanks,
tglx
---
drivers/irqchip/irq-gic-v2m.c +13 -12
@@ -263,24 +263,25 @@ static struct msi_parent_ops gicv2m_msi_static __init int gicv2m_allocate_domains (struct irq_domain *parent) { -struct irq_domain *inner_domain;struct v2m_data *v2m; +struct irq_domain_info info = { + .ops = &gic2m_domain_ops, + .parent = parent, + .msi_parent_ops = &gicv2m_msi_parent_ops, + }; v2m = list_first_entry_or_null(&v2m_nodes, struct v2m_data, entry);if (!v2m)return 0 ; - inner_domain =irq_domain_create_hierarchy (parent,0 ,0 , v2m->fwnode, - &gicv2m_domain_ops, v2m); -if (!inner_domain) { -pr_err ("Failed to create GICv2m domain\n" ); -return -ENOMEM ; - } - -irq_domain_update_bus_token (inner_domain,DOMAIN_BUS_NEXUS ); - inner_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - inner_domain->msi_parent_ops = &gicv2m_msi_parent_ops; -return 0 ; + info->fwnode = v2m->fwnode; + info->host_data = v2m; + +if (msi_create_parent_irq_domain (&info)) +return 0 ; + +pr_err ("Failed to create GICv2m domain\n" ); +return -ENOMEM ; } static int __init gicv2m_init_one(struct fwnode_handle *fwnode,
drivers/irqchip/irq-gic-v3-its.c +18 -22
@@ -5076,31 +5076,27 @@ static void __init __iomem *its_map_one(static int its_init_domain (struct its_node *its) { -struct irq_domain *inner_domain; -struct msi_domain_info *info; +struct msi_domain_info *msi_info; +struct irq_domain_info info = { + .fwnode = its->fwnode_handle, + .ops = &its_domain_ops, + .parent = its_parent, + .msi_parent_ops = &gic_v3_its_msi_parent_ops, + .flags = its->msi_domain_flags, + }; - info =kzalloc (sizeof (*info),GFP_KERNEL ); -if (!info) + msi_info =kzalloc (sizeof (*info),GFP_KERNEL ); +if (!msi_info)return -ENOMEM ; - info->ops = &its_msi_domain_ops; - info->data = its; - - inner_domain =irq_domain_create_hierarchy (its_parent, - its->msi_domain_flags,0 , - its->fwnode_handle, &its_domain_ops, - info); -if (!inner_domain) { -kfree (info); -return -ENOMEM ; - } - -irq_domain_update_bus_token (inner_domain,DOMAIN_BUS_NEXUS ); - - inner_domain->msi_parent_ops = &gic_v3_its_msi_parent_ops; - inner_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - -return 0 ; + msi_info->ops = &its_msi_domain_ops; + msi_info->data = its; + info.host_data = msi_info; + +if (msi_create_parent_irq_domain (&info)) +return 0 ; +kfree (info); +return -ENOMEM ; }static int its_init_vpe_domain (void )
drivers/irqchip/irq-gic-v3-mbi.c +7 -10
@@ -209,17 +209,14 @@ static const struct msi_parent_ops gic_vstatic int mbi_allocate_domain (struct irq_domain *parent) { -struct irq_domain *nexus_domain; +struct irq_domain_info info = { + .fwnode = parent->fwnode, + .ops = &mbi_domain_ops, + .parent = parent, + .msi_parent_ops = &gic_v3_mbi_msi_parent_ops, + }; - nexus_domain =irq_domain_create_hierarchy (parent,0 ,0 , parent->fwnode, - &mbi_domain_ops,NULL ); -if (!nexus_domain) -return -ENOMEM ; - -irq_domain_update_bus_token (nexus_domain,DOMAIN_BUS_NEXUS ); - nexus_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - nexus_domain->msi_parent_ops = &gic_v3_mbi_msi_parent_ops; -return 0 ; +return msi_create_parent_irq_domain (&info) ?0 : -ENOMEM ; }int __init mbi_init (struct fwnode_handle *fwnode,struct irq_domain *parent)
Marc Zyngier
maintainerPATCH 3/11 irqchip/gic: Convert to msi_create_parent_irq_domain() helper
In reply to Marc ZyngierNow that we have a concise helper to create an MSI parent domain, switch the GIC family over to that.
--- drivers/irqchip/irq-gic-v2m.c | 9 ++++----- drivers/irqchip/irq-gic-v3-its.c | 14 +++++--------- drivers/irqchip/irq-gic-v3-mbi.c | 9 ++++----- 3 files changed, 13 insertions(+), 19 deletions(-)
drivers/irqchip/irq-gic-v2m.c +4 -5
@@ -270,16 +270,15 @@ static __init int gicv2m_allocate_domains(struct irq_domain *parent)if (!v2m)return 0 ; - inner_domain =irq_domain_create_hierarchy (parent,0 ,0 , v2m->fwnode, - &gicv2m_domain_ops, v2m); + inner_domain =msi_create_parent_irq_domain (v2m->fwnode, + &gicv2m_msi_parent_ops, + &gicv2m_domain_ops, +0 ,0 , v2m, parent);if (!inner_domain) {pr_err ("Failed to create GICv2m domain\n" );return -ENOMEM ; } -irq_domain_update_bus_token (inner_domain,DOMAIN_BUS_NEXUS ); - inner_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - inner_domain->msi_parent_ops = &gicv2m_msi_parent_ops;return 0 ; }
drivers/irqchip/irq-gic-v3-its.c +5 -9
@@ -5114,20 +5114,16 @@ static int its_init_domain(struct its_node *its) info->ops = &its_msi_domain_ops; info->data = its; - inner_domain =irq_domain_create_hierarchy (its_parent, - its->msi_domain_flags,0 , - its->fwnode_handle, &its_domain_ops, - info); + inner_domain =msi_create_parent_irq_domain (its->fwnode_handle, + &gic_v3_its_msi_parent_ops, + &its_domain_ops, + its->msi_domain_flags,0 , + info, its_parent);if (!inner_domain) {kfree (info);return -ENOMEM ; } -irq_domain_update_bus_token (inner_domain,DOMAIN_BUS_NEXUS ); - - inner_domain->msi_parent_ops = &gic_v3_its_msi_parent_ops; - inner_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; -return 0 ; }
drivers/irqchip/irq-gic-v3-mbi.c +4 -5
@@ -211,14 +211,13 @@ static int mbi_allocate_domain(struct irq_domain *parent) {struct irq_domain *nexus_domain; - nexus_domain =irq_domain_create_hierarchy (parent,0 ,0 , parent->fwnode, - &mbi_domain_ops,NULL ); + nexus_domain =msi_create_parent_irq_domain (parent->fwnode, + &gic_v3_mbi_msi_parent_ops, + &mbi_domain_ops, +0 ,0 ,NULL , parent);if (!nexus_domain)return -ENOMEM ; -irq_domain_update_bus_token (nexus_domain,DOMAIN_BUS_NEXUS ); - nexus_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - nexus_domain->msi_parent_ops = &gic_v3_mbi_msi_parent_ops;return 0 ; }
Signature · 1 line
2.39.2
Marc Zyngier
maintainerPATCH 4/11 irqchip/mvebu: Convert to msi_create_parent_irq_domain() helper
In reply to Marc ZyngierNow that we have a concise helper to create an MSI parent domain, switch the mvebu family of interrupt controllers over to that.
--- drivers/irqchip/irq-mvebu-gicp.c | 12 +++++------- drivers/irqchip/irq-mvebu-odmi.c | 13 +++++-------- drivers/irqchip/irq-mvebu-sei.c | 14 +++++--------- 3 files changed, 15 insertions(+), 24 deletions(-)
drivers/irqchip/irq-mvebu-gicp.c +5 -7
@@ -229,16 +229,14 @@ static int mvebu_gicp_probe(struct platform_device *pdev)return -ENODEV ; } - inner_domain =irq_domain_create_hierarchy (parent_domain,0 , - gicp->spi_cnt, -of_node_to_fwnode (node), - &gicp_domain_ops, gicp); + inner_domain =msi_create_parent_irq_domain (of_node_to_fwnode (node), + &gicp_msi_parent_ops, + &gicp_domain_ops, +0 , gicp->spi_cnt, gicp, + parent_domain);if (!inner_domain)return -ENOMEM ; -irq_domain_update_bus_token (inner_domain,DOMAIN_BUS_GENERIC_MSI ); - inner_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - inner_domain->msi_parent_ops = &gicp_msi_parent_ops;return 0 ; }
drivers/irqchip/irq-mvebu-odmi.c +5 -8
@@ -204,19 +204,16 @@ static int __init mvebu_odmi_init(struct device_node *node, parent_domain =irq_find_host (parent); - inner_domain =irq_domain_create_hierarchy (parent_domain,0 , - odmis_count *NODMIS_PER_FRAME , -of_node_to_fwnode (node), - &odmi_domain_ops,NULL ); + inner_domain =msi_create_parent_irq_domain (of_node_to_fwnode (node), + &odmi_msi_parent_ops, + &odmi_domain_ops,0 , + odmis_count *NODMIS_PER_FRAME , +NULL , parent_domain);if (!inner_domain) { ret = -ENOMEM ; goto err_unmap; } -irq_domain_update_bus_token (inner_domain,DOMAIN_BUS_GENERIC_MSI ); - inner_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - inner_domain->msi_parent_ops = &odmi_msi_parent_ops; -return 0 ; err_unmap:
drivers/irqchip/irq-mvebu-sei.c +5 -9
@@ -429,21 +429,17 @@ static int mvebu_sei_probe(struct platform_device *pdev)irq_domain_update_bus_token (sei->ap_domain,DOMAIN_BUS_WIRED );/* Create the 'MSI' domain */ - sei->cp_domain =irq_domain_create_hierarchy (sei->sei_domain,0 , - sei->caps->cp_range.size, -of_node_to_fwnode (node), - &mvebu_sei_cp_domain_ops, - sei); + sei->cp_domain =msi_create_parent_irq_domain (of_node_to_fwnode (node), + &sei_msi_parent_ops, + &mvebu_sei_cp_domain_ops, +0 , sei->caps->cp_range.size, + sei, sei->sei_domain);if (!sei->cp_domain) {pr_err ("Failed to create CPs IRQ domain\n" ); ret = -ENOMEM ; goto remove_ap_domain; } -irq_domain_update_bus_token (sei->cp_domain,DOMAIN_BUS_GENERIC_MSI ); - sei->cp_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - sei->cp_domain->msi_parent_ops = &sei_msi_parent_ops; -mvebu_sei_reset (sei);irq_set_chained_handler_and_data (parent_irq, mvebu_sei_handle_cascade_irq, sei);
Signature · 1 line
2.39.2
Marc Zyngier
maintainerPATCH 5/11 irqchip/riscv-imsic: Convert to msi_create_parent_irq_domain() helper
In reply to Marc ZyngierNow that we have a concise helper to create an MSI parent domain, switch the RISC-V letter soup over to that.
--- drivers/irqchip/irq-riscv-imsic-platform.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/irqchip/irq-riscv-imsic-platform.c +5 -6
@@ -325,16 +325,15 @@ int imsic_irqdomain_init(void) }/* Create Base IRQ domain */ - imsic->base_domain =irq_domain_create_tree (imsic->fwnode, - &imsic_base_domain_ops, imsic); + imsic->base_domain =msi_create_parent_irq_domain (imsic->fwnode, + &imsic_msi_parent_ops, + &imsic_base_domain_ops, +0 ,0 , imsic,NULL ); +if (!imsic->base_domain) {pr_err ("%pfwP: failed to create IMSIC base domain\n" , imsic->fwnode);return -ENOMEM ; } - imsic->base_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - imsic->base_domain->msi_parent_ops = &imsic_msi_parent_ops; - -irq_domain_update_bus_token (imsic->base_domain,DOMAIN_BUS_NEXUS ); global = &imsic->global; pr_info("%pfwP: hart-index-bits: %d, guest-index-bits: %d\n",
Signature · 1 line
2.39.2
[tip: irq/drivers] irqchip/riscv-imsic: Convert to msi_create_parent_irq_domain() helper
The following commit has been merged into the irq/drivers branch of tip:
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 59422904dd9855f94d00dc66598bef1bd2663894 Gitweb: https://git.kernel.org/tip/59422904dd9855f94d00dc66598bef1bd2663894 Author: Marc Zyngier <[email protected]> AuthorDate: Thu, 26 Jun 2025 16:49:00 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Thu, 03 Jul 2025 15:49:24 +02:00
irqchip/riscv-imsic: Convert to msi_create_parent_irq_domain() helper
Now that we have a concise helper to create an MSI parent domain, switch the RISC-V letter soup over to that.
--- drivers/irqchip/irq-riscv-imsic-platform.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/irqchip/irq-riscv-imsic-platform.c +6 -6
@@ -307,6 +307,11 @@ static const struct msi_parent_ops imsic_msi_parent_ops = {int imsic_irqdomain_init (void ) { +struct irq_domain_info info = { + .fwnode = imsic->fwnode, + .ops = &imsic_base_domain_ops, + .host_data = imsic, + };struct imsic_global_config *global;if (!imsic || !imsic->fwnode) {
@@ -320,16 +325,11 @@ int imsic_irqdomain_init(void) }/* Create Base IRQ domain */ - imsic->base_domain =irq_domain_create_tree (imsic->fwnode, - &imsic_base_domain_ops, imsic); + imsic->base_domain =msi_create_parent_irq_domain (&info, &imsic_msi_parent_ops);if (!imsic->base_domain) {pr_err ("%pfwP: failed to create IMSIC base domain\n" , imsic->fwnode);return -ENOMEM ; } - imsic->base_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - imsic->base_domain->msi_parent_ops = &imsic_msi_parent_ops; - -irq_domain_update_bus_token (imsic->base_domain,DOMAIN_BUS_NEXUS ); global = &imsic->global; pr_info("%pfwP: hart-index-bits: %d, guest-index-bits: %d\n",
Marc Zyngier
maintainerPATCH 6/11 irqchip/imx-mu-msi: Convert to msi_create_parent_irq_domain() helper
In reply to Marc ZyngierNow that we have a concise helper to create an MSI parent domain, switch the IMX letter soup over to that.
--- drivers/irqchip/irq-imx-mu-msi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/irqchip/irq-imx-mu-msi.c +3 -5
@@ -226,17 +226,15 @@ static int imx_mu_msi_domains_init(struct imx_mu_msi *msi_data, struct device *dstruct irq_domain *parent;/* Initialize MSI domain parent */ - parent =irq_domain_create_linear (fwnodes,IMX_MU_CHANS , - &imx_mu_msi_domain_ops, msi_data); + parent =msi_create_parent_irq_domain (fwnodes, &imx_mu_msi_parent_ops, + &imx_mu_msi_domain_ops,0 , +IMX_MU_CHANS , msi_data,NULL );if (!parent) {dev_err (dev,"failed to create IRQ domain\n" );return -ENOMEM ; } -irq_domain_update_bus_token (parent,DOMAIN_BUS_NEXUS ); parent->dev = parent->pm_dev = dev; - parent->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - parent->msi_parent_ops = &imx_mu_msi_parent_ops;return 0 ; }
Signature · 1 line
2.39.2
Re: [PATCH 06/11] irqchip/imx-mu-msi: Convert to msi_create_parent_irq_domain() helper
Quoted 4 lines · Marc Zyngier
Now that we have a concise helper to create an MSI parent domain, switch the IMX letter soup over to that.
Signed-off-by Marc Zyngier <[email protected]>
Quoted 32 lines
--- drivers/irqchip/irq-imx-mu-msi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)drivers/irqchip/irq-imx-mu-msi.c +3
-6@@ -226,17 +226,15 @@ static int imx_mu_msi_domains_init(struct imx_mu_msi *msi_data, struct device *dstruct irq_domain *parent;/* Initialize MSI domain parent */ - parent =irq_domain_create_linear (fwnodes,IMX_MU_CHANS , - &imx_mu_msi_domain_ops, msi_data); + parent =msi_create_parent_irq_domain (fwnodes, &imx_mu_msi_parent_ops, + &imx_mu_msi_domain_ops,0 , +IMX_MU_CHANS , msi_data,NULL );if (!parent) {dev_err (dev,"failed to create IRQ domain\n" );return -ENOMEM ; } -irq_domain_update_bus_token (parent,DOMAIN_BUS_NEXUS ); parent->dev = parent->pm_dev = dev; - parent->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - parent->msi_parent_ops = &imx_mu_msi_parent_ops;return 0 ; } --2.39.2
[tip: irq/drivers] irqchip/imx-mu-msi: Convert to msi_create_parent_irq_domain() helper
In reply to Marc ZyngierThe following commit has been merged into the irq/drivers branch of tip:
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: c7cc7b122a4cf1235b53e5bb5f441ce95d8b0cd2 Gitweb: https://git.kernel.org/tip/c7cc7b122a4cf1235b53e5bb5f441ce95d8b0cd2 Author: Marc Zyngier <[email protected]> AuthorDate: Thu, 26 Jun 2025 16:49:01 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Thu, 03 Jul 2025 15:49:24 +02:00
irqchip/imx-mu-msi: Convert to msi_create_parent_irq_domain() helper
Now that we have a concise helper to create an MSI parent domain, switch the IMX letter soup over to that.
--- drivers/irqchip/irq-imx-mu-msi.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/irqchip/irq-imx-mu-msi.c +7 -7
@@ -223,21 +223,21 @@ static const struct msi_parent_ops imx_mu_msi_parent_ops = {static int imx_mu_msi_domains_init (struct imx_mu_msi *msi_data,struct device *dev) { -struct fwnode_handle *fwnodes =dev_fwnode (dev); +struct irq_domain_info info = { + .ops = &imx_mu_msi_domain_ops, + .fwnode =dev_fwnode (dev), + .size =IMX_MU_CHANS , + .host_data = msi_data, + };struct irq_domain *parent;/* Initialize MSI domain parent */ - parent =irq_domain_create_linear (fwnodes,IMX_MU_CHANS , - &imx_mu_msi_domain_ops, msi_data); + parent =msi_create_parent_irq_domain (&info, &imx_mu_msi_parent_ops);if (!parent) {dev_err (dev,"failed to create IRQ domain\n" );return -ENOMEM ; } - -irq_domain_update_bus_token (parent,DOMAIN_BUS_NEXUS ); parent->dev = parent->pm_dev = dev; - parent->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - parent->msi_parent_ops = &imx_mu_msi_parent_ops;return 0 ; }
Marc Zyngier
maintainerPATCH 7/11 irqchip/loongson-pch-msi: Convert to msi_create_parent_irq_domain() helper
In reply to Marc ZyngierNow that we have a concise helper to create an MSI parent domain, switch the Loongson MSI stuff over to that.
--- drivers/irqchip/irq-loongson-pch-msi.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)
drivers/irqchip/irq-loongson-pch-msi.c +4 -9
@@ -158,20 +158,15 @@ static int pch_msi_init_domains(struct pch_msi_data *priv, {struct irq_domain *middle_domain; - middle_domain =irq_domain_create_hierarchy (parent,0 , priv->num_irqs, - domain_handle, - &pch_msi_middle_domain_ops, - priv); + middle_domain =msi_create_parent_irq_domain (domain_handle, + &pch_msi_parent_ops, + &pch_msi_middle_domain_ops,0 , + priv->num_irqs, priv, parent);if (!middle_domain) {pr_err ("Failed to create the MSI middle domain\n" );return -ENOMEM ; } -irq_domain_update_bus_token (middle_domain,DOMAIN_BUS_NEXUS ); - - middle_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT ; - middle_domain->msi_parent_ops = &pch_msi_parent_ops; -return 0 ; }
Signature · 1 line
2.39.2
Marc Zyngier
maintainerPATCH 8/11 iommu/amd: Convert to msi_create_parent_irq_domain() helper
In reply to Marc ZyngierNow that we have a concise helper to create an MSI parent domain, switch the AMD IOMMU remapping over to that.
--- drivers/iommu/amd/iommu.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/iommu/amd/iommu.c +5 -7
@@ -3807,6 +3807,7 @@ static struct irq_chip amd_ir_chip = {static const struct msi_parent_ops amdvi_msi_parent_ops = { .supported_flags =X86_VECTOR_MSI_FLAGS_SUPPORTED |MSI_FLAG_MULTI_PCI_MSI , + .bus_token =DOMAIN_BUS_AMDVI , .prefix ="IR-" , .init_dev_msi_info = msi_parent_init_dev_msi_info, };
@@ -3818,18 +3819,15 @@ int amd_iommu_create_irq_domain(struct amd_iommu *iommu) fn =irq_domain_alloc_named_id_fwnode ("AMD-IR" , iommu->index);if (!fn)return -ENOMEM ; - iommu->ir_domain =irq_domain_create_hierarchy (arch_get_ir_parent_domain (),0 ,0 , - fn, &amd_ir_domain_ops, iommu); + iommu->ir_domain =msi_create_parent_irq_domain (fn, &amdvi_msi_parent_ops, + &amd_ir_domain_ops, +IRQ_DOMAIN_FLAG_ISOLATED_MSI ,0 , + iommu,arch_get_ir_parent_domain ());if (!iommu->ir_domain) {irq_domain_free_fwnode (fn);return -ENOMEM ; } -irq_domain_update_bus_token (iommu->ir_domain,DOMAIN_BUS_AMDVI ); - iommu->ir_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT | -IRQ_DOMAIN_FLAG_ISOLATED_MSI ; - iommu->ir_domain->msi_parent_ops = &amdvi_msi_parent_ops; -return 0 ; }
Signature · 1 line
2.39.2
kernel test robot
build botRe: [PATCH 08/11] iommu/amd: Convert to msi_create_parent_irq_domain() helper
kernel test robot noticed the following build errors:
Hi Marc,
kernel test robot noticed the following build errors:
[auto build test ERROR on tip/irq/core]
[also build test ERROR on pci/next pci/for-linus linus/master v6.13-rc2 next-20241206] [cannot apply to joro-iommu/next]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Marc-Zyngier/irqchip-Make-irq-msi-lib-h-globally-available/20241204-204904 base: tip/irq/core patch link: https://lore.kernel.org/r/20241204124549.607054-9-maz%40kernel.org patch subject: [PATCH 08/11] iommu/amd: Convert to msi_create_parent_irq_domain() helper config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20241209/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241209/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> drivers/iommu/amd/iommu.c:3810:10: error: 'const struct msi_parent_ops' has no member named 'bus_token'
3810 | .bus_token = DOMAIN_BUS_AMDVI,
| ^~~~~~~~~
vim +3810 drivers/iommu/amd/iommu.c
3807
3808 static const struct msi_parent_ops amdvi_msi_parent_ops = {
3809 .supported_flags = X86_VECTOR_MSI_FLAGS_SUPPORTED | MSI_FLAG_MULTI_PCI_MSI,
> 3810 .bus_token = DOMAIN_BUS_AMDVI,
3811 .prefix = "IR-",
3812 .init_dev_msi_info = msi_parent_init_dev_msi_info,
3813 };
3814
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Marc Zyngier
maintainerPATCH 9/11 iommu/intel: Convert to msi_create_parent_irq_domain() helper
In reply to Marc ZyngierNow that we have a concise helper to create an MSI parent domain, switch the Intel IOMMU remapping over to that.
--- drivers/iommu/intel/irq_remapping.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)
drivers/iommu/intel/irq_remapping.c +6 -10
@@ -557,21 +557,16 @@ static int intel_setup_irq_remapping(struct intel_iommu *iommu)if (!fn) goto out_free_bitmap; - iommu->ir_domain = -irq_domain_create_hierarchy (arch_get_ir_parent_domain (), -0 ,INTR_REMAP_TABLE_ENTRIES , - fn, &intel_ir_domain_ops, - iommu); + iommu->ir_domain =msi_create_parent_irq_domain (fn, &dmar_msi_parent_ops, + &intel_ir_domain_ops, +IRQ_DOMAIN_FLAG_ISOLATED_MSI , +INTR_REMAP_TABLE_ENTRIES , + iommu,arch_get_ir_parent_domain ());if (!iommu->ir_domain) {pr_err ("IR%d: failed to allocate irqdomain\n" , iommu->seq_id); goto out_free_fwnode; } -irq_domain_update_bus_token (iommu->ir_domain,DOMAIN_BUS_DMAR ); - iommu->ir_domain->flags |=IRQ_DOMAIN_FLAG_MSI_PARENT | -IRQ_DOMAIN_FLAG_ISOLATED_MSI ; - iommu->ir_domain->msi_parent_ops = &dmar_msi_parent_ops; - ir_table->base = ir_table_base; ir_table->bitmap = bitmap; iommu->ir_table = ir_table;
@@ -1522,6 +1517,7 @@ static const struct irq_domain_ops intel_ir_domain_ops = {static const struct msi_parent_ops dmar_msi_parent_ops = { .supported_flags =X86_VECTOR_MSI_FLAGS_SUPPORTED |MSI_FLAG_MULTI_PCI_MSI , + .bus_token =DOMAIN_BUS_DMAR , .prefix ="IR-" , .init_dev_msi_info = msi_parent_init_dev_msi_info, };
Signature · 1 line
2.39.2
kernel test robot
build botRe: [PATCH 09/11] iommu/intel: Convert to msi_create_parent_irq_domain() helper
kernel test robot noticed the following build errors:
Hi Marc,
kernel test robot noticed the following build errors:
[auto build test ERROR on tip/irq/core]
[also build test ERROR on pci/next pci/for-linus linus/master v6.13-rc2 next-20241206] [cannot apply to joro-iommu/next]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Marc-Zyngier/irqchip-Make-irq-msi-lib-h-globally-available/20241204-204904 base: tip/irq/core patch link: https://lore.kernel.org/r/20241204124549.607054-10-maz%40kernel.org patch subject: [PATCH 09/11] iommu/intel: Convert to msi_create_parent_irq_domain() helper config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20241209/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241209/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> drivers/iommu/intel/irq_remapping.c:1520:10: error: 'const struct msi_parent_ops' has no member named 'bus_token'
1520 | .bus_token = DOMAIN_BUS_DMAR,
| ^~~~~~~~~
vim +1520 drivers/iommu/intel/irq_remapping.c
1517
1518 static const struct msi_parent_ops dmar_msi_parent_ops = {
1519 .supported_flags = X86_VECTOR_MSI_FLAGS_SUPPORTED | MSI_FLAG_MULTI_PCI_MSI,
> 1520 .bus_token = DOMAIN_BUS_DMAR,
1521 .prefix = "IR-",
1522 .init_dev_msi_info = msi_parent_init_dev_msi_info,
1523 };
1524
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botRe: [PATCH 09/11] iommu/intel: Convert to msi_create_parent_irq_domain() helper
In reply to Marc Zyngierkernel test robot noticed the following build errors:
Hi Marc,
kernel test robot noticed the following build errors:
[auto build test ERROR on tip/irq/core]
[also build test ERROR on pci/next pci/for-linus linus/master v6.13-rc2 next-20241206] [cannot apply to joro-iommu/next]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Marc-Zyngier/irqchip-Make-irq-msi-lib-h-globally-available/20241204-204904 base: tip/irq/core patch link: https://lore.kernel.org/r/20241204124549.607054-10-maz%40kernel.org patch subject: [PATCH 09/11] iommu/intel: Convert to msi_create_parent_irq_domain() helper config: x86_64-kexec (https://download.01.org/0day-ci/archive/20241209/[email protected]/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241209/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from drivers/iommu/intel/irq_remapping.c:11:
In file included from include/linux/pci.h:1644:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iommu/intel/irq_remapping.c:1520:3: error: field designator 'bus_token' does not refer to any field in type 'const struct msi_parent_ops'
1520 | .bus_token = DOMAIN_BUS_DMAR,
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~4 warnings and 1 error generated.
vim +1520 drivers/iommu/intel/irq_remapping.c
1517
1518 static const struct msi_parent_ops dmar_msi_parent_ops = {
1519 .supported_flags = X86_VECTOR_MSI_FLAGS_SUPPORTED | MSI_FLAG_MULTI_PCI_MSI,
> 1520 .bus_token = DOMAIN_BUS_DMAR,
1521 .prefix = "IR-",
1522 .init_dev_msi_info = msi_parent_init_dev_msi_info,
1523 };
1524
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Marc Zyngier
maintainerPATCH 10/11 PCI: apple: Convert to MSI parent infrastructure
In reply to Marc ZyngierIn an effort to move arm64 away from the legacy MSI setup, convert the apple PCIe driver to the MSI-parent infrastructure and let each device have its own MSI domain.
--- drivers/pci/controller/Kconfig | 1 + drivers/pci/controller/pcie-apple.c | 57 ++++++++--------------------- 2 files changed, 17 insertions(+), 41 deletions(-)
drivers/pci/controller/Kconfig +1 -0
@@ -40,6 +40,7 @@ config PCIE_APPLE depends on OF depends on PCI_MSI select PCI_HOST_COMMON + select IRQ_MSI_LIB help Say Y here if you want to enable PCIe controller support on Apple system-on-chips, like the Apple M1. This is required for the USB
drivers/pci/controller/pcie-apple.c +16 -41
103 lines not on this page · raw message
Signature · 1 line
2.39.2
Marc Zyngier
maintainerPATCH 11/11 PCI: xgene: Convert to MSI parent infrastructure
In reply to Marc ZyngierIn an effort to move arm64 away from the legacy MSI setup, convert the xgene PCIe driver to the MSI-parent infrastructure and let each device have its own MSI domain.
--- drivers/pci/controller/Kconfig | 1 + drivers/pci/controller/pci-xgene-msi.c | 44 +++++++++----------------- 2 files changed, 16 insertions(+), 29 deletions(-)
drivers/pci/controller/Kconfig +1 -0
@@ -304,6 +304,7 @@ config PCI_XGENE_MSI bool "X-Gene v1 PCIe MSI feature" depends on PCI_XGENE depends on PCI_MSI + select IRQ_MSI_LIB default y help Say Y here if you want PCIe MSI support for the APM X-Gene v1 SoC.
drivers/pci/controller/pci-xgene-msi.c +15 -29
82 lines not on this page · raw message
Signature · 1 line
2.39.2