From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id AE2F11FF0C2 for ; Thu, 22 Oct 2026 14:38:06 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 5AC622172A; Thu, 22 Oct 2026 14:38:06 +0200 (CEST) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pve-devel@lists.proxmox.com Subject: [PATCH pve-kernel] fix #8153: revert CXL patch breaking NVIDIA driver Date: Thu, 22 Oct 2026 14:37:56 +0200 Message-ID: <20261022123800.2333393-1-f.gruenbichler@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1792672681551 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.573 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) KAM_LOTSOFHASH 0.25 Emails with lots of hash-like gibberish RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: HWETC7TXBARVXAGQBAE27QTDZWEJ7HUB X-Message-ID-Hash: HWETC7TXBARVXAGQBAE27QTDZWEJ7HUB X-MailFrom: f.gruenbichler@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: the patch was picked as a pre-requisite, but nothing uses the new helper.. upstream later moved the helper to a private/internal header in b6a61d5baf99 (2026-04-01; "cxl/region: Limit visibility of cxl_region_contains_resource()") as part of 7.1, but picking that would require picking more related refactors which are not part of stable kernels.. Signed-off-by: Fabian Grünbichler --- ...n-Add-helper-to-check-Soft-Reserved-.patch | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 patches/kernel/0068-Revert-cxl-region-Add-helper-to-check-Soft-Reserved-.patch diff --git a/patches/kernel/0068-Revert-cxl-region-Add-helper-to-check-Soft-Reserved-.patch b/patches/kernel/0068-Revert-cxl-region-Add-helper-to-check-Soft-Reserved-.patch new file mode 100644 index 0000000..999ff1c --- /dev/null +++ b/patches/kernel/0068-Revert-cxl-region-Add-helper-to-check-Soft-Reserved-.patch @@ -0,0 +1,82 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= +Date: Thu, 22 Oct 2026 13:59:29 +0200 +Subject: [PATCH] Revert "cxl/region: Add helper to check Soft Reserved + containment by CXL regions" + +This reverts commit 86e96316b55f726c46dac841ea17ddfd36563df4. +--- + drivers/cxl/core/region.c | 30 ------------------------------ + include/cxl/cxl.h | 15 --------------- + 2 files changed, 45 deletions(-) + delete mode 100644 include/cxl/cxl.h + +diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c +index b568e9cd3d57c58fed26e4a7dcee867d4e972fd7..a664f3b6cdec4778b02397e450b1b5ef83297288 100644 +--- a/drivers/cxl/core/region.c ++++ b/drivers/cxl/core/region.c +@@ -12,7 +12,6 @@ + #include + #include + #include +-#include + #include + #include + #include "core.h" +@@ -4178,35 +4177,6 @@ static int cxl_region_setup_poison(struct cxl_region *cxlr) + return devm_add_action_or_reset(dev, remove_debugfs, dentry); + } + +-static int region_contains_resource(struct device *dev, void *data) +-{ +- struct resource *res = data; +- struct cxl_region *cxlr; +- struct cxl_region_params *p; +- +- if (!is_cxl_region(dev)) +- return 0; +- +- cxlr = to_cxl_region(dev); +- p = &cxlr->params; +- +- if (p->state != CXL_CONFIG_COMMIT) +- return 0; +- +- if (!p->res) +- return 0; +- +- return resource_contains(p->res, res) ? 1 : 0; +-} +- +-bool cxl_region_contains_resource(struct resource *res) +-{ +- guard(rwsem_read)(&cxl_rwsem.region); +- return bus_for_each_dev(&cxl_bus_type, NULL, res, +- region_contains_resource) != 0; +-} +-EXPORT_SYMBOL_GPL(cxl_region_contains_resource); +- + static int cxl_region_can_probe(struct cxl_region *cxlr) + { + struct cxl_region_params *p = &cxlr->params; +diff --git a/include/cxl/cxl.h b/include/cxl/cxl.h +deleted file mode 100644 +index b12d3d0f665884bbd39ef6fea4f969a417fdfd95..0000000000000000000000000000000000000000 +--- a/include/cxl/cxl.h ++++ /dev/null +@@ -1,15 +0,0 @@ +-/* SPDX-License-Identifier: GPL-2.0-only */ +-/* Copyright (c) 2026 Advanced Micro Devices, Inc. */ +-#ifndef _CXL_H_ +-#define _CXL_H_ +- +-#ifdef CONFIG_CXL_REGION +-bool cxl_region_contains_resource(struct resource *res); +-#else +-static inline bool cxl_region_contains_resource(struct resource *res) +-{ +- return false; +-} +-#endif +- +-#endif /* _CXL_H_ */ -- 2.47.3