🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13038

[PATCH v2 06/19] cdx: Propagate DMA configuration errors

#13038
From: Leon Romanovsky
Date: Mon, 09 Nov 2026 07:33
32 lines
8816 bytes
From: Leon Romanovsky <leonro@nvidia.com>

CDX reports successful DMA configuration when firmware setup defers or
default-domain acquisition fails. Driver probing can then proceed without
the required DMA setup or IOMMU ownership.

Return the configuration result so driver core stops or defers probing
instead of allowing a driver to use a rejected domain.

Fixes: 2959ab247061 ("cdx: add the cdx bus driver")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
 drivers/cdx/cdx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cdx/cdx.c b/drivers/cdx/cdx.c
index a118a89a7779d..0a030bf522690 100644
--- a/drivers/cdx/cdx.c
+++ b/drivers/cdx/cdx.c
@@ -367,7 +367,7 @@ static int cdx_dma_configure(struct device *dev)
 			arch_teardown_dma_ops(dev);
 	}
 
-	return 0;
+	return ret;
 }
 
 static void cdx_dma_cleanup(struct device *dev)

-- 
2.56.0
Technical Details
Message-ID: <20261109-device-trust-core-v2-6-3b12d9a9f861@nvidia.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359077-linux-kernel-netdev=dewy.ru
References: <20261109-device-trust-core-v2-0-3b12d9a9f861@nvidia.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359077-linux-kernel-netdev=dewy.ru
From: leon@kernel.org (Leon Romanovsky)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v2 06/19] cdx: Propagate DMA configuration errors
Date: Mon,  9 Nov 2026 09:33:36 +0200
Organization: Usenet Network
Message-ID: <20261109-device-trust-core-v2-6-3b12d9a9f861@nvidia.com>
References: <20261109-device-trust-core-v2-0-3b12d9a9f861@nvidia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="299752"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:dVjgFTscBfly8o7PePC9ply59ao= sha256:m+f5x2PtuvI53RjhwwCKWAYbK0+6bIt5RkwuOgjKAoM=
	sha1:I0WL2HdX8e2L28QsoYlG8HhvX6s= sha256:PQaafPE3BLSUNkLNxLQdbUReYyxnLOZ1v9TVIKfWkUQ=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BBA7011370D; Mon,  9 Nov 2026 10:42:07 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.301
