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: 68310 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp484448qge; Sat, 21 May 2016 11:44:46 -0700 (PDT) X-Received: by 10.200.54.108 with SMTP id n41mr5188585qtb.18.1463856286219; Sat, 21 May 2016 11:44:46 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w191si23379683qhb.117.2016.05.21.11.44.46 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 21 May 2016 11:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4BtF-0004il-Ql for patch@linaro.org; Sat, 21 May 2016 14:44:45 -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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Set the MMIO range limit field to 'base + size - 1' as required. Signed-off-by: Ard Biesheuvel --- hw/arm/virt-acpi-build.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.9.1 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)); }