From patchwork Fri Aug 15 13:22:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 35464 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4B83F203C5 for ; Fri, 15 Aug 2014 13:25:52 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id x3sf6862970qcv.10 for ; Fri, 15 Aug 2014 06:25:52 -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: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=TDtXhNuESzNqSGMRsMWyRroO6GsyQdpTVKmbpCYWxio=; b=m7maqmAaKCKMYZT3FOWnl7z1/Ve360DcH+Tcg5hfyMCERYVcSsVkZ3X1NDBMxmH0+J HwyqRwtlQ1O59/lxsKqwrscEr0jL2glrhYYth3zwkFOECRY0lHnrzvIBYE+g8nZUJD9n HvMu9QlVDZtfVI2ZfJDacGjgE/QuUA+UCji8UO+3ZMgP+ZGT/4D6ubx/7T/JKXCoHYW7 EaULvf62sR3UxxIcm5Y6mchfi8Feb6f8ddjDSfitFN7LjiG7TVhQY/q+zE8oFFmnv00a Bp4ZEq4jyR+UfCgj1J09Bqm8e21LGrY2zDCBhwOs2N4Qk8z13+u0Iv0smhfeDi5E2sSk A1bQ== X-Gm-Message-State: ALoCoQkOxbUnFjNzHPmq6gyvpkcUhPxAgrkUKSI82kV29HbVY3kyb/kSbKA3HlkA6Kw+neoffY5T X-Received: by 10.236.101.148 with SMTP id b20mr5882802yhg.46.1408109152122; Fri, 15 Aug 2014 06:25:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.171 with SMTP id 40ls1412157qgb.10.gmail; Fri, 15 Aug 2014 06:25:51 -0700 (PDT) X-Received: by 10.224.22.134 with SMTP id n6mr27256616qab.27.1408109151884; Fri, 15 Aug 2014 06:25:51 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id m6si11821555qao.36.2014.08.15.06.25.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Aug 2014 06:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so2955734vcb.33 for ; Fri, 15 Aug 2014 06:25:51 -0700 (PDT) X-Received: by 10.52.32.230 with SMTP id m6mr231532vdi.74.1408109151647; Fri, 15 Aug 2014 06:25:51 -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.221.37.5 with SMTP id tc5csp112398vcb; Fri, 15 Aug 2014 06:25:51 -0700 (PDT) X-Received: by 10.69.31.65 with SMTP id kk1mr9887805pbd.162.1408109150607; Fri, 15 Aug 2014 06:25:50 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id hd9si8409679pac.147.2014.08.15.06.25.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Aug 2014 06:25:47 -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 1XIHTO-0004kL-J6; Fri, 15 Aug 2014 13:23:14 +0000 Received: from mail-lb0-f177.google.com ([209.85.217.177]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XIHTL-0004YD-2O for linux-arm-kernel@lists.infradead.org; Fri, 15 Aug 2014 13:23:11 +0000 Received: by mail-lb0-f177.google.com with SMTP id s7so1966577lbd.36 for ; Fri, 15 Aug 2014 06:22:48 -0700 (PDT) X-Received: by 10.152.87.164 with SMTP id az4mr12222999lab.25.1408108968187; Fri, 15 Aug 2014 06:22:48 -0700 (PDT) Received: from localhost ([195.238.92.128]) by mx.google.com with ESMTPSA id l7sm12751868lbj.13.2014.08.15.06.22.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Aug 2014 06:22:47 -0700 (PDT) From: Semen Protsenko To: matt.fleming@intel.com, x86@kernel.org Subject: [PATCH v2] efi/arm64: store Runtime Services revision Date: Fri, 15 Aug 2014 16:22:44 +0300 Message-Id: <1408108964-28650-1-git-send-email-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.0.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140815_062311_297969_631C7E6F X-CRM114-Status: UNSURE ( 8.93 ) 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.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.217.177 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.177 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: linux-efi@vger.kernel.org, ard.biesheuvel@linaro.org, catalin.marinas@arm.com, leif.lindholm@linaro.org, roy.franz@linaro.org, msalter@redhat.com, linux-arm-kernel@lists.infradead.org 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: semen.protsenko@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.220.174 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 "efi" global data structure contains "runtime_version" field which must be assigned in order to use it later in Runtime Services virtual calls (virt_efi_* functions). Before this patch "runtime_version" was unassigned (0), so each Runtime Service virtual call that checks revision would fail. Signed-off-by: Semen Protsenko Acked-by: Ard Biesheuvel --- arch/arm64/kernel/efi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c index e72f310..5dbb7bd 100644 --- a/arch/arm64/kernel/efi.c +++ b/arch/arm64/kernel/efi.c @@ -463,6 +463,8 @@ static int __init arm64_enter_virtual_mode(void) efi_native_runtime_setup(); set_bit(EFI_RUNTIME_SERVICES, &efi.flags); + efi.runtime_version = efi.systab->hdr.revision; + return 0; err_unmap: