From patchwork Wed Oct 22 14:21:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 39312 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D7FBF202DB for ; Wed, 22 Oct 2014 14:24:59 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id p9sf2084910lbv.0 for ; Wed, 22 Oct 2014 07:24:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=Jlf3hupV18IKB9BjegsyK05oGOYJgKRPWhEceGnRwh4=; b=MIyVEhAKSf8N0ffJHA8DZN/rhLEzND1lwgionOeDNyzbGS+PyV7dmDLNBm4wjko8Mm DAoKg9bKY+2WEELxpO++4UV7b1smVbvAgBNpxo+Fd9fqW6XWo/mL6rXLGx0dgol/Ug5q LufSGa5+9kIRkLT8NOn8fvvofY6/yyrvskZ9PIwocAV7d2K8/zX14lPD3+nNO1Ve/gKv Q/siVKqkEGSUCa100igEeTOVxOlX6MoiiTc7S+gW17m93bnNimLMU9P3sD3Bmujns/qW AZetrgZ5SRm8sJvz3T3MKX87qJ7Pn8nPN4/c0G3KWVba1+3PTQqNUbDU4AKi2cLUa9eL fmAw== X-Gm-Message-State: ALoCoQkIDo2+lsjVFrHc1a40SPZCwMWQV+6NRPKQe+BZ5n4FBdFhpjqYYxJ2xeALRwMvYicpYoo3 X-Received: by 10.112.146.104 with SMTP id tb8mr119006lbb.22.1413987898618; Wed, 22 Oct 2014 07:24:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.68 with SMTP id p4ls207828laa.52.gmail; Wed, 22 Oct 2014 07:24:58 -0700 (PDT) X-Received: by 10.152.30.33 with SMTP id p1mr23469747lah.78.1413987898465; Wed, 22 Oct 2014 07:24:58 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id c10si23525484lab.76.2014.10.22.07.24.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Oct 2014 07:24:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so2981896lbv.35 for ; Wed, 22 Oct 2014 07:24:58 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr42325233lbb.46.1413987898369; Wed, 22 Oct 2014 07:24:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp82277lbz; Wed, 22 Oct 2014 07:24:57 -0700 (PDT) X-Received: by 10.66.141.70 with SMTP id rm6mr42696438pab.38.1413987896901; Wed, 22 Oct 2014 07:24:56 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id hr10si14431065pad.51.2014.10.22.07.24.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Oct 2014 07:24:56 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xgwp7-0000bc-Af; Wed, 22 Oct 2014 14:23:37 +0000 Received: from mail-wg0-f42.google.com ([74.125.82.42]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgwoE-00007u-Qn for linux-arm-kernel@lists.infradead.org; Wed, 22 Oct 2014 14:22:43 +0000 Received: by mail-wg0-f42.google.com with SMTP id z12so3814768wgg.1 for ; Wed, 22 Oct 2014 07:22:20 -0700 (PDT) X-Received: by 10.180.207.226 with SMTP id lz2mr37350942wic.46.1413987740610; Wed, 22 Oct 2014 07:22:20 -0700 (PDT) Received: from ards-macbook-pro.local (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id 10sm19063250wjs.21.2014.10.22.07.22.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Oct 2014 07:22:19 -0700 (PDT) From: Ard Biesheuvel To: leif.lindholm@linaro.org, roy.franz@linaro.org, msalter@redhat.com, mark.rutland@arm.com, will.deacon@arm.com, catalin.marinas@arm.com, matt.fleming@intel.com, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dyoung@redhat.com, yi.li@linaro.org Subject: [PATCH 04/10] arm64/efi: reserve regions of type ACPI_MEMORY_NVS Date: Wed, 22 Oct 2014 16:21:47 +0200 Message-Id: <1413987713-30528-5-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1413987713-30528-1-git-send-email-ard.biesheuvel@linaro.org> References: <1413987713-30528-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141022_072243_013016_0E0A4810 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.42 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.42 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Memory regions of type ACPI_MEMORY_NVS should be preserved by the OS, so make sure we reserve them at boot. Signed-off-by: Ard Biesheuvel --- arch/arm64/kernel/efi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c index 95c49ebc660d..71ea4fc0aa8a 100644 --- a/arch/arm64/kernel/efi.c +++ b/arch/arm64/kernel/efi.c @@ -132,6 +132,7 @@ static __init int is_reserve_region(efi_memory_desc_t *md) return 1; if (md->type == EFI_ACPI_RECLAIM_MEMORY || + md->type == EFI_ACPI_MEMORY_NVS || md->type == EFI_RESERVED_TYPE) return 1;