diff options
author | Jiahui Cen | 2021-01-14 11:06:38 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2021-01-17 12:42:54 +0100 |
commit | e41ee855283b79dfd0734e573e9b8d091070190b (patch) | |
tree | f04368824e89a9cc9cea81ed42cedf0d16d86498 /include/hw/acpi | |
parent | acpi: Fix unmatched expected DSDT.pxb file (diff) | |
download | qemu-e41ee855283b79dfd0734e573e9b8d091070190b.tar.gz qemu-e41ee855283b79dfd0734e573e9b8d091070190b.tar.xz qemu-e41ee855283b79dfd0734e573e9b8d091070190b.zip |
acpi: Add addr offset in build_crs
AML needs Address Translation offset to describe how a bridge translates
addresses accross the bridge when using an address descriptor, and
especially on ARM, the translation offset of pio resource is usually
non zero.
Therefore, it's necessary to pass offset for pio, mmio32, mmio64 and bus
number into build_crs.
Acked-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Jiahui Cen <cenjiahui@huawei.com>
Message-Id: <20210114100643.10617-4-cenjiahui@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/acpi')
-rw-r--r-- | include/hw/acpi/aml-build.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index e727bea1bc..54a5aec4d7 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -452,7 +452,9 @@ void crs_replace_with_free_ranges(GPtrArray *ranges, void crs_range_set_init(CrsRangeSet *range_set); void crs_range_set_free(CrsRangeSet *range_set); -Aml *build_crs(PCIHostState *host, CrsRangeSet *range_set); +Aml *build_crs(PCIHostState *host, CrsRangeSet *range_set, uint32_t io_offset, + uint32_t mmio32_offset, uint64_t mmio64_offset, + uint16_t bus_nr_offset); void build_srat_memory(AcpiSratMemoryAffinity *numamem, uint64_t base, uint64_t len, int node, MemoryAffinityFlags flags); |