Received: from eggs.gnu.org ([2001:4830:134:3::10]:54615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtX0X-0000hq-RN for qemu-devel@nongnu.org; Tue, 03 Nov 2015 03:31:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtX0T-0000fh-C4 for qemu-devel@nongnu.org; Tue, 03 Nov 2015 03:31:57 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:47608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtX0T-0000f5-5m for qemu-devel@nongnu.org; Tue, 03 Nov 2015 03:31:53 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6E45021006 for ; Tue, 3 Nov 2015 03:31:51 -0500 (EST) Message-Id: <1446539511.1825702.427559105.54F9F183@webmail.messagingengine.com> From: Graeme Gregory MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Date: Tue, 03 Nov 2015 08:31:51 +0000 In-Reply-To: <56381B26.6010900@huawei.com> References: <1446460786-13663-1-git-send-email-graeme.gregory@linaro.org> <56381B26.6010900@huawei.com> Subject: Re: [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: Shannon Zhao , Graeme Gregory , qemu-devel@nongnu.org Cc: shannon.zhao@linaro.org, tomasz.nowicki@linaro.org On Tue, 3 Nov 2015, at 02:25 AM, Shannon Zhao wrote: > Hi Graeme, > > On 2015/11/2 18:39, Graeme Gregory wrote: > > 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 > > 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); > > > > -- > Shannon > >