๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26363

Re: [PATCH 0/3] dma-debug: skip irrelevant buckets for partial syncs

#26363
From: Marek Szyprowski
Date: Thu, 03 Dec 2026 12:17
29 lines
10374 bytes
On 10.11.2026 22:36, Juanlu Herrero wrote:
> Make the ZCRX area size configurable, skip DMA debug buckets that cannot
> contain a partial sync, and add KUnit coverage for bucket bounds.
>
> Earlier Fastio ZCRX registration means with DMA debug enabled:
>
>   driver   pages    before     after      time saved
>   mlx5      65536   4.720 s    0.942 s     3.778 s
>   bnxt_en  131072  10.658 s    0.556 s    10.102 s
>
> These runs used an earlier patch revision and workload. Later
> SG-controlled CX7 runs showed no overall registration gain.
>
> Validation: KUnit with KASAN/lockdep, W=1 build and checkpatch passed.
>
> Codex assisted with implementation, review and validation.
>
> Signed-off-by: Juanlu Herrero <juanlu@fastmail.com>


It took me a while to understand this optimization and indeed itย looks
correct. I would like to take the whole patchset to dma-mapping-for-next.
Any objections about taking also the first patch via my tree?

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland
Technical Details
Message-ID: <778b6afe-b25e-4906-bf4d-c6cead3bddd3@samsung.com>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376587-linux-kernel-netdev=dewy.ru
References: <CGME20261110213736eucas1p1eab83ca5602049b731a5e4937b7d8c4f@eucas1p1.samsung.com> <20261110-zcrx-dma-debug-registration-v1-0-48743ea61631@fastmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376587-linux-kernel-netdev=dewy.ru
From: m.szyprowski@samsung.com (Marek Szyprowski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 0/3] dma-debug: skip irrelevant buckets for partial
 syncs
Date: Thu, 3 Dec 2026 13:17:34 +0100
Organization: Usenet Network
Message-ID: <778b6afe-b25e-4906-bf4d-c6cead3bddd3@samsung.com>
References: <CGME20261110213736eucas1p1eab83ca5602049b731a5e4937b7d8c4f@eucas1p1.samsung.com>
	<20261110-zcrx-dma-debug-registration-v1-0-48743ea61631@fastmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2484846"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:rKm2ilP5RCoTaz7560ZSaXlFTm0= sha256:A8VHGfNwfBP5e0UH1P2WJY4WXlCV5JyFy8CAlhcBMEs=
	sha1:b2jvRFHAiw1hK4gBuErSOMByqlc= sha256:ESWNiOc76K+Ei3m2RMnWqRUql31KEs5crCRR00D6+Hw=
Content-Language: en-US
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 04BD9117933; Thu,  3 Dec 2026 15:18:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.539
X-Spam-Status: No, score=-3.539 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.001, 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 (1024-bit key)
	header.d=samsung.com
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 labD0j6LIN-c;
	Thu,  3 Dec 2026 15:18:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376587-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=samsung.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id E6230117931; Thu,  3 Dec 2026 15:18:08 +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 097AF3180F; Thu,  3 Dec 2026 12:17:49 +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=1796300266;
	b=OVmU/y1PePznwLsb3saBOPptv+1kUJy4RjC7UofxZCCSZiXVUska+S58Dttz4yt9zNNb
	 L/jXewgU8UdNa0OnnwX7EBwrLtzz+j8NcQUlA87wIea3BeSZ3MZh1Rtm6M0UnJCGKdYNh
	 Z5jubrNCX+I1l0ceQ9eLwXohs7ul+ISzm3k7qskmwE2JA/u1uwCQJU3T9CG+ltTzst+U/
	 6VqRRz1rjIizte14zK4IplcL1PrshRpAGCpFyxXZ15dnOumY6ZYPaxJzDRCd7p8axb5aw
	 Tkh7SjUkOHqgVzvUu6SuETUkjlQy7HAlbh4FCO/uv6YRo3NgEX1J0Vz1wkPCKDOfp4Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796300266;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter:
	 DKIM-Signature:Received:Received:Message-ID:Date:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:User-Agent:Subject:To:Cc:
	 Content-Language:From:In-Reply-To:Content-Transfer-Encoding:
	 X-CMS-MailID:X-Msg-Generator:Content-Type:X-RootMTR:X-EPHeader:
	 X-CMS-RootMailID:References;
	bh=LQrXc3LIvtY2ZLWnR16mUyHmdlscY8IcyrXSJM6ZBOY=;
	b=SCNfv1Sz61cUSx68hGn7lZwN4bi2Zy5wzMNpd5XrYQiuBYInTx2kmX/bTZpg1M9GRHLU
	 0B2PkYlCjyVGQk18huewzrzLY34dJHbRJlMBF3qxBSdv1E97oZCY6xNBe7qh2u5vZbqPo
	 5YOh+6v5BNyx6soLYP+abXyrqg4gBf67Rfo1aaBCQ6NoVVEVVY5OucMGR7+L0ayA0LORG
	 1JZZj0+Y0XVwsGWSLZ+Vomo+XTk3zhCpywkCa38d58AjrcRcB9EF8gwbFsELdusa8pdAk
	 +L5wInzyaC/7xuYdgITSuVeA6iMQy7Vz9BGHk4LwjUcFSkTQxX/qIeGFD+scKvlCp7Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=Lupickho;
	dmarc=pass header.from=samsung.com;
	spf=pass smtp.mailfrom=samsung.com;
	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 E789D606A6A6;
	Thu,  3 Dec 2026 12:17:45 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=Lupickho
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=210.118.77.11
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796300265;
	b=c56OhelPqZcbDZ3tH9OhNYQUOh4588RrRufxmqmOyvd0howfRCzFA32YgRlsS1CXWEsb
	 Vk3B0BiIaWVF2SeX1SImgpqcYATvmiKW2WwUTO81Ns+2f5dw2wotLBJkZkbIzWOMwbqJ/
	 ImMsee/sLNoMYuLutFdEXzr7Oo4dBUp5tZYFpxoEli8T/r1nDf5inKlrh51JSB+CrmchT
	 69kog89ZSTUTMvvVGiwHt95RTXkcW/ZQUqet5X1koMhlDg0IuP0SEVK6sOMB3ONTfalvd
	 b6CG+VEtVzlDo3HpMhpDuIFdec2G6jx2S7ZyK9EnWS8/Wdj1m/343qItCLEkXvfFjAw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796300265;
	h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Received:Received:
	 Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:
	 Content-Language:From:In-Reply-To:Content-Transfer-Encoding:
	 X-CMS-MailID:X-Msg-Generator:Content-Type:X-RootMTR:X-EPHeader:
	 X-CMS-RootMailID:References;
	bh=LQrXc3LIvtY2ZLWnR16mUyHmdlscY8IcyrXSJM6ZBOY=;
	b=GNw4EtZu/AM3qha42iINEcktwxvKCr2yL7N/XiWgPhfgGdxPrXKEyQe9una4PqqmqFtL
	 VV7+pcoj6l43TSsoBAejTEBokwNQq0zPQgkwxGgAiJqKGKWv/ufgvfNTkM3oMrb1SE7a4
	 5x0ym6XQ5qdCeTj8EAucXAUBFltq/NijUwRB+q+T1AqCGqxhyx3TLhWxcerTA0Ehcq/UW
	 mlxxPjusq5Cl5UHN4XDbZpcPSTLZdfX1LGRmuO2A0+FIGc/JOT2YnFJ8oDHHmDHC1/Cio
	 66HhbABIZEG+qy+uxmqKsXGNH3VpTBZOjzKCMVqg9TrfHKBTWPGn5zQwEbZZlM/DsIQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=samsung.com;
	spf=pass smtp.mailfrom=samsung.com;
	dkim=pass header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=Lupickho;
	arc=none smtp.remote-ip=210.118.77.11
