public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor Characteristics in smbiosview
@ 2020-10-20 19:59 Rebecca Cran
  2020-10-20 21:05 ` [edk2-devel] " Samer El-Haj-Mahmoud
  2020-10-21  1:02 ` 回复: " gaoliming
  0 siblings, 2 replies; 4+ messages in thread
From: Rebecca Cran @ 2020-10-20 19:59 UTC (permalink / raw)
  To: devel; +Cc: Rebecca Cran, ray.ni, zhichao.gao

SMBIOS 3.4.0 defines bit 9 of the Type 4 table Processor Characteristics
field to be the ARM64 SoC ID support. Add support for it to the
smbiosview command.

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
---
 .../UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c        | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
index 17a2a89d512e..d0796a0e5141 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
@@ -624,6 +624,10 @@ TABLE_ITEM  ProcessorCharacteristicsTable[] = {
   {
     8,
     L" 128-bit Capable"
+  },
+  {
+    9,
+    L" ARM64 SoC ID"
   }
 };
 
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [edk2-devel] [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor Characteristics in smbiosview
  2020-10-20 19:59 [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor Characteristics in smbiosview Rebecca Cran
@ 2020-10-20 21:05 ` Samer El-Haj-Mahmoud
  2020-10-21  1:02 ` 回复: " gaoliming
  1 sibling, 0 replies; 4+ messages in thread
From: Samer El-Haj-Mahmoud @ 2020-10-20 21:05 UTC (permalink / raw)
  To: devel@edk2.groups.io, rebecca@nuviainc.com
  Cc: ray.ni@intel.com, zhichao.gao@intel.com

Thanks for adding this!

Reviewed-By: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Rebecca
> Cran via groups.io
> Sent: Tuesday, October 20, 2020 4:00 PM
> To: devel@edk2.groups.io
> Cc: Rebecca Cran <rebecca@nuviainc.com>; ray.ni@intel.com;
> zhichao.gao@intel.com
> Subject: [edk2-devel] [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor
> Characteristics in smbiosview
>
> SMBIOS 3.4.0 defines bit 9 of the Type 4 table Processor Characteristics field
> to be the ARM64 SoC ID support. Add support for it to the smbiosview
> command.
>
> Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
> ---
>  .../UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c        | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git
> a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.
> c
> b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.
> c
> index 17a2a89d512e..d0796a0e5141 100644
> ---
> a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.
> c
> +++
> b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.
> +++ c
> @@ -624,6 +624,10 @@ TABLE_ITEM  ProcessorCharacteristicsTable[] = {
>    {
>      8,
>      L" 128-bit Capable"
> +  },
> +  {
> +    9,
> +    L" ARM64 SoC ID"
>    }
>  };
>
> --
> 2.26.2
>
>
>
> 
>

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* 回复: [edk2-devel] [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor Characteristics in smbiosview
  2020-10-20 19:59 [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor Characteristics in smbiosview Rebecca Cran
  2020-10-20 21:05 ` [edk2-devel] " Samer El-Haj-Mahmoud
@ 2020-10-21  1:02 ` gaoliming
  2020-10-21  4:22   ` [EXTERNAL] " Rebecca Cran
  1 sibling, 1 reply; 4+ messages in thread
From: gaoliming @ 2020-10-21  1:02 UTC (permalink / raw)
  To: devel, rebecca; +Cc: ray.ni, zhichao.gao

Rebecca:
  ARM64 SoC ID Processor Characteristics is also required to be added into
struct PROCESSOR_CHARACTERISTIC_FLAGS in
edk2\MdePkg\Include\IndustryStandard\SmBios.h. Can you provide another patch
for the change in MdePkg?

Thanks
Liming
> -----邮件原件-----
> 发件人: bounce+27952+66457+4905953+8761045@groups.io
> <bounce+27952+66457+4905953+8761045@groups.io> 代表 Rebecca Cran
> 发送时间: 2020年10月21日 4:00
> 收件人: devel@edk2.groups.io
> 抄送: Rebecca Cran <rebecca@nuviainc.com>; ray.ni@intel.com;
> zhichao.gao@intel.com
> 主题: [edk2-devel] [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor
> Characteristics in smbiosview
> 
> SMBIOS 3.4.0 defines bit 9 of the Type 4 table Processor Characteristics
> field to be the ARM64 SoC ID support. Add support for it to the
> smbiosview command.
> 
> Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
> ---
>  .../UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c        | 4
> ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git
> a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
> b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
> index 17a2a89d512e..d0796a0e5141 100644
> ---
> a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
> +++
> b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
> @@ -624,6 +624,10 @@ TABLE_ITEM  ProcessorCharacteristicsTable[] = {
>    {
>      8,
>      L" 128-bit Capable"
> +  },
> +  {
> +    9,
> +    L" ARM64 SoC ID"
>    }
>  };
> 
> --
> 2.26.2
> 
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [EXTERNAL] 回复: [edk2-devel] [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor Characteristics in smbiosview
  2020-10-21  1:02 ` 回复: " gaoliming
@ 2020-10-21  4:22   ` Rebecca Cran
  0 siblings, 0 replies; 4+ messages in thread
From: Rebecca Cran @ 2020-10-21  4:22 UTC (permalink / raw)
  To: devel, gaoliming; +Cc: ray.ni, zhichao.gao

On 10/20/20 7:02 PM, gaoliming wrote:

> Rebecca:
>    ARM64 SoC ID Processor Characteristics is also required to be added into
> struct PROCESSOR_CHARACTERISTIC_FLAGS in
> edk2\MdePkg\Include\IndustryStandard\SmBios.h. Can you provide another patch
> for the change in MdePkg?

Yes, I'll submit another patch to fix that.

The PROCESSOR_CHARACTERISTIC_FLAGS structure needs some other work: 
ProcessorCharacteristics is a UINT16 not UINT32 field, and several of 
the fields have spelling mistakes (e.g. Processor64BitCapble). Once 
that's fixed we can probably change the type in the SMBIOS_TABLE_TYPE4 
from UINT16 to PROCESSOR_CHARACTERISTICS_FLAGS.


-- 
Rebecca Cran


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-21  4:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-20 19:59 [PATCH 1/2] ShellPkg: add ARM64 SoC ID to Processor Characteristics in smbiosview Rebecca Cran
2020-10-20 21:05 ` [edk2-devel] " Samer El-Haj-Mahmoud
2020-10-21  1:02 ` 回复: " gaoliming
2020-10-21  4:22   ` [EXTERNAL] " Rebecca Cran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox