From nobody Sun May 5 04:44:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+39326+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39326+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1555683210; cv=none; d=zoho.com; s=zohoarc; b=CFFauXp3CzB4oHUsFR4VGSrxDZUGDikQdNfImFcVAclpDWMRH1D4hqFje7vGqUj93vciZK+GhEeSAgMnLIBiNzl6VucJgmO/rJVcJ3Kw+eQxaUtlpXIO3/QLzzZji7TtNIUsrUQEcpoL93RBG7Bn8dzX/P4l+OPt3ocbvqfiwXE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555683210; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=dhy85sAwixVy3tKA+W3OG8JxsLJPTAiGt3rTS6KCS3k=; b=DSvBSDGd6MN8Yv7UyzebuRyv7mRhdCeKMUS5wbMSclNmcdxQ9B6oU3l4QX4e21NVZblZvQV3fSAUuD/ZrJT3v5HXjZIMF6oBo/8g1cgaUOeZloiOuXVnItNyjquz7h8hJv9P/f7RRy4qgxzhZ+sGqC2gM2F9JoG77YGwonsqZNY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+39326+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1555683210076766.4418168827552; Fri, 19 Apr 2019 07:13:30 -0700 (PDT) Return-Path: X-Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by groups.io with SMTP; Fri, 19 Apr 2019 07:13:28 -0700 X-Received: by mail-wr1-f67.google.com with SMTP id s15so7072766wra.12 for ; Fri, 19 Apr 2019 07:13:28 -0700 (PDT) X-Gm-Message-State: APjAAAV/MvbY2tE5ysP44bSCEntFLim+o5AWTKzt1S4zVLeUzpn4CXCz fkFCXIGE11lW6xvpKSBk3M8oEvwbLWywHdvb X-Google-Smtp-Source: APXvYqxACWZS2wXGvSPUrSjL7Fau+K+B6SVJ62vwHtl8yzugJKp01ZXM3awbWEQX7moMhatbtFBblw== X-Received: by 2002:adf:ec87:: with SMTP id z7mr3186300wrn.44.1555683206339; Fri, 19 Apr 2019 07:13:26 -0700 (PDT) X-Received: from sudo.home ([2a01:cb1d:112:6f00:6d50:e4de:ed13:846f]) by smtp.gmail.com with ESMTPSA id a22sm5200723wmj.44.2019.04.19.07.13.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 07:13:24 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: ming.huang@linaro.org, hao.a.wu@intel.com, jian.j.wang@intel.com, Ard Biesheuvel Subject: [edk2-devel] [PATCH resend] MdeModulePkg/EsrtDxe: allocate ESRT table from RtServicesData memory Date: Fri, 19 Apr 2019 16:13:19 +0200 Message-Id: <20190419141319.11084-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ard.biesheuvel@linaro.org Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1555683209; bh=mE31jUehpmUffWd57KtrSX7dqtlk2PDWOCZp1KRO1wo=; h=Cc:Date:From:Reply-To:Subject:To; b=chvtuCQ9j20ve3BCS7DnQmD+spCZTmlrvrkZ5yMZyP5OLA0VzfIofJT+1akoJ5HC122 NB0PrhqFN0ZVSM3OdFua1kHdXNoVKjdSSzthSAVWqCtb6dg20N6IuCIEFzFtvpnvMvjiG J3wp8zJIhj2cm7M7tzwlFczGfP317ZxyODg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Given that the firmware itself may access the ESRT table when the OS invokes the UpdateCapsule () boot service, it requires a virtual mapping and so it needs to be allocated from RtServicesData memory. Signed-off-by: Ard Biesheuvel --- MdeModulePkg/Universal/EsrtDxe/EsrtDxe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/EsrtDxe/EsrtDxe.c b/MdeModulePkg/Univer= sal/EsrtDxe/EsrtDxe.c index a386a9770583..1741cbe8f2b5 100644 --- a/MdeModulePkg/Universal/EsrtDxe/EsrtDxe.c +++ b/MdeModulePkg/Universal/EsrtDxe/EsrtDxe.c @@ -571,7 +571,8 @@ EsrtReadyToBootEventNotify ( goto EXIT; } =20 - EsrtTable =3D AllocatePool(sizeof(EFI_SYSTEM_RESOURCE_TABLE) + NonFmpRep= ositorySize + FmpRepositorySize); + EsrtTable =3D AllocateRuntimePool (sizeof(EFI_SYSTEM_RESOURCE_TABLE) + + NonFmpRepositorySize + FmpRepositorySiz= e); if (EsrtTable =3D=3D NULL) { DEBUG ((EFI_D_ERROR, "Esrt table memory allocation failure\n")); goto EXIT; --=20 2.20.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#39326): https://edk2.groups.io/g/devel/message/39326 Mute This Topic: https://groups.io/mt/31245843/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-