projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f90da
)
irqchip/gic-v3-its: Tag ITS device as shared if allocating for a proxy device
author
Marc Zyngier
<maz@kernel.org>
Sun, 29 Nov 2020 13:52:07 +0000
(13:52 +0000)
committer
Marc Zyngier
<maz@kernel.org>
Fri, 11 Dec 2020 14:47:50 +0000
(14:47 +0000)
The ITS already has some notion of "shared" devices. Let's map the
MSI_ALLOC_FLAGS_PROXY_DEVICE flag onto this internal property.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Tested-by: John Garry <john.garry@huawei.com>
Link:
https://lore.kernel.org/r/20201129135208.680293-3-maz@kernel.org
drivers/irqchip/irq-gic-v3-its.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-gic-v3-its.c
b/drivers/irqchip/irq-gic-v3-its.c
index d74ef418e3868221b145767e8581b79ca24aa5a7..c951ad24d37780db2167156e7ecae95aceed107e 100644
(file)
--- a/
drivers/irqchip/irq-gic-v3-its.c
+++ b/
drivers/irqchip/irq-gic-v3-its.c
@@
-3487,6
+3487,9
@@
static int its_msi_prepare(struct irq_domain *domain, struct device *dev,
goto out;
}
+ if (info->flags & MSI_ALLOC_FLAGS_PROXY_DEVICE)
+ its_dev->shared = true;
+
pr_debug("ITT %d entries, %d bits\n", nvec, ilog2(nvec));
out:
mutex_unlock(&its->dev_alloc_lock);