From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 32BAD740034 for ; Thu, 14 Dec 2023 23:30:08 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0wwblFOUiGd5OQ8Q/z/EH5r75mb2pJME9XMM/tw5p/A=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:msip_labels:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type; s=20140610; t=1702596606; v=1; b=oHlomOBmTI479eoTpaqQ/MLl+HLxZojJkYu6tyotjiodWY+cEKTXkI1hpCI0NlXLHessQChR ux3X3W4fmXMpQS/6qfLxnkOC3vPGhAf+os33es/nDgmBTSNTg24qs/ffTd/QkzyBZYKTiBj1alP eVmWd95AOh7LeeGJpLaVNwxc= X-Received: by 127.0.0.2 with SMTP id TSV2YY7687511xbV56gkVCzt; Thu, 14 Dec 2023 15:30:06 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.82]) by mx.groups.io with SMTP id smtpd.web11.45066.1702596606037113904 for ; Thu, 14 Dec 2023 15:30:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aq9vIKKxp3VUzGljg5ZPIht3idHlgilNlslP1jQ9CmPh9oAO08LFHtG/Uvs0bfjP2dETAdUDKqkxkK6jJ9vyWRMRnw05msi09v+Y5WUOThbPg1l56DbrzEPMpEG0A52dO/LX0n5+Bl4SzAAEKuqYhdzvTB/X8PolIuzrSJrGlTFMUQrtFlmc0xBmWhPAqW5dM2a231xpsADN76M2mVIw2u8BCrikZU0Db0zkkCBZIHpBtgf1atFG4LAxjnowIvl3Ea+E/krRXLiZh90CkD0wfoxNnHOCAe8/oDUbvXF2i/FmpRsJK+UTkLK708KimNGmPvxuT7KwXbShSftZKCDKgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D6jeLVdr+azzvp7I2qEM3XP2ZDuZxVL5hthbbgAT/2Q=; b=ltbey0ff2EI+oA7qLQJxaCwvrNIPuJ6A0OPshoMogOjEZNwqpPf6nIGWdNDfP672CkXseL7j23xcbzC81Wmb43P5erGRD4BGnzDcTLGu1b+nqlz6qUgzhEdNxbx2AWxohZ804c4OTA5hfwzjZ8pqSjcGaFOeiCHY8Y2x4haeX42zioZCSl0UwSgbvx8Xz87RLKV3helxXqJjsiFHPuAlTVE++jhf+NAMpjtmNrxB/bFEo2alZiSdYMmRFk/rnSmewdBZp501gqoiEx/T+Y+MIYUhTPazEhqThl8dszsySpGeyWajg4bOil/WiP+8EAY7r0AT650c4UIL6EQRQSsWxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none X-Received: from BY5PR12MB5544.namprd12.prod.outlook.com (2603:10b6:a03:1d9::22) by MW4PR12MB6999.namprd12.prod.outlook.com (2603:10b6:303:20a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28; Thu, 14 Dec 2023 23:30:03 +0000 X-Received: from BY5PR12MB5544.namprd12.prod.outlook.com ([fe80::108e:2378:282b:6d89]) by BY5PR12MB5544.namprd12.prod.outlook.com ([fe80::108e:2378:282b:6d89%4]) with mapi id 15.20.7091.028; Thu, 14 Dec 2023 23:30:03 +0000 From: "Ashish Singhal via groups.io" To: "devel@edk2.groups.io" , "gaoliming@byosoft.com.cn" , Jeff Brasen Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Data Thread-Topic: [PATCH] MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Data Thread-Index: AQHaKKNns0GobTbuX0OlMOOmADJQRrCpeYP2 Date: Thu, 14 Dec 2023 23:30:03 +0000 Message-ID: References: <0f89bcebf449a681273f736de534d51afaea580c.1701908231.git.ashishsingha@nvidia.com> In-Reply-To: <0f89bcebf449a681273f736de534d51afaea580c.1701908231.git.ashishsingha@nvidia.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR12MB5544:EE_|MW4PR12MB6999:EE_ x-ms-office365-filtering-correlation-id: c4bf668b-794f-4750-a6ff-08dbfcfc98fb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: jgpwoDsWryaZefRfgJw4M0AEbCoxrDg5XRQJGh9ecl1ob6I/H1qXiIpu7bfgHtluN9HODZqjBAXYYTFo/gEQwouUG2bM/b5//mN/pSW6RtjA39PVNzos3vr/h6xxKIoooWsJcvRkP9b/f++do7KDFhT7Hv/sKdwBaQpRk0WnEY8FLxQD32J0ersmDXrdm2Ia2eUNcgx0bme86+ZxjZCAEUVHbBCD+WmeNadnU+7sb7Ho8f3VAYmnLJnOs1H6rcDI4zx/CoAvBI5fqqYBepeGHhamU9ol1Blk8oNilcTlNvj3fDg90GCaLcEYsAijy/c4I/Wtgkb0sUD3WhrPX1pNz5xkUwoY6duXd6998/oUZIQ5TRjL6VNVnGZ2HmUe8xgCs/U6UB10xjie/QEMGFToVWzk/CTRXn93A5sn0R5jqHPeeT5WEMLgTlrqBLYczzt2dohXejn/mYHL5CvgYlK0Jq6Jbro14Rgj0eER93uxXKTT+SK6GAQdAoYwnJZj5t3urj22/nQsMERpXUEsf7T3EcB+sElCC7bgJtjyo3pcxNwTac3xbZVyIQ02g1cOylp83kD7TREz8+oTOIC6LwgZuVvxBh/nJgPhSmyXmcqVIICuUsbrLpNbiWUhJEtZfISo x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?IQvXpHM1Whb9juOhbbYm7+HkkxOTvmM3g7Bi4E3idehF5q88puunsSiTyl4X?= =?us-ascii?Q?da1bnYREcyOxkaxs2sF47gjMH545KFgZC3t8DoOygALcBrDMti7Bkn0/xjPA?= =?us-ascii?Q?Wexqb4gV+lmxhTcdCiGKKTbrfDRHkJX/hmp4se7QXCQr4N7MpmRNxGrc2++p?= =?us-ascii?Q?lON99soSj53ZrywgxDKvmLJUBo+Ot64rAnI0mGBJhuBjJwZdpY1WksPhAYvm?= =?us-ascii?Q?WLpGPUtsDM5eFExj7bX64PkQfUWBjkhKkIe8IsUCAZJpMsD6hVGXuXSvu4ut?= =?us-ascii?Q?ez/YV+ldq9x69VycGuLz965IyFG0743E5p4KyT3FpJWQruEzK7tUAfE/Rt1J?= =?us-ascii?Q?dUcdEM3I8paa6yBws7k/JqC7tZ9NCrqqE8cpEX+sgtPKJaB8xCJhbQ0CsDJz?= =?us-ascii?Q?REyuGDWVlpTzkexmgvTQ8rt0MeXGGxHAc5ZCdt057MjlO+Te7c0rGUU0feDK?= =?us-ascii?Q?O421BqbsaGFJxu70yA6b7fFhggx1vIiGEOMhOP165GWp7y16E94YrY4SglYr?= =?us-ascii?Q?Lu+l0qPzClmGJ4FDTMZjlIHOBpyVvt4vEHwzhX9DRuVQ5V8QIwvzpghV5Jrc?= =?us-ascii?Q?RpzdP2YS0mGicOjrNg8XevLPrPp8/dByoMNyQ3TsGd1XabGV4K1a8BFPSsPR?= =?us-ascii?Q?N3lVp2h0kT8zZX7p+WZ1cXTkU5s+gSjUqW0hW7SWtRvVZ4KVWL4+BhEAfANx?= =?us-ascii?Q?CE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IME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB5544.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4bf668b-794f-4750-a6ff-08dbfcfc98fb X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Dec 2023 23:30:03.1084 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /SsWPDP1jtDWH2i5hpVfF95Hf+0hYihdFOgKM6ezHkDfk35kJV2frgdHAYjakryjChDCJFNkav1SOn0pEAfhsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6999 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,ashishsingha@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: wUPlBF6uDC0mtcIOtFFc8CrRx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BY5PR12MB5544A88F72E4FAF99EC501F4BA8CABY5PR12MB5544namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=oHlomOBm; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") --_000_BY5PR12MB5544A88F72E4FAF99EC501F4BA8CABY5PR12MB5544namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Gao, Checking if you have any feedback on this. Thanks Ashish ________________________________ From: Ashish Singhal Sent: Wednesday, December 6, 2023 5:21 PM To: devel@edk2.groups.io ; gaoliming@byosoft.com.cn <= gaoliming@byosoft.com.cn>; Jeff Brasen Cc: Ashish Singhal Subject: [PATCH] MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Data ResetSystem runtime call allows for sending reset data that starts with a NULL terminated string. Add support to print that string on console. Signed-off-by: Ashish Singhal --- .../Universal/ResetSystemRuntimeDxe/ResetSystem.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c b/M= deModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c index 42f1b1d015..72bb1d2be6 100644 --- a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c +++ b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c @@ -252,6 +252,14 @@ RuntimeServiceResetSystem ( mResetNotifyDepth )); + if ((ResetData !=3D NULL) && (DataSize !=3D 0)) { + DEBUG (( + DEBUG_INFO, + "DXE ResetSystem2: ResetData: %s\n", + ResetData + )); + } + if (mResetNotifyDepth <=3D MAX_RESET_NOTIFY_DEPTH) { if (!EfiAtRuntime ()) { // -- 2.17.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 (#112564): https://edk2.groups.io/g/devel/message/112564 Mute This Topic: https://groups.io/mt/103025596/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --_000_BY5PR12MB5544A88F72E4FAF99EC501F4BA8CABY5PR12MB5544namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hello Gao,

Checking if you have= any feedback on this.

Thanks
Ashish

From: Ashish Singhal <as= hishsingha@nvidia.com>
Sent: Wednesday, December 6, 2023 5:21 PM
To: devel@edk2.groups.io <devel@edk2.groups.io>; gaoliming@byo= soft.com.cn <gaoliming@byosoft.com.cn>; Jeff Brasen <jbrasen@nvidi= a.com>
Cc: Ashish Singhal <ashishsingha@nvidia.com>
Subject: [PATCH] MdeModulePkg/ResetSystemRuntimeDxe: Print Reset Dat= a
 
ResetSystem runtime call allows for sending reset = data that
starts with a NULL terminated string. Add support to print
that string on console.

Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
---
 .../Universal/ResetSystemRuntimeDxe/ResetSystem.c   &n= bsp;     | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c b/M= deModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
index 42f1b1d015..72bb1d2be6 100644
--- a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
+++ b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
@@ -252,6 +252,14 @@ RuntimeServiceResetSystem (
     mResetNotifyDepth
     ));
 
+  if ((ResetData !=3D NULL) && (DataSize !=3D 0)) {
+    DEBUG ((
+      DEBUG_INFO,
+      "DXE ResetSystem2: ResetData: %s\n&quo= t;,
+      ResetData
+      ));
+  }
+
   if (mResetNotifyDepth <=3D MAX_RESET_NOTIFY_DEPTH) {
     if (!EfiAtRuntime ()) {
       //
--
2.17.1

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#112564) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_BY5PR12MB5544A88F72E4FAF99EC501F4BA8CABY5PR12MB5544namp_--