From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtCWp-0002ur-0S for qemu-devel@nongnu.org; Mon, 02 Nov 2015 05:39:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtCWl-00035S-Ps for qemu-devel@nongnu.org; Mon, 02 Nov 2015 05:39:54 -0500 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:38505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtCWl-00035K-Jr for qemu-devel@nongnu.org; Mon, 02 Nov 2015 05:39:51 -0500 Received: by wicll6 with SMTP id ll6so46882986wic.1 for ; Mon, 02 Nov 2015 02:39:50 -0800 (PST) From: Graeme Gregory Date: Mon, 2 Nov 2015 10:39:46 +0000 Message-Id: <1446460786-13663-1-git-send-email-graeme.gregory@linaro.org> Subject: [Qemu-devel] [PATCH] hw/arm/virt-acpi-build: _CCA attribute is compulsary List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Graeme Gregory , shannon.zhao@linaro.org, tomasz.nowicki@linaro.org 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. Signed-off-by: Graeme Gregory --- hw/arm/virt-acpi-build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index 1aaff1f..1430125 100644 --- a/hw/arm/virt-acpi-build.c +++ b/hw/arm/virt-acpi-build.c @@ -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); -- 2.4.3