X-Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAD23606A69A
	for <netdev@vger.kernel.org>; Thu,  3 Dec 2026 12:17:43 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BAD23606A69A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com
X-Received: from eucas1p1.samsung.com (unknown [182.198.249.206])
	by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20261203121736euoutp01fd8c9bfee29dd39cad63d81021b3eb9d~tvZDNCd_70045500455euoutp01F
	for <netdev@vger.kernel.org>; Thu,  3 Dec 2026 12:17:36 +0000 (GMT)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20261203121736euoutp01fd8c9bfee29dd39cad63d81021b3eb9d~tvZDNCd_70045500455euoutp01F
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
	s=mail20170921; t=1796300256;
	bh=LQrXc3LIvtY2ZLWnR16mUyHmdlscY8IcyrXSJM6ZBOY=;
	h=Date:Subject:To:Cc:From:In-Reply-To:References:From;
	b=LupickhorJUMpmygOli536LYFX5gbN07dFrQ0EvEkzPxzy0wJpxjorxQ9va0bfCKf
	 6cc/+CpS09ptpq0MQJ42LSTwLtmPD2P5d24m6qL875HWr3hBHM3Hm1+cmI9STC+2A/
	 gR0CZryDSgtiiYXx0GhHW/3QKuk+FWVMjV94LpIY=
X-Received: from eusmtip1.samsung.com (unknown [203.254.199.221]) by
	eucas1p1.samsung.com (KnoxPortal) with ESMTPA id
	20261203121735eucas1p1a13ee6a4ae29e6b858121e68631246d5~tvZC4yGIW1389413894eucas1p1X;
	Thu,  3 Dec 2026 12:17:35 +0000 (GMT)
X-Received: from [106.210.134.192] (unknown [106.210.134.192]) by
	eusmtip1.samsung.com (KnoxPortal) with ESMTPA id
	20261203121734eusmtip1433525f664582e1d6153e96e65a3ff3f~tvZB1rvyA2496724967eusmtip1D;
	Thu,  3 Dec 2026 12:17:34 +0000 (GMT)
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-User-Agent: Betterbird (Windows)
X-Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org, iommu@lists.linux.dev
X-In-Reply-To: <20261110-zcrx-dma-debug-registration-v1-0-48743ea61631@fastmail.com>
X-CMS-MailID: 20261203121735eucas1p1a13ee6a4ae29e6b858121e68631246d5
X-Msg-Generator: CA
X-RootMTR: 20261110213736eucas1p1eab83ca5602049b731a5e4937b7d8c4f
X-EPHeader: CA
X-CMS-RootMailID: 20261110213736eucas1p1eab83ca5602049b731a5e4937b7d8c4f