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: 4727331 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2CF09C0338 for ; Fri, 15 Aug 2014 13:27:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6F77E200EC for ; Fri, 15 Aug 2014 13:27:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 908702017D for ; Fri, 15 Aug 2014 13:27:18 +0000 (UTC) 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-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=RDmpNfWu50AU0Y4M6Fadux16zar/LRJSTsQFoeJjGFw=; b=hn0aZ/WvQucavA25qWx8UYHgrTCrXYrqdJPI/81OMvJb7eEZgq+o1+X618K+Xbmwvi M59lGEHFIa8P6bYZbYqkCdzRWyAnPDoBV8iACW+FEhZy418+qbBKhdHvPdabsCEQlWHT iJ3xf7Q7M+7H2gW27kGfz3CPjL+9UfPqDgmu7oub3ZwLvNdQWIY6bNFR2GePJZDPWLGi QO1cEtXjRYMO7z+daBhL/aQfdXedBjAwX3xWR1i/g8/cYSyQSZMDf0s8XdkBXrAfVed4 q/LXEj78x/DU2jmTdr5t87oXcyA3h0fyIElmNu+RL1n3Y/kl3Ryv2LaChmV/ZyQJWAaM ZyqA== X-Gm-Message-State: ALoCoQnF5LUzpsLu4tCW9JkVezHyotHUoE0OHoat0UTcTnVYWdkArhWdpH7krPWI1YiWiOrHo/j/ 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 (/) 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP "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: