From nobody Mon May 13 08:53:48 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+107576+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107576+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1691172493; cv=none; d=zohomail.com; s=zohoarc; b=jvN3amqF/IzjT8IwzChQ5hJfvJ7pBncEPf7AtD3a+yXb3d2eKu6i8u8o36F5BSXuaDI+2xO+zWjmjqHfWhXtDLpnqMMg05gRUcaz9BI/ITDJZwgbKybwQXLAVrrkhH1K6MYsEY1QXi6bk72NpH4AjmeAahfSLNTvXqlNoCLTERM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691172493; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=eIuhbpQVudauFhE8UWtGfvVoVjV+K9cYh9T/B5zxWu0=; b=f15vBmH9Ea115xd8f+a+mZy+kVnlVi1ax0hS7g5UPu/gdn2H2WAoTcEWugp8aH7L0KTBpJxuY1gdCLnaUK2sliMJhtbrUMZHK+WHYRbjv8vHojJ+VRMVpEAVa0ELTwJ256ZgaxAKJ88OUPRYK1hgFR6i99UXa6Im6Wxb6QDHJGw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107576+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1691172493070963.1380266069568; Fri, 4 Aug 2023 11:08:13 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=6z2ngZ1amp8FFUegsczQMyp5b7wGpwk0wHasmRZ+ECQ=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1691172492; v=1; b=oad+MXhQ1GbuaWmdjj8po7VIQqenseY1fxzpRapD2hjgwjQNdonaJS2vedDDmo6KloW/g5BP U3ln24Q/3nWE8MxsDZ6oQThlZynY7QB2ezR1uAMbf5o+PtWiMtkQ24+KPJbFVzFnDi2XGpIf7My pAzNrWCda5825TdZTRkEhPJQ= X-Received: by 127.0.0.2 with SMTP id ZJ27YY1788612xZovG3cjxBb; Fri, 04 Aug 2023 11:08:12 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web11.10419.1691055025904081279 for ; Thu, 03 Aug 2023 02:30:26 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="367279741" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="367279741" X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 02:29:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="843519426" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="843519426" X-Received: from basfe006.gar.corp.intel.com ([10.66.244.178]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 02:29:11 -0700 From: chitralekha ck To: devel@edk2.groups.io Cc: chitralekha ck , Ray Ni , Zhichao Gao , Ashraf Ali S , Chinni B Duggapu Subject: [edk2-devel] [PATCH v3] MdeModulePkg: AllocatePages for TranslateBmpToGopBlt Date: Thu, 3 Aug 2023 14:59:04 +0530 Message-Id: <88dd0aaaa5fa6f6750515fe1441c167c5501947a.1691054931.git.chitralekha.ck@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: 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,chitralekha.ck@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: nnTpymeFJlAG5nOinDJn14AAx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1691172495081100037 Content-Type: text/plain; charset="utf-8" https://bugzilla.tianocore.org/show_bug.cgi?id=3D4507 AllocatePool limits to allocate memory of 64 KB at most in PEI Phase. AllocatePool() is being avoided due to its 64k allocation size limit when the library is incorporated into a PEI component. Cc: Ray Ni Cc: Zhichao Gao Cc: Ashraf Ali S Cc: Chinni B Duggapu Signed-off-by: chitralekha ck --- MdeModulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c b/MdeMo= dulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c index c5e885d7a6..a7ebcd1d65 100644 --- a/MdeModulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c +++ b/MdeModulePkg/Library/BaseBmpSupportLib/BmpSupportLib.c @@ -52,7 +52,7 @@ const BMP_IMAGE_HEADER mBmpImageHeaderTemplate =3D { /** Translate a *.BMP graphics image to a GOP blt buffer. If a NULL Blt buff= er is passed in a GopBlt buffer will be allocated by this routine using - EFI_BOOT_SERVICES.AllocatePool(). If a GopBlt buffer is passed in it wil= l be + EFI_BOOT_SERVICES.AllocatePages(). If a GopBlt buffer is passed in it wi= ll be used if it is big enough. =20 @param[in] BmpImage Pointer to BMP file. @@ -312,7 +312,7 @@ TranslateBmpToGopBlt ( // DEBUG ((DEBUG_INFO, "Bmp Support: Allocating 0x%X bytes of memory\n", = BltBufferSize)); *GopBltSize =3D (UINTN)BltBufferSize; - *GopBlt =3D AllocatePool (*GopBltSize); + *GopBlt =3D AllocatePages (*GopBltSize); IsAllocated =3D TRUE; if (*GopBlt =3D=3D NULL) { return RETURN_OUT_OF_RESOURCES; --=20 2.38.1.windows.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 (#107576): https://edk2.groups.io/g/devel/message/107576 Mute This Topic: https://groups.io/mt/100551576/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-