X-Spam-Status: No, score=-2.301 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001,
	DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id e4baO4M44t-r;
	Mon,  9 Nov 2026 10:42:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-359077-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id EB1DF113705; Mon,  9 Nov 2026 10:41:55 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 81C69C20BF; Mon,  9 Nov 2026 07:35:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794209666;
	b=dtEL5lS/JlS3U9XK1Bga/e8dQOjrN7pRGT/XPTMM+Pi1NBGcGHcgM+N172Lhxv+qu+pO
	 Vrpr0YI68uRSR1NWdD45Lmc1peLj4WaIgQUjHZ+L73iCsxA4zr2yEDO+INiZAISsjYUyD
	 oPwc7UbjFl22DbVpnEW3Gf9eE9T5Oy3nqAxZIoel2tZsY/8jQeMG3UfRoiaNny9nEmeca
	 RZvi/HHxFEIA+qS4XtD5HnhUzYA05zlIL9AAGAta1vTajOsvp55JquxqBSEQzD9aeWqnd
	 shVctcocWsN/M8GiAfCwSthEJYYnvtYyHAAL2ssSRpS5rIVDnok8115ikyaZrTfQyxQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794209666;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type:X-Mailer:
	 Content-Transfer-Encoding;
	bh=wh2ChqYF9XmNrt6b8ATpGBOGwb3/qYFuxeZ+hTus5/8=;
	b=W28R0j/uzXGjJJo9Cnqg+bvUlrMy33ZSz/E9E6FIylkz6ERSp7bmjBzbGPt/DJ6njHrS
	 EdlXWn+lbkRfDmJoe+LInnYQWtYjsefFpiSc6tcCN5XySiaAp03WpLAsZXNy5zYKEEY7q
	 MRl47XXajjxh1RzI5XaQPFiUydbAAd2Wl1Nn60KvIdZYde3nvosevdZSS3URxZc47wkeA
	 ULWZ0oKBzKpA72PZMOVudka7M2eX5Aa2m2I4twiglz6QmXIypVZCoLCZYQHXR98I3hiUq
	 4hVf0tEjLmzut1MvpEgDGROzFg1TvO37scDPutQdS/omzT3CKerJJvyO4rkF6a+NT4A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=laYxnljf;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id F0549608361A;
	Mon,  9 Nov 2026 07:34:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=laYxnljf
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794209660;
	b=aGm8pt+VRWk1naiatDjpP+2gCjIy0ST/4xYClsJN4uFAz5PhEliNEXVmZW7IzVl7lHWm
	 T7uJS579oj3o9aIii2Qu/D1kMHcZFcfrQwCb0RP6S9rw7LgsSRR+EUT6ZyRDaOAXa6sKK
	 7ogJ/tNaxAlD/lqFJ0/Z+GUX5quFl/8N9gWCb1U4XayC/Q8p4VFdrGovkZP4STNaMQ/nh
	 +MAguPJ6ehsRGvPwtzy12BJDfbWwyfg5jV7ZjAU5Xl3rx2+4sJvpNd3pbv+aOxryLXGTP
	 epNcinPCPBM015KYyoftzO+RAXl26jg3ORYeqCVp3GIqVjWFneQCUtug4YHLXJEOq3A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794209660;
	h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Type:X-Mailer:
	 Content-Transfer-Encoding;
	bh=wh2ChqYF9XmNrt6b8ATpGBOGwb3/qYFuxeZ+hTus5/8=;
	b=jmGFALX9uzjFWdVunLJ+mqgnHA+1OFJ/ESN02ouCwRM5+gnRNVs63Cd0Bw0YeHdVzqZL
	 sJO7i7TVBOwfyBNq5fa/N75naqGD4PBgHmX7GBYNiiPQ1y5Ut+3SXAc0OfHHYDKNgNYSc
	 J4/9XCGmHsS6Ia6nUbBs7ZusSpVBHUZyCipWiFODm65EOwrCTUIA2UawO8HOT3oGcWTV4
	 yO4/0jZu4fN4o+PZgkcSBKIRNQ3zdHQtNFdLADEUWBXORaR8BizteXK01nf/lnumNSfhu
	 A2ioqnSNra5EvM5GUHOgFeFYc9TUDCsDB7fK+cCCZQIk1FhW9GeTzhvYTLqZ1mH3bKQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=laYxnljf;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFE236082BD7;
	Mon,  9 Nov 2026 07:34:19 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CB551F008A1;
	Mon,  9 Nov 2026 07:34:18 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794209659;
	bh=wh2ChqYF9XmNrt6b8ATpGBOGwb3/qYFuxeZ+hTus5/8=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References;
	b=laYxnljfw/dZnl22s4rzHk5vSm7ZDFxtqehSxMhT3r/VinDboZwVpJfyJNhGqjE/h
	 WCze+Mn1WHl2/tNoC9vojzEpPivRs+6SRkVyF9nygJo3xSduXtKOCloTwRoaB6gbBh
	 yXAgTbI2MamI/qPYq7pd4M0R/b6UQ39nDW3jvi3Erqp5sU8AeOL2xWsr5HX57guu8k
	 TFtnF74FBLBk/vmEzDCrXOz+hr4i2BmbSWfck9TU6NWMqQRbnvPbwsP44NFHEHEl1P
	 aD1hvNkvAXaJoZp1iJYhlSiGiKNI71pRNQdHRiPaSDCvDKCRFsgd6ntWXGf59d1iGm
	 JCQ+qySHzerAA==
X-Cc: linux-kernel@vger.kernel.org,
	driver-core@lists.linux.dev,
	linux-input@vger.kernel.org,
	netdev@vger.kernel.org,
	linux-wireless@vger.kernel.org,
	linux-usb@vger.kernel.org,
	linux-bluetooth@vger.kernel.org,
	linux-acpi@vger.kernel.org,
	linux-doc@vger.kernel.org,
	linux-pci@vger.kernel.org,
	iommu@lists.linux.dev,
	Jason Gunthorpe <jgg@ziepe.ca>
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <20261109-device-trust-core-v2-0-3b12d9a9f861@nvidia.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Mailer: b4 0.15-dev-18f8f