* [edk2-devel] [PATCH] ShellPkg/Pci.c: Update supported link speed to PCIe Gen6
@ 2024-05-27 5:40 Lien, HoraceX
2024-05-27 13:02 ` Gao, Zhichao
0 siblings, 1 reply; 2+ messages in thread
From: Lien, HoraceX @ 2024-05-27 5:40 UTC (permalink / raw)
To: devel; +Cc: HoraceX Lien, Zhichao Gao
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]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [edk2-devel] [PATCH] ShellPkg/Pci.c: Update supported link speed to PCIe Gen6
2024-05-27 5:40 [edk2-devel] [PATCH] ShellPkg/Pci.c: Update supported link speed to PCIe Gen6 Lien, HoraceX
@ 2024-05-27 13:02 ` Gao, Zhichao
0 siblings, 0 replies; 2+ messages in thread
From: Gao, Zhichao @ 2024-05-27 13:02 UTC (permalink / raw)
To: Lien, HoraceX, devel@edk2.groups.io
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Thanks,
Zhichao
> -----Original Message-----
> From: Lien, HoraceX <horacex.lien@intel.com>
> Sent: Monday, May 27, 2024 1:41 PM
> To: devel@edk2.groups.io
> Cc: Lien, HoraceX <horacex.lien@intel.com>; Gao, Zhichao
> <zhichao.gao@intel.com>
> Subject: [PATCH] ShellPkg/Pci.c: Update supported link speed to PCIe Gen6
>
> 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 (#119282): https://edk2.groups.io/g/devel/message/119282
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]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-27 13:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27 5:40 [edk2-devel] [PATCH] ShellPkg/Pci.c: Update supported link speed to PCIe Gen6 Lien, HoraceX
2024-05-27 13:02 ` Gao, Zhichao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox