From patchwork Sat May 21 18:43:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 9130625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AE22F60761 for ; Sat, 21 May 2016 18:44:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 801CB28145 for ; Sat, 21 May 2016 18:44:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72EBE28160; Sat, 21 May 2016 18:44:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C96228145 for ; Sat, 21 May 2016 18:44:05 +0000 (UTC) Received: from localhost ([::1]:40963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4BsZ-0004QZ-JO for patchwork-qemu-devel@patchwork.kernel.org; Sat, 21 May 2016 14:44:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4BsL-0004QN-GZ for qemu-devel@nongnu.org; Sat, 21 May 2016 14:43:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4BsH-0006BG-Bp for qemu-devel@nongnu.org; Sat, 21 May 2016 14:43:48 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:37861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4BsG-0006BC-UE for qemu-devel@nongnu.org; Sat, 21 May 2016 14:43:45 -0400 Received: by mail-wm0-x22e.google.com with SMTP id z87so115758wmh.0 for ; Sat, 21 May 2016 11:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ya1JpNUI1QUsgPAc2iX+68IYZn4i5gCwkfnIMr3R0oo=; b=ZFox9kIw/wxe/zza2gppImqJYZxBHlszjphQpnKdUREfAeY1YMYuGoNquuyUntGsR0 5Jj7ldEaVmy4IPLSCqebWHpCOeXx4uAy4dU123KmzghF/FycpUunFl0p3+6RratU+vUc oeIePHqMZukx66umNz0VzTK6D1Wj+AG3b9IXA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ya1JpNUI1QUsgPAc2iX+68IYZn4i5gCwkfnIMr3R0oo=; b=E/jwZy2bkgmqbWzpUujuKEjkbh9+4iTEeIo1c7Sacg9HRcuLc1RjkMpwzffLarQYT4 Y1PvbVFCQKecrLDS820PYu7ffEPYAOmawuBrlkS81CU7ixizu/L17TPaz2xtQjRpsDQz bkHqwHrsxHANiDie+mjuXxNCsanXyiKO+Gr6eRQoBX2PTMGp+ZtJdY6ZzzkiUw+vqgOn 3oaTDFsTWcfgISSmmZRQYP1PFI0VbEHxvDCau57ge2a+INxxg+2BtABJCB624q2p8T43 wgYFYHoSlX6svT9XuTMKPTq1EJ4sEP60yiGzJt0F1oIqJCkxY5nL88zyksPPudwbcSGf xZiQ== X-Gm-Message-State: AOPr4FUCyh9cK+PBWgNFbW1hFqgNEIuoTi8gX3EWD/tXLuv0agn1DZqdLW/qNqPdtMqTZ8mN X-Received: by 10.28.150.211 with SMTP id y202mr9601983wmd.41.1463856223834; Sat, 21 May 2016 11:43:43 -0700 (PDT) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id k62sm4541197wmb.7.2016.05.21.11.43.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 21 May 2016 11:43:43 -0700 (PDT) From: Ard Biesheuvel To: qemu-devel@nongnu.org Date: Sat, 21 May 2016 20:43:37 +0200 Message-Id: <1463856217-17969-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.9.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22e Subject: [Qemu-devel] [PATCH] hw/arm/virt: fix limit of 64-bit ACPI/ECAM PCI MMIO range X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, p.fedin@samsung.com, Ard Biesheuvel Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Set the MMIO range limit field to 'base + size - 1' as required. Signed-off-by: Ard Biesheuvel Reviewed-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index f51fe396ce9c..60a70370dd96 100644 --- a/hw/arm/virt-acpi-build.c +++ b/hw/arm/virt-acpi-build.c @@ -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)); }