irqchip/gic-v2m: Register the frame's PA instead of its VA in fwnode
authorMarc Zyngier <maz@kernel.org>
Wed, 31 Jul 2019 15:13:42 +0000 (16:13 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 7 Aug 2019 13:24:37 +0000 (14:24 +0100)
Do not expose the frame's VA (it appears in debugfs). Instead,
record the PA, which at least can be used to precisely identify
the associated irqchip and domain.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Zyngier <maz@kernel.org>
drivers/irqchip/irq-gic-v2m.c

index 7338f90..e88e75c 100644 (file)
@@ -525,7 +525,7 @@ acpi_parse_madt_msi(union acpi_subtable_headers *header,
                        spi_start, nr_spis);
        }
 
-       fwnode = irq_domain_alloc_fwnode((void *)m->base_address);
+       fwnode = irq_domain_alloc_fwnode(&res.start);
        if (!fwnode) {
                pr_err("Unable to allocate GICv2m domain token\n");
                return -EINVAL;