summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-gic-v3-its.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2017-10-08 18:44:42 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2017-10-19 11:22:40 +0100
commitdebf6d02bb58a099202375ca2ba88e9775b153c6 (patch)
tree54faeeb81f5cd82c56c1ab2721192fd849688d41 /drivers/irqchip/irq-gic-v3-its.c
parent5c9a882e940dde2f3e80eb3c7635a3307be511b6 (diff)
downloadblackbird-obmc-linux-debf6d02bb58a099202375ca2ba88e9775b153c6.tar.gz
blackbird-obmc-linux-debf6d02bb58a099202375ca2ba88e9775b153c6.zip
irqchip/gic-v3-its: Track per-ITS list number
At boot time, we enumerate all the GICv4-capable ITSs, and build a mask of the available ITSs. Take this opportunity to store the ITS number in the its_node structure so that we can use it at a later time. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip/irq-gic-v3-its.c')
-rw-r--r--drivers/irqchip/irq-gic-v3-its.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index 6cc57dc142df..994f0879e7df 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -103,6 +103,7 @@ struct its_node {
u64 (*get_msi_base)(struct its_device *its_dev);
struct list_head its_device_list;
u64 flags;
+ unsigned long list_nr;
u32 ite_size;
u32 device_ids;
int numa_node;
@@ -3064,6 +3065,8 @@ static int __init its_probe_one(struct resource *res,
if (err < 0)
goto out_free_its;
+ its->list_nr = err;
+
pr_info("ITS@%pa: Using ITS number %d\n",
&res->start, err);
} else {
OpenPOWER on IntegriCloud