public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: prakashk@ami.com
To: "gaoliming@byosoft.com.cn" <gaoliming@byosoft.com.cn>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: Vasudevan Sambandan <vasudevans@ami.com>,
	Sundaresan S <sundaresans@ami.com>,
	Gayathri Thunuguntla <gayathrit@ami.com>
Subject: FW: [PATCH] ShellPkg: Displaying SMBIOS Type38 fields in formatted manner
Date: Fri, 26 Aug 2022 04:08:09 +0000	[thread overview]
Message-ID: <MWHPR10MB1599AC08E3A7CE1DF38FE294C9759@MWHPR10MB1599.namprd10.prod.outlook.com> (raw)
In-Reply-To: <20211229120641.540-1-prakashk@ami.com>

Hi Gaoliming

Regarding Bugzilla Bug 3755, I have sent the patch to devel@edk2.groups.io and you have updated that you have received the patch. But the changes are not merged into EDK2 source.
The sent patch is in the below mail thread.
Kindly let us know the status of Bug 3755.

Thanks,
Prakash K

-----Original Message-----
From: Prakash K <prakashk@ami.com>
Sent: Wednesday, December 29, 2021 5:37 PM
To: devel@edk2.groups.io; Prakash K <prakashk@ami.com>
Cc: Vasudevan Sambandan <vasudevans@ami.com>; Sundaresan S <sundaresans@ami.com>; Gayathri Thunuguntla <gayathrit@ami.com>
Subject: [PATCH] ShellPkg: Displaying SMBIOS Type38 fields in formatted manner

In smbiosview command, modified the below SMBIOS Type38 fields to display in formatted manner 1. Base Address 2. IPMI Specification Version 3. NV Storage Device Address 4. I2C Slave Address

Signed-off-by: Prakash K<prakashk@ami.com>
---
 .../SmbiosView/PrintInfo.c                    | 20 +++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
index b144600a25..0a8dd4afba 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
@@ -1158,10 +1158,22 @@ SmbiosPrintStructure (
     //

     case 38:

       DisplayIPMIDIBMCInterfaceType (Struct->Type38->InterfaceType, Option);

-      PRINT_STRUCT_VALUE_H (Struct, Type38, IPMISpecificationRevision);

-      PRINT_STRUCT_VALUE_H (Struct, Type38, I2CSlaveAddress);

-      PRINT_STRUCT_VALUE_H (Struct, Type38, NVStorageDeviceAddress);

-      PRINT_STRUCT_VALUE_LH (Struct, Type38, BaseAddress);

+      ShellPrintEx(-1,-1,L"IPMISpecificationRevision: %d.%d\n",
+ Struct->Type38->IPMISpecificationRevision >> 4,

+
+ Struct->Type38->IPMISpecificationRevision & 0x0F);

+

+      ShellPrintEx(-1, -1,L"I2CSlaveAddress: 0x%x\n",Struct->
+ Type38->I2CSlaveAddress >>1);

+

+      if (Struct->Type38->NVStorageDeviceAddress == 0xFF) {

+        ShellPrintEx(-1,-1,L"NVStorageDevice: Not Present\n");

+      } else {

+        PRINT_STRUCT_VALUE_H (Struct, Type38, NVStorageDeviceAddress);

+      }

+

+      if (Struct->Type38->InterfaceType ==
+ IPMIDeviceInfoInterfaceTypeSSIF) {

+        ShellPrintEx(-1, -1,L"BaseAddress: 0x%x\n",Struct-> Type38->
+ BaseAddress >>1);

+      } else {

+        PRINT_STRUCT_VALUE_LH (Struct, Type38, BaseAddress);

+      }

       break;



     //

--
2.18.0.windows.1

This e-mail is intended for the use of the addressee only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you.
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

       reply	other threads:[~2022-08-26  4:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20211229120641.540-1-prakashk@ami.com>
2022-08-26  4:08 ` prakashk [this message]
2022-08-29  1:01   ` 回复: [edk2-devel] FW: [PATCH] ShellPkg: Displaying SMBIOS Type38 fields in formatted manner gaoliming
2022-10-12  7:09     ` [edk2-devel] " Prakash K
2022-11-01  2:58   ` gaoliming
2022-11-24  6:07     ` [edk2-devel] " Prakash K
2022-11-25  2:53       ` 回复: " gaoliming
2022-11-29  4:12         ` [edk2-devel] " Prakash K
2022-12-05  6:28           ` Prakash K
2022-12-07  2:36             ` 回复: " gaoliming
2022-12-07 13:03               ` Prakash K
2022-12-21  0:56                 ` 回复: " gaoliming
2022-12-30  4:19                   ` [edk2-devel] " Prakash K
2023-01-04  1:09                     ` 回复: " gaoliming
2023-01-04 13:31                       ` [edk2-devel] " Prakash K
2023-01-10  4:35                         ` Prakash K
2023-01-13  2:53                           ` 回复: " gaoliming
2022-12-14  4:35             ` Prakash K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MWHPR10MB1599AC08E3A7CE1DF38FE294C9759@MWHPR10MB1599.namprd10.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox