From: Marc Zyngier <hidden> Date: 2015-01-08 17:06:22
MSI-like interrupts are starting to creep out of the PCI world, and
can now be seen into a number of "platform"-type busses. The MSI
domain patches recognise that fact, and start providing a way to
implement this.
Another problem we have to solve is to identify which MSI domain a
device is "connected" to. Currently, PCI gets away with a mixture of
arch-specific callbacks, and a msi_controller structure that can
optionally carry a pointer to an MSI domain. As we add new bus types
and start dealing with topologies that do not map to what PCI does,
this doesn't scale anymore.
This patch series tries to address some of it by providing a basic
link between 'struct device' and an MSI domain. It also adds (yet
another) way for PCI to propagate the domain pointer through the PCI
device hierarchy, provides a method for OF to kick-start the
propagation process, and finally allows the PCI/MSI layer to use that
information. Hopefully this can serve as a model to implement support
for different but types.
Additionally, the last three patches use all the above to remove any
trace of the msi_controller structure from the two GIC interrupt
controllers we use on arm64, so that they solely rely on the above
infrastructure. We take this opportunity to also kill the domain
pointer from the msi_controller structure.
My hope is to eventually kill msi_controller entirely, and only rely
on the msi_domain contained in the device structure (any help
welcomed).
This has been tested on arm64 with GICv2m (AMD Seattle) and GICv3 ITS
(FVP model).
Patches are on top of 3.19-rc3 and available at:
git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/msi_domain
As always, comments most welcome.
M.
From v1:
- Allow arch code to set the MSI domain before we try to do so in core
code (which is used as a fallback).
- Allow the MSI domain to be looked-up by using the PHB node.
- Remove domain field from msi_controller
[1] https://lkml.org/lkml/2014/12/8/581
Marc Zyngier (8):
device core: Introduce per-device MSI domain pointer
PCI/MSI: Add hooks to populate the msi_domain field
PCI/MSI: of: Add support for OF-provided msi_domain
PCI/MSI: of: Allow msi_domain lookup using the PHB node
PCI/MSI: Let pci_msi_get_domain use struct device's msi_domain
irqchip: GICv2m: Get rid of struct msi_controller
irqchip: gicv3-its: Get rid of struct msi_controller
PCI/MSI: Drop domain field from msi_controller
drivers/irqchip/irq-gic-v2m.c | 26 +++++++++-----------------
drivers/irqchip/irq-gic-v3-its.c | 33 ++++++++++++++-------------------
drivers/pci/msi.c | 3 +--
drivers/pci/of.c | 20 ++++++++++++++++++++
drivers/pci/probe.c | 31 +++++++++++++++++++++++++++++++
include/linux/device.h | 20 ++++++++++++++++++++
include/linux/msi.h | 3 ---
include/linux/pci.h | 3 +++
8 files changed, 98 insertions(+), 41 deletions(-)
--
2.1.4
From: Marc Zyngier <hidden> Date: 2015-01-08 17:06:26
As MSI-type features are creeping into non-PCI devices, it is
starting to make sense to give our struct device some form of
support for this, by allowing a pointer to an MSI irq domain to
be set/retrieved.
Signed-off-by: Marc Zyngier <redacted>
---
include/linux/device.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
From: Stuart Yoder <hidden> Date: 2015-01-15 20:35:33
On Thu, Jan 8, 2015 at 11:06 AM, Marc Zyngier [off-list ref] wrote:
quoted hunk
As MSI-type features are creeping into non-PCI devices, it is
starting to make sense to give our struct device some form of
support for this, by allowing a pointer to an MSI irq domain to
be set/retrieved.
Signed-off-by: Marc Zyngier <redacted>
---
include/linux/device.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
This is not a comment on this patch specifically, but a question about other
MSI specific fields that might be needed in struct device.
Currently the generic MSI domain handling has hardcoded assumptions
that devices are PCI-- see the for_each_msi_entry() iterator in msi.h:
#define dev_to_msi_list(dev) (&to_pci_dev((dev))->msi_list)
#define for_each_msi_entry(desc, dev) \
list_for_each_entry((desc), dev_to_msi_list((dev)), list)
One approach would be to move the msi_list out of pci_dev and put
it in struct device, so all devices can have an msi_list.
The other approach would be to keep msi_list in a bus specific
device struct, and then dev_to_msi_list() would need to be
implemented as a bus specific callback of some kind.
The above hardcoded PCI assumption isn't going to work. Wanted to
see if there is any advice in which direction to go.
Thanks,
Stuart Yoder
From: Marc Zyngier <hidden> Date: 2015-01-16 19:10:38
Hi Stuart,
On 15/01/15 20:35, Stuart Yoder wrote:
On Thu, Jan 8, 2015 at 11:06 AM, Marc Zyngier [off-list ref] wrote:
quoted
As MSI-type features are creeping into non-PCI devices, it is
starting to make sense to give our struct device some form of
support for this, by allowing a pointer to an MSI irq domain to
be set/retrieved.
Signed-off-by: Marc Zyngier <redacted>
---
include/linux/device.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
This is not a comment on this patch specifically, but a question about other
MSI specific fields that might be needed in struct device.
Currently the generic MSI domain handling has hardcoded assumptions
that devices are PCI-- see the for_each_msi_entry() iterator in msi.h:
#define dev_to_msi_list(dev) (&to_pci_dev((dev))->msi_list)
#define for_each_msi_entry(desc, dev) \
list_for_each_entry((desc), dev_to_msi_list((dev)), list)
One approach would be to move the msi_list out of pci_dev and put
it in struct device, so all devices can have an msi_list.
The other approach would be to keep msi_list in a bus specific
device struct, and then dev_to_msi_list() would need to be
implemented as a bus specific callback of some kind.
The above hardcoded PCI assumption isn't going to work. Wanted to
see if there is any advice in which direction to go.
The question is: can we define a generic msi_desc? If yes, then your
first proposal make sense. If not, then it is the second one.
My hunch is that we'll have to move to a model that would look like this:
struct mybus_msi_desc {
struct msi_desc desc;
struct mybus_stuff stuff;
};
and move the PCI-specific stuff out of msi_desc.
Thoughts?
M.
--
Jazz is not dead. It just smells funny...
From: Jiang Liu <hidden> Date: 2015-01-19 02:10:38
On 2015/1/16 4:35, Stuart Yoder wrote:
On Thu, Jan 8, 2015 at 11:06 AM, Marc Zyngier [off-list ref] wrote:
quoted
As MSI-type features are creeping into non-PCI devices, it is
starting to make sense to give our struct device some form of
support for this, by allowing a pointer to an MSI irq domain to
be set/retrieved.
Signed-off-by: Marc Zyngier <redacted>
---
include/linux/device.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
This is not a comment on this patch specifically, but a question about other
MSI specific fields that might be needed in struct device.
Currently the generic MSI domain handling has hardcoded assumptions
that devices are PCI-- see the for_each_msi_entry() iterator in msi.h:
#define dev_to_msi_list(dev) (&to_pci_dev((dev))->msi_list)
#define for_each_msi_entry(desc, dev) \
list_for_each_entry((desc), dev_to_msi_list((dev)), list)
One approach would be to move the msi_list out of pci_dev and put
it in struct device, so all devices can have an msi_list.
The other approach would be to keep msi_list in a bus specific
device struct, and then dev_to_msi_list() would need to be
implemented as a bus specific callback of some kind.
The above hardcoded PCI assumption isn't going to work. Wanted to
see if there is any advice in which direction to go.
Hi Stuart,
I already have some a patch set to go that direction waiting
send out for review:)
Thanks!
Gerry
Thanks,
Stuart Yoder
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Stuart Yoder <hidden> Date: 2015-01-20 17:17:31
Gerry,
So which direction did you take in your patch set-- a) common,
generic msi_desc, or b) bus-specific msi_desc like Marc showed
(mybus_msi_desc)?
Thanks,
Stuart
On Sun, Jan 18, 2015 at 8:10 PM, Jiang Liu [off-list ref] wrote:
On 2015/1/16 4:35, Stuart Yoder wrote:
quoted
On Thu, Jan 8, 2015 at 11:06 AM, Marc Zyngier [off-list ref] wrote:
quoted
As MSI-type features are creeping into non-PCI devices, it is
starting to make sense to give our struct device some form of
support for this, by allowing a pointer to an MSI irq domain to
be set/retrieved.
Signed-off-by: Marc Zyngier <redacted>
---
include/linux/device.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
This is not a comment on this patch specifically, but a question about other
MSI specific fields that might be needed in struct device.
Currently the generic MSI domain handling has hardcoded assumptions
that devices are PCI-- see the for_each_msi_entry() iterator in msi.h:
#define dev_to_msi_list(dev) (&to_pci_dev((dev))->msi_list)
#define for_each_msi_entry(desc, dev) \
list_for_each_entry((desc), dev_to_msi_list((dev)), list)
One approach would be to move the msi_list out of pci_dev and put
it in struct device, so all devices can have an msi_list.
The other approach would be to keep msi_list in a bus specific
device struct, and then dev_to_msi_list() would need to be
implemented as a bus specific callback of some kind.
The above hardcoded PCI assumption isn't going to work. Wanted to
see if there is any advice in which direction to go.
Hi Stuart,
I already have some a patch set to go that direction waiting
send out for review:)
Thanks!
Gerry
quoted
Thanks,
Stuart Yoder
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Jiang Liu <hidden> Date: 2015-01-21 01:34:35
On 2015/1/21 1:17, Stuart Yoder wrote:
Gerry,
So which direction did you take in your patch set-- a) common,
generic msi_desc, or b) bus-specific msi_desc like Marc showed
(mybus_msi_desc)?
Hi Stuart,
Currently I'm trying to go the former way as below.
Regards,
Gerry
-----------------------------------------------------------------------
struct msi_desc {
struct list_head list;
unsigned int irq;
unsigned int nvec_used; /* number of
messages */
struct device * dev;
struct msi_msg msg; /* Last set MSI
message */
#ifdef CONFIG_PCI_MSI
union {
struct { /* For PCI
MSI/MSI-X */
u32 masked; /* mask bits */
struct {
__u8 is_msix : 1;
__u8 multiple: 3; /* log2 num of
messages allocated */
__u8 multi_cap : 3; /* log2 num of
messages supported */
__u8 maskbit : 1; /* mask-pending
bit supported ? */
__u8 is_64 : 1; /* Address size:
0=32bit 1=64bit */
__u16 entry_nr; /* specific
enabled entry */
unsigned default_irq; /* default
pre-assigned irq */
} msi_attrib;
union {
u8 mask_pos;
void __iomem *mask_base;
};
};
};
#endif /* CONFIG_PCI_MSI */
};
Thanks,
Stuart
On Sun, Jan 18, 2015 at 8:10 PM, Jiang Liu [off-list ref] wrote:
quoted
On 2015/1/16 4:35, Stuart Yoder wrote:
quoted
On Thu, Jan 8, 2015 at 11:06 AM, Marc Zyngier [off-list ref] wrote:
quoted
As MSI-type features are creeping into non-PCI devices, it is
starting to make sense to give our struct device some form of
support for this, by allowing a pointer to an MSI irq domain to
be set/retrieved.
Signed-off-by: Marc Zyngier <redacted>
---
include/linux/device.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
This is not a comment on this patch specifically, but a question about other
MSI specific fields that might be needed in struct device.
Currently the generic MSI domain handling has hardcoded assumptions
that devices are PCI-- see the for_each_msi_entry() iterator in msi.h:
#define dev_to_msi_list(dev) (&to_pci_dev((dev))->msi_list)
#define for_each_msi_entry(desc, dev) \
list_for_each_entry((desc), dev_to_msi_list((dev)), list)
One approach would be to move the msi_list out of pci_dev and put
it in struct device, so all devices can have an msi_list.
The other approach would be to keep msi_list in a bus specific
device struct, and then dev_to_msi_list() would need to be
implemented as a bus specific callback of some kind.
The above hardcoded PCI assumption isn't going to work. Wanted to
see if there is any advice in which direction to go.
Hi Stuart,
I already have some a patch set to go that direction waiting
send out for review:)
Thanks!
Gerry
quoted
Thanks,
Stuart Yoder
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Marc Zyngier <hidden> Date: 2015-01-08 17:06:28
A number of platforms do not need to use the msi-parent property,
as the host bridge itself provides the MSI controller.
Allow this configuration by performing an irq domain lookup based
on the PHB node if it doesn't have a valid msi-parent property.
Signed-off-by: Marc Zyngier <redacted>
---
drivers/pci/of.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
@@ -68,9 +68,14 @@ void pci_set_phb_of_msi_domain(struct pci_bus *bus)if(!bus->dev.of_node)return;+/* Start looking for a phandle to an MSI controller. */np=of_parse_phandle(bus->dev.of_node,"msi-parent",0);+/*+*Ifwedon'thaveanmsi-parentproperty,lookforadomain+*directlyattachedtothehostbridge.+*/if(!np)-return;+np=bus->dev.of_node;dev_set_msi_domain(&bus->dev,irq_find_host(np));#endif}
From: Marc Zyngier <hidden> Date: 2015-01-08 17:06:31
In order to be able to populate the device msi_domain field,
add the necesary hooks to propagate the PHB msi_domain across
secondary busses to devices.
So far, nobody populates the initial msi_domain.
Signed-off-by: Marc Zyngier <redacted>
---
drivers/pci/probe.c | 30 ++++++++++++++++++++++++++++++
include/linux/pci.h | 1 +
2 files changed, 31 insertions(+)
@@ -1507,6 +1522,17 @@ static void pci_init_capabilities(struct pci_dev *dev) pci_enable_acs(dev); }+static void pci_set_msi_domain(struct pci_dev *dev)+{+ /*+ * If no domain has been set through the pcibios callback,+ * inherit the default from the bus device.+ */+ if (!dev_get_msi_domain(&dev->dev))+ dev_set_msi_domain(&dev->dev,+ dev_get_msi_domain(&dev->bus->dev));+}
Hi Marc, now we have two ways to associate the pci_dev and msi_domain, right ?
1. associate pci_dev and msi_domain in pcibios_add_device() like x86.
2. Inherit msi_domain from pci_dev->bus.
My question is if all pci devices inherit msi_domain from the pci_bus,
so all pci devices under same pci host bridge have the same msi_domain assigned by
weak pcibios_set_phb_msi_domain(). So why not save the pci host bridge specific
msi_domain in pci_host_bridge. Then pci devices could inherit the msi_domain from
its pci host bridge directly, no need to involve pci bus in the assignment.
If I misunderstood, please let me know, :)
Thanks!
Yijing.
@@ -1507,6 +1522,17 @@ static void pci_init_capabilities(struct pci_dev *dev) pci_enable_acs(dev); }+static void pci_set_msi_domain(struct pci_dev *dev)+{+ /*+ * If no domain has been set through the pcibios callback,+ * inherit the default from the bus device.+ */+ if (!dev_get_msi_domain(&dev->dev))+ dev_set_msi_domain(&dev->dev,+ dev_get_msi_domain(&dev->bus->dev));+}
Hi Marc, now we have two ways to associate the pci_dev and msi_domain, right ?
1. associate pci_dev and msi_domain in pcibios_add_device() like x86.
2. Inherit msi_domain from pci_dev->bus.
My question is if all pci devices inherit msi_domain from the pci_bus,
so all pci devices under same pci host bridge have the same msi_domain assigned by
weak pcibios_set_phb_msi_domain(). So why not save the pci host bridge specific
msi_domain in pci_host_bridge. Then pci devices could inherit the msi_domain from
its pci host bridge directly, no need to involve pci bus in the assignment.
But then, you would end-up maintaining another msi_domain field inside
the pci_host bridge structure. What do you gain by doing so?
With this series, msi_domain has the nice property of always being tied
to a device (and struct pci_bus always has a device). We always have
phb->bus->dev.msi_domain within reach, and architecture code can decide
to override it on a per-device basis.
What else do you need? What am I missing from your proposal?
Thanks,
M.
--
Jazz is not dead. It just smells funny...
From: Yijing Wang <hidden> Date: 2015-01-14 02:04:30
quoted
quoted
+static void pci_set_msi_domain(struct pci_dev *dev)
+{
+ /*
+ * If no domain has been set through the pcibios callback,
+ * inherit the default from the bus device.
+ */
+ if (!dev_get_msi_domain(&dev->dev))
+ dev_set_msi_domain(&dev->dev,
+ dev_get_msi_domain(&dev->bus->dev));
+}
Hi Marc, now we have two ways to associate the pci_dev and msi_domain, right ?
1. associate pci_dev and msi_domain in pcibios_add_device() like x86.
2. Inherit msi_domain from pci_dev->bus.
My question is if all pci devices inherit msi_domain from the pci_bus,
so all pci devices under same pci host bridge have the same msi_domain assigned by
weak pcibios_set_phb_msi_domain(). So why not save the pci host bridge specific
msi_domain in pci_host_bridge. Then pci devices could inherit the msi_domain from
its pci host bridge directly, no need to involve pci bus in the assignment.
But then, you would end-up maintaining another msi_domain field inside
the pci_host bridge structure. What do you gain by doing so?
My original thought is holding msi_domain field inside the pci_host_bridge is
more simple than every bus maintaining the msi_domain, but this proposal has a
disadvantage that sometimes we must setup for every device. I checked x86 DMAR code,
and found most DMAR would report PCIe root port device associating the msi_domain, not the EP device.
So pcibios_add_device could only associate these bridge device msi_domain, and its children
devices will propagate from their parent bus(get msi_domain from its bridge).
So now I agree your idea, please forgive my nagging :)
Thanks!
Yijing.
With this series, msi_domain has the nice property of always being tied
to a device (and struct pci_bus always has a device). We always have
phb->bus->dev.msi_domain within reach, and architecture code can decide
to override it on a per-device basis.
What else do you need? What am I missing from your proposal?
Thanks,
M.
From: Yijing Wang <hidden> Date: 2015-01-14 02:06:50
On 2015/1/9 1:06, Marc Zyngier wrote:
In order to be able to populate the device msi_domain field,
add the necesary hooks to propagate the PHB msi_domain across
secondary busses to devices.
So far, nobody populates the initial msi_domain.
From: Marc Zyngier <hidden> Date: 2015-01-08 17:06:34
Now that we can easily find which MSI domain a PCI device is
using, use dev_get_msi_domain as a way to retrieve the information.
The original code is still used as a fallback.
Signed-off-by: Marc Zyngier <redacted>
---
drivers/pci/msi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Marc Zyngier <hidden> Date: 2015-01-08 17:06:37
In order to populate the PHB msi_domain, use the "msi-parent"
attribute to lookup a corresponding irq domain. If found,
this is our MSI domain.
This gets plugged into the core PCI code.
Signed-off-by: Marc Zyngier <redacted>
---
drivers/pci/of.c | 15 +++++++++++++++
drivers/pci/probe.c | 1 +
include/linux/pci.h | 2 ++
3 files changed, 18 insertions(+)
In order to populate the PHB msi_domain, use the "msi-parent"
attribute to lookup a corresponding irq domain. If found,
this is our MSI domain.
This gets plugged into the core PCI code.
Hi Marc,
Since the whole patch series based on the fact that non PCI type
buses will use MSI-like interrupts, would it be better if getting
this field settled during OF populating?
Regards,
Abel
From: Marc Zyngier <hidden> Date: 2015-01-14 10:19:30
Hi Abel,
On 14/01/15 08:17, Yun Wu (Abel) wrote:
On 2015/1/9 1:06, Marc Zyngier wrote:
quoted
In order to populate the PHB msi_domain, use the "msi-parent"
attribute to lookup a corresponding irq domain. If found,
this is our MSI domain.
This gets plugged into the core PCI code.
Hi Marc,
Since the whole patch series based on the fact that non PCI type
buses will use MSI-like interrupts, would it be better if getting
this field settled during OF populating?
Are you're thinking of letting random platform devices automagically
gain an MSI domain as they are discovered by DT? I feel like you looking
at it the wrong way.
Note that DT discovery doesn't imply a particular bus, and non-PCI
doesn't mean bus-agnostic. MSI-like interrupts really are a bus
property, and I'd rather see you implementing support for your favourite
bus (and do the MSI domain matching there).
Thanks,
M.
--
Jazz is not dead. It just smells funny...
From: Marc Zyngier <hidden> Date: 2015-01-08 17:06:41
GICv2m only uses the msi_controller structure as a way to match
the PHB with its MSI HW, and thus the msi_domain. But now that
we can directly associate an msi_domain with a device, there is
no use keeping this msi_controller around.
Just remove all traces of msi_controller from the driver.
Signed-off-by: Marc Zyngier <redacted>
---
drivers/irqchip/irq-gic-v2m.c | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
From: Marc Zyngier <hidden> Date: 2015-01-08 17:06:50
The GICv3 ITS only uses the msi_controller structure as a way
to match the PHB with its MSI HW, and thus the msi_domain.
But now that we can directly associate an msi_domain with a device,
there is no use keeping this msi_controller around.
Just remove all traces of msi_controller from the driver.
Signed-off-by: Marc Zyngier <redacted>
---
drivers/irqchip/irq-gic-v3-its.c | 33 ++++++++++++++-------------------
1 file changed, 14 insertions(+), 19 deletions(-)
From: Marc Zyngier <hidden> Date: 2015-01-08 17:07:49
The only two users of that field are not using the msi_controller
structure anymore, so drop it altogether.
Signed-off-by: Marc Zyngier <redacted>
---
drivers/pci/msi.c | 2 --
include/linux/msi.h | 3 ---
2 files changed, 5 deletions(-)
On Thu, Jan 08, 2015 at 05:06:04PM +0000, Marc Zyngier wrote:
MSI-like interrupts are starting to creep out of the PCI world, and
can now be seen into a number of "platform"-type busses. The MSI
domain patches recognise that fact, and start providing a way to
implement this.
Another problem we have to solve is to identify which MSI domain a
device is "connected" to. Currently, PCI gets away with a mixture of
arch-specific callbacks, and a msi_controller structure that can
optionally carry a pointer to an MSI domain. As we add new bus types
and start dealing with topologies that do not map to what PCI does,
this doesn't scale anymore.
This patch series tries to address some of it by providing a basic
link between 'struct device' and an MSI domain. It also adds (yet
another) way for PCI to propagate the domain pointer through the PCI
device hierarchy, provides a method for OF to kick-start the
propagation process, and finally allows the PCI/MSI layer to use that
information. Hopefully this can serve as a model to implement support
for different but types.
Additionally, the last three patches use all the above to remove any
trace of the msi_controller structure from the two GIC interrupt
controllers we use on arm64, so that they solely rely on the above
infrastructure. We take this opportunity to also kill the domain
pointer from the msi_controller structure.
My hope is to eventually kill msi_controller entirely, and only rely
on the msi_domain contained in the device structure (any help
welcomed).
This has been tested on arm64 with GICv2m (AMD Seattle) and GICv3 ITS
(FVP model).
Patches are on top of 3.19-rc3 and available at:
git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/msi_domain
As always, comments most welcome.
These generally look fine to me. I made a couple minor comments (sorry; I
replied to the v1 series, not to this one). Since most of the recent IRQ
work has gone via you, Thomas, does it make sense for you to do these, too?
Bjorn
From v1:
- Allow arch code to set the MSI domain before we try to do so in core
code (which is used as a fallback).
- Allow the MSI domain to be looked-up by using the PHB node.
- Remove domain field from msi_controller
[1] https://lkml.org/lkml/2014/12/8/581
Marc Zyngier (8):
device core: Introduce per-device MSI domain pointer
PCI/MSI: Add hooks to populate the msi_domain field
PCI/MSI: of: Add support for OF-provided msi_domain
PCI/MSI: of: Allow msi_domain lookup using the PHB node
PCI/MSI: Let pci_msi_get_domain use struct device's msi_domain
irqchip: GICv2m: Get rid of struct msi_controller
irqchip: gicv3-its: Get rid of struct msi_controller
PCI/MSI: Drop domain field from msi_controller
drivers/irqchip/irq-gic-v2m.c | 26 +++++++++-----------------
drivers/irqchip/irq-gic-v3-its.c | 33 ++++++++++++++-------------------
drivers/pci/msi.c | 3 +--
drivers/pci/of.c | 20 ++++++++++++++++++++
drivers/pci/probe.c | 31 +++++++++++++++++++++++++++++++
include/linux/device.h | 20 ++++++++++++++++++++
include/linux/msi.h | 3 ---
include/linux/pci.h | 3 +++
8 files changed, 98 insertions(+), 41 deletions(-)
--
2.1.4