|
|
032100 |
From e13ab5c97f266eb688bc22e1124291563770370d Mon Sep 17 00:00:00 2001
|
|
|
032100 |
Message-Id: <e13ab5c97f266eb688bc22e1124291563770370d@dist-git>
|
|
|
032100 |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
032100 |
Date: Fri, 8 Jul 2022 14:29:32 +0200
|
|
|
032100 |
Subject: [PATCH] vircpi: Add PCIe 5.0 and 6.0 link speeds
|
|
|
032100 |
MIME-Version: 1.0
|
|
|
032100 |
Content-Type: text/plain; charset=UTF-8
|
|
|
032100 |
Content-Transfer-Encoding: 8bit
|
|
|
032100 |
|
|
|
032100 |
The PCIe 5.0 and PCIe 6.0 standards define new link speeds:
|
|
|
032100 |
32GT/s and 64GT/s, respectively. Update our internal enum to
|
|
|
032100 |
include these new speeds. Otherwise we format incorrect XML:
|
|
|
032100 |
|
|
|
032100 |
<pci-express>
|
|
|
032100 |
<link validity='cap' port='0' speed='(null)' width='16'/>
|
|
|
032100 |
<link validity='sta' speed='16' width='16'/>
|
|
|
032100 |
</pci-express>
|
|
|
032100 |
|
|
|
032100 |
Like all "good" specifications, these are also locked behind a
|
|
|
032100 |
login portal. But we can look at pciutils' source code: [1] and
|
|
|
032100 |
[2].
|
|
|
032100 |
|
|
|
032100 |
1: https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/commit/ls-caps.c?id=caca31a0eea41c7b051705704c1158fddc02fbd2
|
|
|
032100 |
2: https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/commit/ls-caps.c?id=5bdf63b6b1bc35b59c4b3f47f7ca83ca1868155b
|
|
|
032100 |
|
|
|
032100 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2105231
|
|
|
032100 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
032100 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
032100 |
(cherry picked from commit d33c2a9e2f933b31f8e96e9938c237bdffe27f84)
|
|
|
032100 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
032100 |
---
|
|
|
032100 |
src/util/virpci.c | 2 +-
|
|
|
032100 |
src/util/virpci.h | 2 ++
|
|
|
032100 |
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
032100 |
|
|
|
032100 |
diff --git a/src/util/virpci.c b/src/util/virpci.c
|
|
|
032100 |
index 03d1d7b074..7800966963 100644
|
|
|
032100 |
--- a/src/util/virpci.c
|
|
|
032100 |
+++ b/src/util/virpci.c
|
|
|
032100 |
@@ -45,7 +45,7 @@ VIR_LOG_INIT("util.pci");
|
|
|
032100 |
|
|
|
032100 |
VIR_ENUM_IMPL(virPCIELinkSpeed,
|
|
|
032100 |
VIR_PCIE_LINK_SPEED_LAST,
|
|
|
032100 |
- "", "2.5", "5", "8", "16",
|
|
|
032100 |
+ "", "2.5", "5", "8", "16", "32", "64"
|
|
|
032100 |
);
|
|
|
032100 |
|
|
|
032100 |
VIR_ENUM_IMPL(virPCIStubDriver,
|
|
|
032100 |
diff --git a/src/util/virpci.h b/src/util/virpci.h
|
|
|
032100 |
index b9b9cd7b34..4d9193f24e 100644
|
|
|
032100 |
--- a/src/util/virpci.h
|
|
|
032100 |
+++ b/src/util/virpci.h
|
|
|
032100 |
@@ -83,6 +83,8 @@ typedef enum {
|
|
|
032100 |
VIR_PCIE_LINK_SPEED_5,
|
|
|
032100 |
VIR_PCIE_LINK_SPEED_8,
|
|
|
032100 |
VIR_PCIE_LINK_SPEED_16,
|
|
|
032100 |
+ VIR_PCIE_LINK_SPEED_32,
|
|
|
032100 |
+ VIR_PCIE_LINK_SPEED_64,
|
|
|
032100 |
VIR_PCIE_LINK_SPEED_LAST
|
|
|
032100 |
} virPCIELinkSpeed;
|
|
|
032100 |
|
|
|
032100 |
--
|
|
|
032100 |
2.35.1
|
|
|
032100 |
|