Skip to contentSkip to conversation

hw/arm/virt: fix limit of 64-bit ACPI/ECAM PCI MMIO range

PATCH Applied Ard Biesheuvel 4 participants 4 messages May 21, 2016 – May 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm/virt: fix limit of 64-bit ACPI/ECAM PCI MMIO range

Set the MMIO range limit field to 'base + size - 1' as required.

---
 hw/arm/virt-acpi-build.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/arm/virt-acpi-build.c +2 -1
index f51fe396ce9c..60a70370dd96 100644
@@ -230,7 +230,8 @@ static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap,
         aml_append(rbuf,
             aml_qword_memory(AML_POS_DECODE, AML_MIN_FIXED, AML_MAX_FIXED,
                              AML_NON_CACHEABLE, AML_READ_WRITE, 0x0000,
-                             base_mmio_high, base_mmio_high, 0x0000,
+                             base_mmio_high,
+                             base_mmio_high + size_mmio_high - 1, 0x0000,
                              size_mmio_high));
     }
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · Ard Biesheuvel

Set the MMIO range limit field to 'base + size - 1' as required.

---
 hw/arm/virt-acpi-build.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/arm/virt-acpi-build.c +0 -0
index f51fe396ce9c..60a70370dd96 100644

hw/arm/virt-acpi-build.c static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap, · line 237

Quoted 9 lines
hw/arm/virt-acpi-build.c +2 -1
@@ -230,7 +230,8 @@ static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap,
         aml_append(rbuf,
             aml_qword_memory(AML_POS_DECODE, AML_MIN_FIXED, AML_MAX_FIXED,
                              AML_NON_CACHEABLE, AML_READ_WRITE, 0x0000,
-                             base_mmio_high, base_mmio_high, 0x0000,
+                             base_mmio_high,
+                             base_mmio_high + size_mmio_high - 1, 0x0000,
                              size_mmio_high));
     }
 
$ scripts/get_maintainer.pl -f hw/arm/virt-acpi-build.c

"Michael S. Tsirkin" <[email protected]> (supporter:ACPI/SMBIOS) Igor Mammedov <[email protected]> (supporter:ACPI/SMBIOS) Shannon Zhao <[email protected]> (maintainer:ARM ACPI Subsystem) Peter Maydell <[email protected]> (maintainer:ARM) [email protected] (open list:ARM ACPI Subsystem) [email protected] (open list:All patches CC here)

For this patch specifically, I'm CC'ing Shannon.

Thanks
Laszlo

Reviewed-by
#2 lore raw
Quoted 4 lines · Laszlo Ersek
Quoted 3 lines · Ard Biesheuvel

Set the MMIO range limit field to 'base + size - 1' as required.

Quoted 22 lines
Quoted 10 lines
---
 hw/arm/virt-acpi-build.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/arm/virt-acpi-build.c +0 -0
index f51fe396ce9c..60a70370dd96 100644

hw/arm/virt-acpi-build.c static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap, · line 237

Quoted 9 lines
hw/arm/virt-acpi-build.c +2 -1
@@ -230,7 +230,8 @@ static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap,
         aml_append(rbuf,
             aml_qword_memory(AML_POS_DECODE, AML_MIN_FIXED, AML_MAX_FIXED,
                              AML_NON_CACHEABLE, AML_READ_WRITE, 0x0000,
-                             base_mmio_high, base_mmio_high, 0x0000,
+                             base_mmio_high,
+                             base_mmio_high + size_mmio_high - 1, 0x0000,
                              size_mmio_high));
     }
 
$ scripts/get_maintainer.pl -f hw/arm/virt-acpi-build.c
Quoted 9 lines

"Michael S. Tsirkin" <[email protected]> (supporter:ACPI/SMBIOS) Igor Mammedov <[email protected]> (supporter:ACPI/SMBIOS) Shannon Zhao <[email protected]> (maintainer:ARM ACPI Subsystem) Peter Maydell <[email protected]> (maintainer:ARM) [email protected] (open list:ARM ACPI Subsystem) [email protected] (open list:All patches CC here)

For this patch specifically, I'm CC'ing Shannon.

Thanks, Laszlo :)

Signature · 1 line
Shannon