hw/arm/virt-acpi-build: _CCA attribute is compulsary
PATCH 1/1 hw/arm/virt-acpi-build: _CCA attribute is compulsary
According to ACPI specification 6.2.17 _CCA (Cache Coherency Attribute) this attribute is compulsary on ARM systems. Add this attribute to the PCI host bridges as required.
Without this the kernel will produce the error [Firmware Bug]: PCI device 0000:00:00.0 fail to setup DMA.
--- hw/arm/virt-acpi-build.c | 1 + 1 file changed, 1 insertion(+)
hw/arm/virt-acpi-build.c +1 -0
@@ -180,6 +180,7 @@ static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap, int irq,aml_append (dev,aml_name_decl ("_ADR" ,aml_int (0 )));aml_append (dev,aml_name_decl ("_UID" ,aml_string ("PCI0" )));aml_append (dev,aml_name_decl ("_STR" ,aml_unicode ("PCIe 0 Device" ))); +aml_append (dev,aml_name_decl ("_CCA" ,aml_int (1 )));/* Declare the PCI Routing Table. */ Aml *rt_pkg =aml_package (nr_pcie_buses *PCI_NUM_PINS );
Signature · 1 line
2.4.3
Hi Graeme,
Quoted 4 lines · Graeme Gregory
According to ACPI specification 6.2.17
_CCA(Cache Coherency Attribute) this attribute is compulsary on ARM systems. Add this attribute to the PCI host bridges as required.
To ACPI 5.1 this object is not compulsory and if not supplied it has default value for it. But to ACPI 6.0 it must be supplied on ARM systems. Regarding this change, ACPI 6.0 fixes 5.1 for this object, right?
Quoted 21 lines
Without this the kernel will produce the error [Firmware Bug]: PCI device 0000:00:00.0 fail to setup DMA.
Signed-off-by Graeme Gregory <[email protected]>--- hw/arm/virt-acpi-build.c | 1 + 1 file changed, 1 insertion(+)hw/arm/virt-acpi-build.c +1
-0@@ -180,6 +180,7 @@ static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap, int irq,aml_append (dev,aml_name_decl ("_ADR" ,aml_int (0 )));aml_append (dev,aml_name_decl ("_UID" ,aml_string ("PCI0" )));aml_append (dev,aml_name_decl ("_STR" ,aml_unicode ("PCIe 0 Device" ))); +aml_append (dev,aml_name_decl ("_CCA" ,aml_int (1 )));/* Declare the PCI Routing Table. */ Aml *rt_pkg =aml_package (nr_pcie_buses *PCI_NUM_PINS );
Signature · 1 line
Shannon
Quoted 12 lines · Shannon Zhao
Hi Graeme,
Quoted 4 lines · Graeme Gregory
According to ACPI specification 6.2.17
_CCA(Cache Coherency Attribute) this attribute is compulsary on ARM systems. Add this attribute to the PCI host bridges as required.To ACPI 5.1 this object is not compulsory and if not supplied it has default value for it. But to ACPI 6.0 it must be supplied on ARM systems. Regarding this change, ACPI 6.0 fixes 5.1 for this object, right?
Hi Shannon, the wording in ACPI 5.1 is "On ARM based systems, the _CCA object must be supplied all such devices."
So is not functionally different from 6.0.
Graeme
Quoted 26 lines
Quoted 21 lines
Without this the kernel will produce the error [Firmware Bug]: PCI device 0000:00:00.0 fail to setup DMA.
Signed-off-by Graeme Gregory <[email protected]>--- hw/arm/virt-acpi-build.c | 1 + 1 file changed, 1 insertion(+)hw/arm/virt-acpi-build.c +1
-0@@ -180,6 +180,7 @@ static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap, int irq,aml_append (dev,aml_name_decl ("_ADR" ,aml_int (0 )));aml_append (dev,aml_name_decl ("_UID" ,aml_string ("PCI0" )));aml_append (dev,aml_name_decl ("_STR" ,aml_unicode ("PCIe 0 Device" ))); +aml_append (dev,aml_name_decl ("_CCA" ,aml_int (1 )));/* Declare the PCI Routing Table. */ Aml *rt_pkg =aml_package (nr_pcie_buses *PCI_NUM_PINS );Signature · 1 line
Shannon
Shannon Zhao
Reviewed-byQuoted 16 lines · Graeme Gregory
Quoted 12 lines · Shannon Zhao
Hi Graeme,
Quoted 4 lines · Graeme Gregory
According to ACPI specification 6.2.17
_CCA(Cache Coherency Attribute) this attribute is compulsary on ARM systems. Add this attribute to the PCI host bridges as required.To ACPI 5.1 this object is not compulsory and if not supplied it has default value for it. But to ACPI 6.0 it must be supplied on ARM systems. Regarding this change, ACPI 6.0 fixes 5.1 for this object, right?
Quoted 5 lines
Hi Shannon, the wording in ACPI 5.1 is "On ARM based systems, the
_CCAobject must be supplied all such devices."So is not functionally different from 6.0.
Oh, I see. It's updated by 5.1 Errata 1189.
Quoted 28 lines
Graeme
Quoted 26 lines
Quoted 21 lines
Without this the kernel will produce the error [Firmware Bug]: PCI device 0000:00:00.0 fail to setup DMA.
Signed-off-by Graeme Gregory <[email protected]>--- hw/arm/virt-acpi-build.c | 1 + 1 file changed, 1 insertion(+)hw/arm/virt-acpi-build.c +1
-0@@ -180,6 +180,7 @@ static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap, int irq,aml_append (dev,aml_name_decl ("_ADR" ,aml_int (0 )));aml_append (dev,aml_name_decl ("_UID" ,aml_string ("PCI0" )));aml_append (dev,aml_name_decl ("_STR" ,aml_unicode ("PCIe 0 Device" ))); +aml_append (dev,aml_name_decl ("_CCA" ,aml_int (1 )));/* Declare the PCI Routing Table. */ Aml *rt_pkg =aml_package (nr_pcie_buses *PCI_NUM_PINS );Signature · 1 line
Shannon
Signature · 1 line
Shannon
Peter Maydell
AppliedQuoted 19 lines · Shannon Zhao
Quoted 16 lines · Graeme Gregory
Quoted 12 lines · Shannon Zhao
Hi Graeme,
Quoted 4 lines · Graeme Gregory
According to ACPI specification 6.2.17
_CCA(Cache Coherency Attribute) this attribute is compulsary on ARM systems. Add this attribute to the PCI host bridges as required.To ACPI 5.1 this object is not compulsory and if not supplied it has default value for it. But to ACPI 6.0 it must be supplied on ARM systems. Regarding this change, ACPI 6.0 fixes 5.1 for this object, right?
Quoted 8 lines
Quoted 5 lines
Hi Shannon, the wording in ACPI 5.1 is "On ARM based systems, the
_CCAobject must be supplied all such devices."So is not functionally different from 6.0.
Oh, I see. It's updated by 5.1 Errata 1189.
Reviewed-by Shannon Zhao <[email protected]>
Applied to target-arm.next, thanks.
-- PMM