🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21659

[PATCH v4 14/33] cdx: Propagate DMA configuration errors

#21659
From: Leon Romanovsky
Date: Tue, 24 Nov 2026 09:43
32 lines
8915 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.1
Technical Details
Message-ID: <20261124-device-trust-core-v4-14-037eb0d17b1f@nvidia.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370177-linux-kernel-netdev=dewy.ru
References: <20261124-device-trust-core-v4-0-037eb0d17b1f@nvidia.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370177-linux-kernel-netdev=dewy.ru
From: leon@kernel.org (Leon Romanovsky)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v4 14/33] cdx: Propagate DMA configuration errors
Date: Tue, 24 Nov 2026 11:43:45 +0200
Organization: Usenet Network
Message-ID: <20261124-device-trust-core-v4-14-037eb0d17b1f@nvidia.com>
References: <20261124-device-trust-core-v4-0-037eb0d17b1f@nvidia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="4104081"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0w3R65epeEc8H0Sy7eQGnAAxeog= sha256:pZZ6yhHLqs9OJ5xttHXXv+D7E+/kTJYvSVrYfO8t3Os= sha1:pf/Hl8osnbDblLgsI2jnF+UlGhA= sha256:01a8phjr2RfW6taWH30g5PV9DC2dJBA5d5fe5+md2NU=
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 92313125DEC; Tue, 24 Nov 2026 12:47:35 +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 POLvcLFO_isc; Tue, 24 Nov 2026 12:47:32 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370177-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 3F9D2125DE8; Tue, 24 Nov 2026 12:47:24 +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 7A9D041A91; Tue, 24 Nov 2026 09:46:22 +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=1795513523; b=3uX+f2pHRaiPFTEiJgfDGDPShtO097v3VrFmpU/mYxsuJvbZfmGzpV+brOVkuMh+OObC v7/tmukYUDLUwmZxKLAq1L0QRzi+JrGLBhCND8GEFSR0EK0QhuiiSAN45KtM/KoBDU5BY M7gesq0BS1Y5RJdmWhJxwGQrO13nUxAyyps34ivvoNrYCDFI/IflS6Uk9saLS8IeMRVNV c7CpMS8uag8nNl5SwnySsCtU/ECJJJxeKEt4AopW5aFX9X+qJsI8FgYULkfEXMaSdWHuu UDQJ5/xiFA5tb5Yi0DbOOrPyqYzPqbaBjK8UfZXxFM/8qZhCFf2Ji1w3ivpHe2siCvw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795513523; 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=ApA1EolZAFdk8jTSD56scrzuYcCnsTXqldWRwLF6D30=; b=Y6DjM5mOxo7/HG/iDC9xmPnZ8x8wpGyglQBBbwBFx1poJ6SzrGVrmGx1w1j+owXuSQ5E B5u0ZBWyHWoDn7hSxcKlpR26UvwBFYmFVF5RfUXDwFlZFiVejPZxP/+A7wIAQbkgYrgi7 ACU5XcUoTTAAU+wp+5rn6LbNWrRRfSMsiUbDea1pM1giabaUgPG+udzTAyrEmWbD6HwCi CEFF6m9AJRSaclirQCt6+pRY+zWw7EwmlHHScqSDQI50fhRwNv/OWmqTrUptufXt0O+py 6VrrpW+1d3DmhZQarQa7inV9f+urPzJ/JCKHTgTf1dy0YmmkLO/BV5ImXLkdRBKUv+Q==
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=lsMHhECp; 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 786B760A5BFE; Tue, 24 Nov 2026 09:45:23 +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=lsMHhECp
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=1795513512; b=y2/GwYiiFDz5R04k9FbmuD5RwZBwr1HXPmH6hsWQIef3YP/86lFcD3yj4DAtwoYx33HQ VTwzxJp/KtIOy/uF9wdxrL+bNJ4U62J0UD0Z22jPNB2n/JhHicux4zSVCDuhQIFECc3kI QPwmnzmHufx4aiU/MRjCykZbrfr9nhTOY9mq7WD+q7hgRg3ki2pKf7F99B4gWH7A+EZyD gyzmDSH8Xx+DsXP5N4RJWwLOmwS3WWUgzxgYT4k9hkphHG9BXXxn69022kzIj5BMF9r/x UGNpunDBhFN8rQMavCbbZO/Jw1dgc/MtOmw7vH+uxgBCRx7APSoNTRcaUB023ItTBbA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795513512; 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=ApA1EolZAFdk8jTSD56scrzuYcCnsTXqldWRwLF6D30=; b=IvdQTHCQ32f/JLGCgaZMaWd9BBijFKh7qc7J+PmVf8qoT7MmI9fmoOtNoWbvc1qcXOq4 YrGtw0ibjlPvHf12+m8wZvu0dEo2WWz7udScQZPUmjzxfiuXrSMYeC/yvQj8sGwQNX2Gq WHvMe/ZrRs9WGtlQxhfFGtEHyrVKObVDsNn/z7tL+LOr933TmlqS9lDKkaJwBHoBGGT5q I38pyMZEB7PYc62NTcsC2OMzwZv3djpiQnUDxhhJs7EXuhPq3VOE+8t9MbkcM224uatep xNo5pRppQcs4EGOopdYGImvq7+r9ri55RWq49lrxSkryrYlqbKOnCVIar///wbILXRw==
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=lsMHhECp; 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 6DA1C606B009; Tue, 24 Nov 2026 09:45:12 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC6251F000EC; Tue, 24 Nov 2026 09:45:10 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795513511; bh=ApA1EolZAFdk8jTSD56scrzuYcCnsTXqldWRwLF6D30=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lsMHhECpMclIPMnGtu0zf0pupBnYZkXAJKko1nz2op4MVz7EyK7UAvMi70u64yaNy m0jdf9unTFmIN/sCjAJOZyDUdsB02qfAqqiYhICFSTRZwrEIjTOKEFpX8/nI+q1Z/m o7g9u3MnrD4XeLbyb99HkZHrSEUOUNvu5p6TxniqIjvcw6nsWsa04QrMmAGADT15ZY UwxmDwUn1aWkbmOsWlhnP7K9ATyYL/9pIVm0gA47Vh2h9NG14Iy82PwToW30MsMQLd dpKwMcLtBcgkoyigbi3QCzPfCuxoYA97ybDBh398iA/6W5JWKiWFtMhQoOEdEi2u46 U1W/qV08lIJwg==
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, linux-coco@lists.linux.dev, Alexey Kardashevskiy <aik@amd.com>, Luiz Augusto von Dentz <luiz.von.dentz@intel.com>, Greg Kroah-Hartman <gregkh@suse.de>, linux-sound@vger.kernel.org, Jason Gunthorpe <jgg@ziepe.ca>
X-Mailer: git-send-email 2.56.1
X-In-Reply-To: <20261124-device-trust-core-v4-0-037eb0d17b1f@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