Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4405207ybb; Tue, 14 Apr 2020 06:43:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLT2PiZAq2om3eXpISWIjxZRPr46EOQc4yiFbjVGqZTaVhKWM08UKmW0DjnFFRkPRnFjKov X-Received: by 2002:a17:906:1fd6:: with SMTP id e22mr184645ejt.150.1586871785291; Tue, 14 Apr 2020 06:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586871785; cv=none; d=google.com; s=arc-20160816; b=CYEsH7qdwSo1iC8VBE6XneX6Tg2k918RQnqdCNkvjhiRpqLMF00U0uyCM3PxLmU4nr 2f/gW1PUruX1oeItGtkTs7iWkWKHUNO0M481kTBzHZBPZzcGQ5b9DQS033EkOR2Mb5jA fwQvctmTi6RJ5a6lDw4dVCEYBH9vztRODA1eLn329B9sSyjUDOIVOVJGZDb+F/tJtn90 qYAzEn/qSuOmJs8O1LPVlKW5Ll6VmQdCP592i52UjPM076yZ/Amp0GN72m/V4YFWFVZI rSrpTSNLGpmZeopNJOH1lqBdm4aPDvyu5hFNeTizXpKiZ/b5O97ZW8fklUSFJcnpKlK/ Pc9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=kUafvIvIPEKhK0ZXAQkw9p3e5TfvCeEnK9SeWV6yrHg=; b=RNFfrbnBMa19DCVHpkLSs+18IINZ4g2r4JSxBIwQa77O3qyK6zmuXAJgDoaXi68rOq 5Ef9XZUm7zbXRvgEyFI9d38846VSymmIg0mZdp3Ty25VAKiR+4JG+1Kw2inlTVlAeI8N deRQ1lulm1e2chfW0gTm/Q5NvO4Z7QCSZyPT4ooR3/MxVMdo/BCGuLBiXGAZsDVoyv3a sqzu8+sA11KMoi/vgwVT9sofm9mHao6+wFWSOsD5wF1UPVdiMqYxv2nLeRoNIsdgnnBV G/N/wjOFfLyMdWWJbpnebCWZVHhsK0BuHCJo3mIjFfxg083MvOBEDcQixMus47wP1OyC Yteg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=aBq0Bzhw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si5752522edi.202.2020.04.14.06.42.40; Tue, 14 Apr 2020 06:43:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=aBq0Bzhw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389811AbgDMW5K (ORCPT + 99 others); Mon, 13 Apr 2020 18:57:10 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:55490 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728050AbgDMW5E (ORCPT ); Mon, 13 Apr 2020 18:57:04 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03DMmxX5187003; Mon, 13 Apr 2020 22:56:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=kUafvIvIPEKhK0ZXAQkw9p3e5TfvCeEnK9SeWV6yrHg=; b=aBq0BzhwY30bedc966EA/bLXU7M3sR/OI7yFtL8iWYhxsiQJW1SPWAo3INkFvLot96uA pluohDXKBDF0WwGzZO//4JJfcAghjUWwh5aCmzEJnIHl2zrPzhSEvsUvXEaPoRxs0g5z BDIcAXJMZC7aejTrzc9uLanfyF2GZMnHz3kBWk0uUZZq3kMgfS7v5Ki7FYHpy7soG9e7 x1g/ZWqKlhTQIPxJnk/oJwXcorxbbkF8177UGchhjImHD6w5Opht6yuuyJRjp11CF8F7 66E7fanNgdirIl0rsq69gmyQam2AcAWQ+DNZyXYp3b+Hy7Uh6wyd48ea2rdp4vgs6F44 Pw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 30b5ar19v1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Apr 2020 22:56:59 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03DMgupn047458; Mon, 13 Apr 2020 22:56:59 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 30bqkynmxk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Apr 2020 22:56:58 +0000 Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 03DMuwm3031399; Mon, 13 Apr 2020 22:56:58 GMT Received: from [10.159.254.43] (/10.159.254.43) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 Apr 2020 15:56:57 -0700 Subject: Re: [PATCH] efi/libstub/arm64: Enable __efistub_global define in .data section To: Ard Biesheuvel , Arvind Sankar Cc: linux-efi , Linux Kernel Mailing List References: <1586468669-21456-1-git-send-email-victor.erminpour@oracle.com> From: Victor Erminpour Organization: Oracle America Message-ID: <95f421ad-6ba7-b968-d605-c464bc1df4e2@oracle.com> Date: Mon, 13 Apr 2020 15:56:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9590 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004130165 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9590 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 impostorscore=0 clxscore=1011 priorityscore=1501 malwarescore=0 phishscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004130165 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/10/20 11:39 PM, Ard Biesheuvel wrote: > 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? > grub2-efi-aa64-2.02-0.80.0.4.el7.aarch64 shim-aa64-15-1.0.4.el7.aarch64 > Also, does it help if you add 'efi=no_disable_early_pci_dma'? > Tried this boot time option, but to no effect. > >> >> 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. Thanks Ard, this sounds promising! Regards, --Victor > -- Victor Hugo Erminpour Principal Member of Technical Staff Oracle America