From nobody Mon Apr 29 03:21:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+66679+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66679+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1603853833; cv=none; d=zohomail.com; s=zohoarc; b=VTYLYtxB+YaetZlPHgTXg5jmCnDGrXfIrjFoodQ1wFae/KQzqi/dNFBqYR59ODw3LGwv78SFeQmABxgG63j6tstBa24j4s5L2tBNqsLQn6AGSIN+Q+53s8lzwARaCvI6lGQdVLFjsD8D+CDzWqAQHKiYNplR8+Jtq3OF3g9myZg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603853833; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=gSLlWdE18UVR03i1CX9ZTPrjJU2DOzh/vpAiGjPJSJA=; b=hXka+GE03wVtIBlMoE5DR5KgaZLZBqzbU9mOoGiat0pOYiJTyqinBUgoeH36moVRFGDlt+wQjppCGmVBA9qriG0rbsamzkmlRfl6TlpU0lJlMM/nsugSNAcZP8ykHInqc4w4dVwjTsaasO4vLqwTFUe+qcTpc2McroRPy4QDr2s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66679+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 1603853833892411.15057450224583; Tue, 27 Oct 2020 19:57:13 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id AAU9YY1788612xQSPKmZ7NHd; Tue, 27 Oct 2020 19:57:13 -0700 X-Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.3231.1603853832971547634 for ; Tue, 27 Oct 2020 19:57:13 -0700 IronPort-SDR: 4kHXszVkYHhamfqGbLEdOqL6paiy52XgJNkkVogHQQp5Qd6wd8L/jJjeYooXty2qN+xsG7fz0m rkiE1JOFaK3A== X-IronPort-AV: E=McAfee;i="6000,8403,9787"; a="148050612" X-IronPort-AV: E=Sophos;i="5.77,425,1596524400"; d="scan'208";a="148050612" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2020 19:57:07 -0700 IronPort-SDR: +J7wJvqjBxfdPT50jq97UqZXZ/Q6lrUD36S8k08155K+ZQh/GtMTLaKZ7XW/EkxY0u4+yIgZWK 9C9IWWFzLq3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,425,1596524400"; d="scan'208";a="424600498" X-Received: from shwdeopenpsi787.ccr.corp.intel.com ([10.239.158.56]) by fmsmga001.fm.intel.com with ESMTP; 27 Oct 2020 19:57:05 -0700 From: "Siyuan, Fu" To: devel@edk2.groups.io Cc: Dandan Bi , Liming Gao Subject: [edk2-devel] [Patch] MdeModulePkg/Core: Support standalone MM in FV2 protocol GetNextFile(). Date: Wed, 28 Oct 2020 10:57:01 +0800 Message-Id: <38c94c28e001783a852c990481d46a0937874f39.1603853801.git.siyuan.fu@intel.com> 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,siyuan.fu@intel.com X-Gm-Message-State: GGa88WA3CmLLLtaSACXcbALqx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1603853833; bh=h0wTefBvGC8k8LhWWmnWY5rHGBl+ziEtxbCdqiIkHLo=; h=Cc:Date:From:Reply-To:Subject:To; b=MRuz8y3xAfAwmOZssFW0dFMlgluMcgJigUndzOJp/6+P4LVxag5Nk9w0ya++CPcpn6x 0DHK4PaTEuH4eV+6m0Mzq0Mnfe5LuYHs7uNKYRtjbLSB2oeva8+N+XpIJD1cMp0VWeqCi E8YZtue58ELSkBCV1Gx7Lu8ZRvzhh7XPAgM= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3028 The FirmwareVolume2Protocol->GetNextFile() produced by DXE Core can be used to search for a file based on the value of *FileType input. However, this service will always return EFI_NOT_FOUND if the input FileType is set to EFI_FV_FILETYPE_MM_STANDALONE or EFI_FV_FILETYPE_MM_CORE_STANDALONE, Which means user can't use this service to search any standalone MM image in that FV. This patch update the FirmwareVolume2Protocol->GetNextFile() service to support searching standalone MM module. Signed-off-by: Siyuan Fu Cc: Dandan Bi Cc: Liming Gao Reviewed-by: Liming Gao --- MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c b/MdeModulePkg/Core/Dx= e/FwVol/FwVolRead.c index 2861cbf676..8dcbbeb5ee 100644 --- a/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c +++ b/MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c @@ -1,7 +1,7 @@ /** @file Implements functions to read firmware file =20 -Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -143,9 +143,9 @@ FvGetNextFile ( return EFI_ACCESS_DENIED; } =20 - if (*FileType > EFI_FV_FILETYPE_SMM_CORE) { + if (*FileType > EFI_FV_FILETYPE_MM_CORE_STANDALONE) { // - // File type needs to be in 0 - 0x0D + // File type needs to be in 0 - 0x0F // return EFI_NOT_FOUND; } --=20 2.19.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 (#66679): https://edk2.groups.io/g/devel/message/66679 Mute This Topic: https://groups.io/mt/77855074/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-