Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1302918ybb; Fri, 10 Apr 2020 23:41:33 -0700 (PDT) X-Google-Smtp-Source: APiQypJRkfvVj8zo/6BHmt0gNt0Wtu/jeZezULEFrSWYNjrLZ6g0ASzBLpucp+1r/fAgcrXFgz68 X-Received: by 2002:a37:6e46:: with SMTP id j67mr7161218qkc.155.1586587293127; Fri, 10 Apr 2020 23:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586587293; cv=none; d=google.com; s=arc-20160816; b=GkuIFWpOs4asAemtqnyyi9cdIHSEPGriqolLBhaXGitkg4cNN31i3NTPY/GK24j5ix n0SqUYynLkPAJUZHDYds2GuKRFreatw0TyC5SkDXYysUoO0oo6cRl+LwfUzZE6YyhtsC jxxJZZ9RM8sGiqDhProoKcF+fbuG0qNqCq5MAkOd/iUeNsVn+wdvwc6yXr8Rj41uYyhs cvbPYQyUSg0c4WP3y+BI0cRjRxFE51/h0JTnxHZptWsgwJSoNAjSa3wS4zVLd8Mf6GV8 Nvl3X2A03WQeklu8JmCMSdnLiA4N71S6APQ6rfVzA/sofz0AXTG/TVB3MLAz2XFUxwKk 2HJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HWHJPILduYQ1xyphNec7DOITk86Vn5G/w09Haiir/sA=; b=yaR6ADjHbpBRYaFc4GU9T+HQChQezmZHCAAXbyYl19zgnz9NuAKWV/JmCyATBNdots jMUzOMmPlqlOUvYlKe7F3xmLSUXNMqjAJpenaD5I0YD8Bpzl2vsOoGoeH3vpa+dmZ2WZ dYhKCayBmPg6yhNW9FryqfLiwXnJWIZHQfxUEQwh0+QtcDc/uogaJh0MQ1ajas1K/eiB ApO86NjDf95hfedASH38YwA3GSlc6Xa1ESokvwebZVdnw0UQicsXVmN6iqEFSoyJNAWJ JDutA77ZgaLYCtOT3vhlTnE8x6I5OgptvVKG4JfxG8l0IoaRkmTeZofdgwf7x5oMs0YD scJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2bxSJTfw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si1361819qtq.402.2020.04.10.23.41.19; Fri, 10 Apr 2020 23:41:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2bxSJTfw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726010AbgDKGjM (ORCPT + 99 others); Sat, 11 Apr 2020 02:39:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:42364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgDKGjM (ORCPT ); Sat, 11 Apr 2020 02:39:12 -0400 Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E308220B1F; Sat, 11 Apr 2020 06:39:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586587152; bh=HWHJPILduYQ1xyphNec7DOITk86Vn5G/w09Haiir/sA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=2bxSJTfwvDlWdTGtWjUGaQVjdIAW3wlH2dnhCg+UsVP+/XJVPW+UQSV2VyMX7vDB5 U5cSy1RBE+wsMLEQlxLCJ8QVLSPWC0KMZC5pEVGpJnkggl2weuJFfnDVNvsFouSrTj EdTCPYGwoEujo/7RJXpC8G/wsKU6a/EB3niZFn+E= Received: by mail-io1-f53.google.com with SMTP id f19so3860394iog.5; Fri, 10 Apr 2020 23:39:11 -0700 (PDT) X-Gm-Message-State: AGi0PuZd4R8iQjmVAsnO9idJeGqqbHwulcmwPiRbeHL7pbrDzXtCRxNA ebmGyPPJe4p9VWb3UvMhyc8ftDjY0rZRjh5vvZU= X-Received: by 2002:a02:7785:: with SMTP id g127mr7528307jac.134.1586587151371; Fri, 10 Apr 2020 23:39:11 -0700 (PDT) MIME-Version: 1.0 References: <1586468669-21456-1-git-send-email-victor.erminpour@oracle.com> In-Reply-To: From: Ard Biesheuvel Date: Sat, 11 Apr 2020 08:39:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] efi/libstub/arm64: Enable __efistub_global define in .data section To: Victor Erminpour , Arvind Sankar Cc: linux-efi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 11 Apr 2020 at 00:12, Victor Erminpour wrote: > > > > On 4/10/20 1:09 AM, Ard Biesheuvel wrote: > > On Thu, 9 Apr 2020 at 23:44, Victor Erminpour > > wrote: > >> > >> Enable the __efistub_global define to place variables in the > >> .data section for both CONFIG_ARM and CONFIG_ARM64. > >> > >> This places the EFIstub sys_table variable and other EFIstub > >> static variables in the .data section for both CONFIG_ARM and > >> CONFIG_ARM64. > >> > > > > What does that achieve? > > Hi Ard, > > Without placing these global variables in .data, I get the > following errors when booting an ARM64 EFI system: > > EFI stub: ERROR: Exit boot services failed. > EFI stub: ERROR: Failed to update FDT and exit boot services > Which boot loader are you using? Does this involve shim? Also, does it help if you add 'efi=no_disable_early_pci_dma'? > > I know that the ARM64 linker script is supposed to put the > .init.bss into the .init.data section, but I don't think this > is happening for all systems. > > Having it explicitly enabled for CONFIG_ARM64 worked for me. > OK, thanks for the report. However, we will be removing __efistub_global entirely during the next cycle, so this is not the right fix.