From nobody Tue Feb 10 06:27:01 2026 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+44092+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+44092+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1563771178; cv=none; d=zoho.com; s=zohoarc; b=HXhWTBm7y9aKEzVUXCNBZEN8hSnIgPzPvHTg/h59UHQw3OXHfQ3lrQctA/yGuxP6vpwScNZHDF26V6/KDh7lC7vjwcgnWvbGt8zxZjlQcQ6SEVj0GkjZssb6MrEjz075yAgjPsUIqkiB1PS1eeyt2z/6R+CeDh3nSsBo932R70U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563771178; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=Uv8kiW5hEeZY9Iuo//JtlWPOq6oQpBTWr1g3XoTz1Xs=; b=aG1lQXL3fFtfT5IV90U3W1fiKgp+4SdTXo65+tIU4Lobog8T8u67/hZaRW2im+iVYgeQXwyjNvtDWhXGPCIw5dTpE+Gi1QBpRxwbHnUUVbJ7xgB8X2vEIfuHjm0SphbnxF/BBytTrEn0Yr7vWPc7LbV0kIUiy2re18coclmQd48= 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+44092+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 1563771178294523.1852366355564; Sun, 21 Jul 2019 21:52:58 -0700 (PDT) Return-Path: X-Received: from mga04.intel.com (mga04.intel.com []) by groups.io with SMTP; Sun, 21 Jul 2019 21:52:57 -0700 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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jul 2019 21:52:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,293,1559545200"; d="scan'208";a="188527065" X-Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by fmsmga001.fm.intel.com with ESMTP; 21 Jul 2019 21:52:56 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Bret Barkelew , Jian J Wang , Hao A Wu , Ray Ni , Star Zeng , Liming gao , Sean Brogan , Michael Turner Subject: [edk2-devel] [PATCH 5/5] MdeModulePkg/PiSmmIpl: Use SecurityLockAuditLib for debug Date: Mon, 22 Jul 2019 12:02:04 +0800 Message-Id: <20190722040204.33108-6-zhichao.gao@intel.com> In-Reply-To: <20190722040204.33108-1-zhichao.gao@intel.com> References: <20190722040204.33108-1-zhichao.gao@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,zhichao.gao@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1563771177; bh=+446bd88/GU5ewBMMbTCwoFniUapzptq6g7J7WEv5mc=; h=Cc:Date:From:Reply-To:Subject:To; b=F8YTPG1ky78xbfDr3nhY7R3nTVhXg6icELpx+VKi91PTCBnooJMYQvxB2Bg+lmVB87E M7k3/8/dNdDlwxOil3jMcPo8640dyFblSVT1rQfrVf3QzUxjocFzO08IIvdwIgGvYjSli J5xBvDpd5lqAJT0yEVPFYRihzaZQiYzJFF8= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Bret Barkelew REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2006 Use SecurityLockAuditLib in PiSmmIpl to output debug message while lock the SMRAM. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Signed-off-by: Zhichao Gao --- MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c | 2 ++ MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf | 1 + 2 files changed, 3 insertions(+) diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c b/MdeModulePkg/Core/PiS= mmCore/PiSmmIpl.c index 1cf8c93227..604eb1b98e 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c @@ -33,6 +33,7 @@ #include #include #include +#include =20 #include "PiSmmCorePrivateData.h" =20 @@ -780,6 +781,7 @@ SmmIplReadyToLockEventNotify ( // Lock the SMRAM (Note: Locking SMRAM may not be supported on all platf= orms) // mSmmAccess->Lock (mSmmAccess); + SECURITY_LOCK_REPORT_EVENT ("Lock SMRAM", HARDWARE_LOCK); =20 // // Close protocol and event notification events that do not apply after = the diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf b/MdeModulePkg/Core/P= iSmmCore/PiSmmIpl.inf index b6b1bbcdac..2240ab3c5f 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf @@ -46,6 +46,7 @@ DxeServicesLib PcdLib ReportStatusCodeLib + SecurityLockAuditLib =20 [Protocols] gEfiSmmBase2ProtocolGuid ## PRODUCES --=20 2.21.0.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 (#44092): https://edk2.groups.io/g/devel/message/44092 Mute This Topic: https://groups.io/mt/32555410/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-