From nobody Tue May 14 23:18:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1657284175; cv=none; d=zohomail.com; s=zohoarc; b=f3zPHTShQX87mAn5xs4d0EUYoeS5oYxcajrivJ6bez1vRrP0VqtoV02PEs7OTaTpsWKwEEChI9xDxjxyoVroa9S+rPBeuh6zEdiRT51WXyRkrPR1jU64xWwf47tFIobEObRTP8/kmitupe2gXVseOuKV/v12ktIGnBctVS4mWnU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657284175; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=kUiq2fR7tScuB/RDELxryECr8vUONN1+palrCBJsV/A=; b=mu5d4yMG7SNafB89A8/6dsbykGNYP251H8RobP8ul1AWV7sq1tlYEhPoX2/Bk6l22MGFc1uRT1q6Mnur1WCK3JPOFdek+wAd8LHBdqY7HAudUklSsy85FEtenb+TqNDrWW37+sYd/EUwqK9UOOWzXHKZBUqCW/PCujwjUF2LDwU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1657284175173306.27852149365197; Fri, 8 Jul 2022 05:42:55 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-252-1zByEt7wMaiscYx5RMcn3Q-1; Fri, 08 Jul 2022 08:42:50 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B0440101A596; Fri, 8 Jul 2022 12:42:48 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7675F492C3B; Fri, 8 Jul 2022 12:42:47 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 46374194706C; Fri, 8 Jul 2022 12:42:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 796AA194706D for ; Fri, 8 Jul 2022 12:42:45 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 64033407EE68; Fri, 8 Jul 2022 12:42:45 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C8C240357BA for ; Fri, 8 Jul 2022 12:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657284173; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kUiq2fR7tScuB/RDELxryECr8vUONN1+palrCBJsV/A=; b=ckRhYDj9LQkTZZ+CCCLiiv2lEJfuk2Tx8BPNHf0TlXXBJ2wDJDXIO+ndZBhyOUzQvlo9Xz qQxgWzuBY9sjrDHee4HPZm/Rz2P6DnREokRB8fzGgTYWXzB46dQAcaoE07uSYJsGIfIEVQ IYJYM3unOKl5PLdvaSyC8pG9+6Lb7DA= X-MC-Unique: 1zByEt7wMaiscYx5RMcn3Q-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] vircpi: Add PCIe 5.0 and 6.0 link speeds Date: Fri, 8 Jul 2022 14:42:43 +0200 Message-Id: <26bae2f36a9c76a6f78ea68d91370b62e9d1b317.1657284163.git.mprivozn@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1657284175675100001 Content-Type: text/plain; charset="utf-8"; x-default="true" The PCIe 5.0 and PCIe 6.0 standards define new link speeds: 32GT/s and 64GT/s, respectively. Update our internal enum to include these new speeds. Otherwise we format incorrect XML: Like all "good" specifications, these are also locked behind a login portal. But we can look at pciutils' source code: [1] and [2]. 1: https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/commit/ls-cap= s.c?id=3Dcaca31a0eea41c7b051705704c1158fddc02fbd2 2: https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/commit/ls-cap= s.c?id=3D5bdf63b6b1bc35b59c4b3f47f7ca83ca1868155b Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=3D2105231 Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- src/util/virpci.c | 2 +- src/util/virpci.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/virpci.c b/src/util/virpci.c index 03d1d7b074..7800966963 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -45,7 +45,7 @@ VIR_LOG_INIT("util.pci"); =20 VIR_ENUM_IMPL(virPCIELinkSpeed, VIR_PCIE_LINK_SPEED_LAST, - "", "2.5", "5", "8", "16", + "", "2.5", "5", "8", "16", "32", "64" ); =20 VIR_ENUM_IMPL(virPCIStubDriver, diff --git a/src/util/virpci.h b/src/util/virpci.h index b9b9cd7b34..4d9193f24e 100644 --- a/src/util/virpci.h +++ b/src/util/virpci.h @@ -83,6 +83,8 @@ typedef enum { VIR_PCIE_LINK_SPEED_5, VIR_PCIE_LINK_SPEED_8, VIR_PCIE_LINK_SPEED_16, + VIR_PCIE_LINK_SPEED_32, + VIR_PCIE_LINK_SPEED_64, VIR_PCIE_LINK_SPEED_LAST } virPCIELinkSpeed; =20 --=20 2.35.1