diff options
author | Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> | 2018-02-13 15:20:50 +0000 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-02-14 15:15:41 +0100 |
commit | 8b4282e6b8e239d8ce68ab884c89335cc6fdd7c7 (patch) | |
tree | 782cac410eacd34f3a7ebcdb2ef448e7466babdb /drivers/irqchip | |
parent | 193e67c00e33e188d68815fb78806317c77f156c (diff) | |
download | talos-obmc-linux-8b4282e6b8e239d8ce68ab884c89335cc6fdd7c7.tar.gz talos-obmc-linux-8b4282e6b8e239d8ce68ab884c89335cc6fdd7c7.zip |
ACPI/IORT: Add msi address regions reservation helper
On some platforms msi parent address regions have to be excluded from
normal IOVA allocation in that they are detected and decoded in a HW
specific way by system components and so they cannot be considered normal
IOVA address space.
Add a helper function that retrieves ITS address regions - the msi
parent - through IORT device <-> ITS mappings and reserves it so that
these regions will not be translated by IOMMU and will be excluded from
IOVA allocations. The function checks for the smmu model number and
only applies the msi reservation if the platform requires it.
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
[For the ITS part]
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-gic-v3-its.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 06f025fd5726..ab99d1bd7087 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -3450,7 +3450,8 @@ static int __init gic_acpi_parse_madt_its(struct acpi_subtable_header *header, return -ENOMEM; } - err = iort_register_domain_token(its_entry->translation_id, dom_handle); + err = iort_register_domain_token(its_entry->translation_id, res.start, + dom_handle); if (err) { pr_err("ITS@%pa: Unable to register GICv3 ITS domain token (ITS ID %d) to IORT\n", &res.start, its_entry->translation_id); |