From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CF6F287511 for ; Tue, 17 Feb 2026 08:01:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771315279; cv=none; b=lIvMdl0H/lYbHwybxsMawLY7KQzNlQ/7+CU/bIQX7MHvICiMPcXORVMRzhPsdwXpAIgTU4sOcKsLCv3q8HTi8w0GiqOUdQ7mMTqxv0ZipAVY+jg3ToeQMtB8XnU+ZrtevfeRbeuPsgPJn/kAAKpSWse6IoH8DxLQMHO6e/P8BR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771315279; c=relaxed/simple; bh=1UCIQAMaTfESmQmryakYLGh5ALkY+Rp7DT+TZUGcZKw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GN6Q2qEcyfwJ4JO3wBdPNC1W7G0ERcx8DdAZG3HrSvuJ8iQ3JH2ntPDBJNA75ZJc5KLFK2MmU0QaJkfRFbtlr0+9Vya15/2DXLdNBP/aNbSscfed/IgUgpNWYfEl08b9bB9wRWU5uUzKwtQjgxlb5prhYlGjbYe1n0bYbjwBArQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RdRFFhAb; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RdRFFhAb" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4837f27cf2dso20875345e9.2 for ; Tue, 17 Feb 2026 00:01:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771315277; x=1771920077; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zLI1c+BVCTXh+QgGz9la+7RtF/6HCUTH3kkMfNUqGzw=; b=RdRFFhAb5fdirRQqxSGbijNEdqTvfEJYAN5lpEuaQAYmq4Kh6+XrvehyPicFspCI/S BgiLIpgGlMfikp5k6DMARk1qdx9Wj6+8fTV61NItkrIexERsFCcITOiRK1VBmSq6VQqU VUsKjQayqc+hkUU5ceXM+H+kV4rNRy/jR5CQBx359c26GSbat9KbrsIAGEA+8bmf3oWl Pzj75wRSbezyx+jfLR+O/CNw8AESF5sqWVONEBAnaPfsYPAyC/+Nd+ZyDsitUJIyjUgp yPCmCpEKspal1EKQC+syf/ycqTMrRuOYKnGQvo4jJYrhPZvz4/7d08yUyB2a9d9uFtPa v7eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771315277; x=1771920077; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zLI1c+BVCTXh+QgGz9la+7RtF/6HCUTH3kkMfNUqGzw=; b=G2tEdjZLj/n55GqRGY9cIh0hHCXO5LWFIHt18RAefyiTGFdT5EOgZ7Qes+TpqyOyap iz2uSrsYWe+LyuVprp4tshgYXn5tkxWvI2D24/Te3SlJ7nO6vKkXtDQzmx42uPl9yHTe cjJSBjHxyDXDUTh2VBV6EuJ06d9HEfAfFOvb+uFI04LNqRJuKWAAT/4KGFuhJRff9FIq /MNuHnR9TSCOqrqKW8K+K6llZmGMM7FGrQDcV5l0sr5EMdCr/58ybtgCqh2yKxY04hiX HpRZLByNDpJKmAGadlOyO7SCmXoIffKZTHjSHMINkULm3FiAwdQcmpu1Qmd/jww8xpyY d/9w== X-Forwarded-Encrypted: i=1; AJvYcCU667FU4rCaUobVdbAQJuxiE+C5BYom5eBFTccBwMOabxbI5BsaAdcDu/AAcF8HTJtBJFud4reubQohdgY=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9SrdXHOG4Pg9Qe6Klg6MS3Bpj2B+5YJvdJEvF2tNP1NQFdhdG hOtHHgjak9P5SrfedESD/e5fLJMBfh17AieM65nvU4lUZoc1CpeIU3oY X-Gm-Gg: AZuq6aKZPi/zpBKoXw+61tYplF02TinNyOLjh+VcyK84UZkABM5dO7MwlL1odj64V8G p48GCzD55KBMXg1Md5gECWoVcMVhFDvWUZM49ujVkGHZPzbVQNrlGuYjynMKK7lepqyYek8TPMW r9zQqEimZBdmn67UMHZVQG9iLKmHZHjbpQQF5G3W8V2sJi+BLV5dHkK3hvek6i5R+DmGoZVKGnt v1diVHsixDMUVIc2kMRfQWZqVMOLvRjQJfAYEQ3HYUQ+3HoBJdn0cRQEMbmpOkMY5MWGTm72RHg i0mkdNTtBkDisYQ2xJBE7xahyuzp4N3jkL9OdWnLuKr48w3fYoPDf0DAi3A3/S2e8V7WuuJNG2Y a1mfK0k2SSuWqidCWrMmcRM60D/O+CMduTWZU/ni6PGllbIFA1oylUfm9n3piXXYuDBpjHO66Fc HaRHxIIHG6dn1y8CJ0WJdwRhD7fREr4fp2QXtY9KOLPLkNGt3WNz3vh1Qm6R4= X-Received: by 2002:a05:600c:474e:b0:479:3a86:dc1f with SMTP id 5b1f17b1804b1-4837109740amr239415095e9.37.1771315276687; Tue, 17 Feb 2026 00:01:16 -0800 (PST) Received: from ionutnechita-arz2022.localdomain ([2a02:2f07:6006:8800:54ea:a0a1:e16b:9ca4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48371a21cbesm153558775e9.5.2026.02.17.00.01.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Feb 2026 00:01:16 -0800 (PST) From: "Ionut Nechita (Sunlight Linux)" To: Bjorn Helgaas , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , "Rafael J . Wysocki" , Daniel Lezcano Cc: Zhang Rui , Lukasz Luba , Lukas Wunner , Ionut Nechita , linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Ionut Nechita Subject: [RFC PATCH 0/3] PCI: Add PCIe Gen 7 (128 GT/s) speed support Date: Tue, 17 Feb 2026 10:00:56 +0200 Message-ID: <20260217080102.206581-2-sunlightlinux@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Ionut Nechita This RFC series adds initial kernel support for PCIe Gen 7 128 GT/s link speed, following the same pattern used for Gen 6 (64 GT/s). PCIe Gen 7 doubles the per-lane data rate to 128 GT/s using PAM4 signaling with mandatory Flit mode encoding (1:1, no overhead), providing up to 256 GB/s unidirectional (512 GB/s bi-directional) bandwidth on an x16 link. The specification was announced by PCI-SIG in 2022 and targeted for member release in 2025. The series covers: Patch 1: UAPI register definitions (LNKCAP, LNKCAP2, LNKCTL2) and pci_bus_speed enum. Widens supported_speeds from u8 to u16 to accommodate the expanded Supported Link Speeds Vector. Patch 2: Core PCI infrastructure - speed detection macros, bandwidth calculation with 1:1 Flit mode encoding, link speed table, display string, and a pcie_speed_requires_flit() helper with Flit mode diagnostic warning for Gen 6+ speeds. Patch 3: Subsystem updates for bandwidth control (bwctrl), port driver, and PCIe thermal cooling. Not included in this series (not yet defined in the specification): - Equalization presets for 128 GT/s (PCI_EXT_CAP_ID_PL_128GT) - DesignWare controller preset programming for Gen 7 This is marked as RFC since no PCIe Gen 7 hardware exists yet to validate the implementation. The register encoding values (LNKCAP SLS=0x7, LNKCAP2 SLS bit 6, LNKCTL2 TLS=0x7) follow the sequential pattern established by prior generations and are subject to change when the final specification is published. Tested: compile-tested only (no hardware available). Ionut Nechita (3): PCI: Add PCIe Gen 7 (128 GT/s) register and speed definitions PCI: Add PCIe Gen 7 (128 GT/s) speed detection and reporting PCI: Update bandwidth control and thermal cooling for Gen 7 (128 GT/s) drivers/pci/pci.c | 7 +++++-- drivers/pci/pci.h | 28 ++++++++++++++++++++++------ drivers/pci/pcie/bwctrl.c | 7 ++++--- drivers/pci/pcie/portdrv.c | 2 +- drivers/pci/probe.c | 3 ++- drivers/thermal/pcie_cooling.c | 1 + include/linux/pci.h | 3 ++- include/uapi/linux/pci_regs.h | 3 +++ 8 files changed, 40 insertions(+), 14 deletions(-) -- 2.53.0