public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Lien, HoraceX" <horacex.lien@intel.com>
To: devel@edk2.groups.io
Cc: HoraceX Lien <horacex.lien@intel.com>,
	Zhichao Gao <zhichao.gao@intel.com>
Subject: [edk2-devel] [PATCH] ShellPkg/Pci.c: Update supported link speed to PCIe Gen6
Date: Mon, 27 May 2024 13:40:35 +0800	[thread overview]
Message-ID: <20240527054035.205-1-horacex.lien@intel.com> (raw)

From: HoraceX Lien <horacex.lien@intel.com>

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4779

Refer to PCI express base specification Reversion 6.2,
table 7-23 Link Capabilities Register.
Supported Link Speeds Vector bit 5: speed 64 GT/s.
Add the support to shell command 'pci'.

Signed-off-by: HoraceX Lien <horacex.lien@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
---
 ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
index 7b11f49d0d..93622733a5 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
@@ -4809,6 +4809,9 @@ ExplainPcieLinkCap (
     case 5:
       MaxLinkSpeed = L"32.0 GT/s";
       break;
+    case 6:
+      MaxLinkSpeed = L"64.0 GT/s";
+      break;
     default:
       MaxLinkSpeed = L"Reserved";
       break;
@@ -5015,6 +5018,9 @@ ExplainPcieLinkStatus (
     case 5:
       CurLinkSpeed = L"32.0 GT/s";
       break;
+    case 6:
+      CurLinkSpeed = L"64.0 GT/s";
+      break;
     default:
       CurLinkSpeed = L"Reserved";
       break;
-- 
2.43.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119273): https://edk2.groups.io/g/devel/message/119273
Mute This Topic: https://groups.io/mt/106325909/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



             reply	other threads:[~2024-05-27  5:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-27  5:40 Lien, HoraceX [this message]
2024-05-27 13:02 ` [edk2-devel] [PATCH] ShellPkg/Pci.c: Update supported link speed to PCIe Gen6 Gao, Zhichao

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=20240527054035.205-1-horacex.lien@intel.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