From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.74.74 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796370949; b=T83Vl79EfTFSiaqPb9Qk59T6tA1pryjQh+7G4F4V3rCwWhESakraBRzSe4Wm8wOpMGP3 MOjX87yIKQ0K5cv3Y9qicIEHrhXKSexBYkn8ltCOr5O0vNHckTeue03T9fBJpbFKf5KCO VvbWOeEVTy3jlYbKStNAxOW7CQsx/QQXQtUWGX8JnSZr5XSMWWVTChoVRjIW/3jxEJJY6 9UZHujAN5ljamlv+XPSoRexj0Fx/Z04z4rF7ApsQFJPYVaPb65GFUDYSy6Ymh/pd/nuT5 Gz8q4IDxqFyY2TBMPxICdLZnWL0ceEQlOCdKVtdeaHmNx8yJ4cmytVwCMttpr0a1bog== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796370949; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:Content-Type:Content-Disposition: In-Reply-To:X-ClientProxiedBy:MIME-Version:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=eRVHbe/COOSEEdKxGXfqiISu/5w4mzhF0+p8l/Bi4Qo=; b=hCIZ8Wu6KIXjzBHB5H6Wq0o+SqGp5195xCRYAD451m02dtalMLDpL6XHjk0Wh7D1wxr0 9lnM26teBoqn1h8AG7UeSFAFW/Okb7MDQQfv4a+SbPSrgXdCONWgnGyGVZbNbQ9cg4js8 Cu42pDpmOh195p2b7agPIakEhctDH0kdtt4PJP2Uts+w3J72lp2YTQJpClJd7uovbO4gB 81u4Rwq/4DT7cxjeqRsZYFlB5tgYwj8rAx0XqCQxMoC8yP+Jtb46AA84BlCzUFxDzhRCr M0iHsmHv97WgoKKxi/nPR1vckehgcPW4qnP7q1Q+vT6MJLGaOYCXADnNsuJgq7iVJGg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=valinux.co.jp; spf=pass smtp.mailfrom=valinux.co.jp; dkim=pass header.d=valinux.co.jp header.i=@valinux.co.jp header.a=rsa-sha256 header.s=selector1 header.b=DrfTo1am; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.74.74 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazon11021074.outbound.protection.outlook.com [40.107.74.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC004606A322; Fri, 4 Dec 2026 07:55:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC004606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=valinux.co.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=valinux.co.jp Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=valinux.co.jp header.i=@valinux.co.jp header.a=rsa-sha256 header.s=selector1 header.b=DrfTo1am ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Lsa+KfQw1aET3ZMI+hmiUMYhjtKP6Nx2JVSs2yZAuuaPj0EHMdAhsoJsc1Y8eCJCYO2BGuWKVqdxkUyVB0KXPBMyaRoZDLRxRdN1eLvHic3rB6mnJB8b27aPDJxRXsw4KUjuZD6lHJZR8f6akvvdtlQ6RVB2NNGA9jxGzLcVzz1ug5zNzCYAgFKKK8HWIEwHILkpVycGOU6dI2Kcs8SBN+gOWBvD2BHbsPWwKYd0DYBrma6B13TeeMrDWDTu7z5Mzn65+8T6eAY19hG8rLSfm7KjZHiBsVOFlmgLYfY/E+JLHSaFPLL+mm62iwiZBGsDXUJmw8jiXlHjDxb/k4HI2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eRVHbe/COOSEEdKxGXfqiISu/5w4mzhF0+p8l/Bi4Qo=; b=mYMG6dnExiX44vqIF4ja5dY/c9LWotkjZa1B5qZqKPF50YzVAxRbSHyIAE6+/QWEIVkuquWn8jFEG5iVHphehUlp5Q5wSRUhqmhjCQmzahf3iHAMorc4pHj9Puvqqrww77MBNHOMCh7ALbJwlNPdi/pwfoZbQk+xDALeMzOHfDArv486c/wschkpAssWXWdtXoEJBDJZEBkiFHHHPJvebwvyXCwsZqecq5ha4FMAX6Lv/W8GqzFytEFeF3DI2cmn4S2gVeqaOXU8oU0sV+iHWUq3bJfGnuL586nz4lK77cZWiJY0omCuI+1q2mVooVlrqW3oJuQRJKx6aSwU2Myo1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=valinux.co.jp; dmarc=pass action=none header.from=valinux.co.jp; dkim=pass header.d=valinux.co.jp; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=valinux.co.jp; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eRVHbe/COOSEEdKxGXfqiISu/5w4mzhF0+p8l/Bi4Qo=; b=DrfTo1amUi7ikStyJgr3sVO32LjTx6ox7AVirCInIlcS1U17OnFkRvI75oXz4zV6wfu9d8GLA9oYgj6N626mZiOjfEOQPyURYVHp6rRlHmN2y6C6wdKWL9NMrfefqdF5LWbmFuhosdf6KYM0L9F8lidh2gpXaCNAz3lHDYr/OHM= Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=valinux.co.jp; Received: from TY7P286MB6866.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:325::11) by TYWP286MB2841.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2f8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.11; Fri, 4 Dec 2026 07:55:43 +0000 Received: from TY7P286MB6866.JPNP286.PROD.OUTLOOK.COM ([fe80::cce5:2aa8:53f9:dba9]) by TY7P286MB6866.JPNP286.PROD.OUTLOOK.COM ([fe80::cce5:2aa8:53f9:dba9%5]) with mapi id 15.21.0688.011; Fri, 4 Dec 2026 07:55:43 +0000 Date: Fri, 4 Dec 2026 16:55:42 +0900 From: Koichiro Den To: Vinod Koul , Frank Li , Manivannan Sadhasivam Cc: Gustavo Pimentel , Serge Semin , Cai Huoqing , Niklas Cassel , Devendra K Verma , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v8 0/7] dmaengine: dw-edma: Support dynamic LL appends Message-ID: References: <20261107133027.364237-1-den@valinux.co.jp> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261107133027.364237-1-den@valinux.co.jp> X-ClientProxiedBy: TYCPR01CA0209.jpnprd01.prod.outlook.com (2603:1096:405:7a::14) To TY7P286MB6866.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:325::11) X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY7P286MB6866:EE_|TYWP286MB2841:EE_ X-MS-Office365-Filtering-Correlation-Id: afd599fd-2844-40c7-fac3-08df51dbff0f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|23010399003|366016|10070799003|376014|7416014|261021121427099003|56012099006|10067099003|261102123227099003|261022075727099003|261022105027099003|261028144727099003|261026121527099003|261026135527099003|261021123027099003|261026140227099003|261009223027099003|22082099003|18002099003|6133799003; X-Microsoft-Antispam-Message-Info: RTr9SoM6lkpyjGslipaz2sg9w6yJbSgPxmV9nmHQ0YYcSs7ujW9JvFAlUftClXExoZZdt1me1n2nOJXhxhL/MT5W+WsFuvKwe92Hxq+xyTWzY9oKPvOC98zB9Vkive7D6FwH5nZbUIcF1iVzHjUm4h6k6IgxIj/hZxvATryICVSi1M2QsN7hcObYKrfswwc99dpW2rXcC5Dk6QmA1gYyrPaCfor1N3tskjvT3kGjH/LHMOn5MkjsEzcZGqMLRYs4eS2svstUo2mRQBw7sfW94KYqLijA4g7oNiRR/ApWI0zI3djxIQJc5q7yHm9zNDhjtvKZ08brIeFUAyIm62Li3dYmfnedvesfAUIxdymRrE7zxAn0tvll9KWmfDCR16b6EPjgWeLb27xdErge85/Rv3ONX9ufoTErusd1N1mbUbpZyuXlxq5B3CNqjxo3aYR5MB1zXwrTA72CDrDvzIN4dQs5aRU/EITML7nPb8WKOoItYuZVC+vQ/HhRmORSB1x+6tQ6TlMNmBB2TzX4lJldoVRP0mVJ+2v/qOD4EL7/n3PQxghTTSf8AdS1yrVGq598qphWFTbGyLCTA7LDK5ULT6r5Ys9qy7f7BH8WiG5M6kNktjuX/uwjfkIihr/yoEiF X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY7P286MB6866.JPNP286.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(23010399003)(366016)(10070799003)(376014)(7416014)(261021121427099003)(56012099006)(10067099003)(261102123227099003)(261022075727099003)(261022105027099003)(261028144727099003)(261026121527099003)(261026135527099003)(261021123027099003)(261026140227099003)(261009223027099003)(22082099003)(18002099003)(6133799003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?EED10aIOl6LMIfoSCHRiiy7SEd7crhwV/8mUNAexhw/EjXHX51k1Jm63rWdk?= =?us-ascii?Q?rrtu2B/Qx4kPZj2yg7VkWNe2EdYs/NZ3PfTeF9wkBJASat93J9zHEkWh1w8r?= =?us-ascii?Q?ujPD/P7TqMw1uNVQLHCqI+QrwqDHdPTXyK9D0cj0uoj8kbsHRVQ6Do/aQR+I?= =?us-ascii?Q?gNcxwc3XggS7LizBm+0uoQrN5Bwuz5qv4EIO15PsB2Baya7I+wgvZ8WZ9LE8?= =?us-ascii?Q?Hl8g62t9bfZh7IEaVICgI3yHQTvmTkc9fVue0HeDqxCphNw1rKTSlz3hQHgk?= =?us-ascii?Q?5V3XOxvlopsmwxBw7QgjE69b8e5oaKTmg8BujN1tGcoKXLLj1Mx+k3XRW8R3?= =?us-ascii?Q?umxHDQxpRMtlfWZlh2wtBx3wN1TRXDFEGZqDPvokUxQ6aspUD7nNyL0K0Orr?= =?us-ascii?Q?aRztKnrw8lCpN8lT7cj938MM2rQps5LlqOSmDT+IzIcJGGPglBzBEsZJ16gK?= =?us-ascii?Q?AojxvWqw9iYnzFtkTtKfbusW9IIxkzt4nyzPCv/w8bT9rmEKkyUk+DFAIhCE?= =?us-ascii?Q?NLQ0P3QDRUis5LAyWMndDhPRkim9le80w1phmpisZ7hOxOpwGMy/RveXS7SW?= =?us-ascii?Q?wJgOnAs6SlEuvtTqREAXrwPu5XGCHs0FLlLaYxpX9KT+BG0+ScIodkUF+wfY?= =?us-ascii?Q?7ba7491IIzjQmfXhgAiZOBNDeiYs1KhMI6JpGGs9T2hwm2z9TbRLfDgAneFd?= =?us-ascii?Q?uE0rud5nOQtxDJnjXhZY9la4260ov/BnqDeqkWqPY6onUTSbFUoJGcIUHm7p?= =?us-ascii?Q?mhgJsZgkk0zGHGEgcwFZ3iTC2O1AULBeqljiev0tBo+JcMfBuCFwda8m4MCf?= =?us-ascii?Q?XbqlkLENnXVG2DlgUkIVJa6WAvmW3hGZppwxVCp73+LyiDHOP8qhFhbZyvEC?= =?us-ascii?Q?yfGpgGOF+JziDuPLFISWkdnWZbtHYtXZt0H4yX0VZ7HwBtf+e0bNdUqKJNvv?= =?us-ascii?Q?t8q6mLSTgEmh8hDyhZFuu5U791fqJPPSw9SpVVYyDXyaMjcIPNZ5leTcY712?= =?us-ascii?Q?OPgwQK6GT6FZnfGOWTCvAfKPKNWkpelrTEwum3l6fJRxJDaJk8uUW/brfGZS?= =?us-ascii?Q?6i8fA5z0a+1abwWg7ByzNMd/C/u69+IVtmmfd3zqHbSHdqjy9OFRpnO1r4+p?= =?us-ascii?Q?Q5YeK5M4jNvchh+I/HWJrpt1silXStaqB7qUW5MTfF/zooGv5zl0MLfEY+O+?= =?us-ascii?Q?MJGTgtVpiTGRCoNTpb0KqqBw7zzsI4rQABmZyPt0hiFMSHzQNqMlHMOAGJ+n?= =?us-ascii?Q?uGm90YK8pU9x5PR9zdT2xB8OeV4YR26Eg7jw8m4ZXMuJzb6FxFjFTZ/ErDRm?= =?us-ascii?Q?RpZhxXjreU1aTEmaXti5yvB2OyKGbuphG1XzPvXMgsCaXxCiW0dIidA30D+W?= =?us-ascii?Q?Zazu8X79tno+nO0hLtpEXHPVEyHKyx2ZBr15QlAAEZlh15r7j6XAeWwswunV?= =?us-ascii?Q?2t5A3djSieqsN08wdpEXC6cdAXLlr55yFqWtKKggUoGVOT0S1jRhpw3dhhfO?= =?us-ascii?Q?FQXc5JYdiBelvUN980cQrIQ0G+Esgw4SKl/096wOvb1D6dt1uq0gPBKq8NtF?= =?us-ascii?Q?1Lyv3bY29KejB4CvA1f5JFQ5UxMvonmS4hsIrcShZuwOJykDgjvnxy+DhQNl?= =?us-ascii?Q?CkAHR56Sllvus2xwfd8Djjf2LCt7tEQR8IzRN89/DM3Ufw6JL5tcGy1hNasw?= =?us-ascii?Q?qaceQcculCGbedg3vhaVw6Nsvciqi8Q/4YV0cC4H6+UKCaW+depnEUxjbuPw?= =?us-ascii?Q?XEFCk+Oh/mJbkEVwd/enss1fuw7tR3tsWNB26uoAkxcGM8PpgSX2?= X-OriginatorOrg: valinux.co.jp X-MS-Exchange-CrossTenant-Network-Message-Id: afd599fd-2844-40c7-fac3-08df51dbff0f X-MS-Exchange-CrossTenant-AuthSource: TY7P286MB6866.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 07:55:43.0933 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7a57bee8-f73d-4c5f-a4f7-d72c91c8c111 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uuPIFUvbGEsAZ9kW1RmIE7QHgg4OmMb7UZSaWP0soNUksjeu7By02eBtyZzBcqAwR2TmEu5aAjI8AHMV1CzmQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWP286MB2841 On Sat, Nov 07, 2026 at 10:30:20PM +0900, Koichiro Den wrote: > Hi, > > This series lets dw-edma append requests to a running circular linked > list (LL) using PCS-CCS-CB-TCB Producer-Consumer Synchronization. This > reduces stop/start cycles between descriptors. > > v8 fixes the premature LL completion reported by Sashiko on v7 patch 6 > and picks up Frank's Reviewed-by tags (dropped on patches 2 and 4 due to > updates). I reran the tests, with additional tuning on K3 and S4 to > reduce run-to-run variation. See below. > > Based on dmaengine-7.4-rc1 (aff5e6a77fc6). Hi Vinod, Just a gentle ping on this series. Is there anything else I should address before it can be queued for next? Thanks, Koichiro > > > v8 (Re-)testing > =============== > > I used three setups for testing: > > Id Endpoint Link Host > --- ------------------------ --------- ----------------- > (A) RK3588 ROCK 5B Gen3 x4 CIX Sky1 Orion O6 > (B) SpacemiT K3 [1] Pico-ITX Gen3 x4 CIX Sky1 Orion O6 > (C) R-Car S4 Spider Gen4 x2 R-Car S4 Spider > > 1. pci-epf-test: > > For all (A)~(C), same PASS/FAIL/SKIP set with and without this series. > > 2. nvmet-pci-epf: > > I ran fio on the host against a null_blk target, with runtime=30s, > ramp_time=5s. Each setup was tested five times without the series > (base) and five times with it (new), alternating as > base1->new1->base2->new2->...->base5->new5. The table shows median > throughput in MiB/s. > > (A) RK3588 (B) K3 (C) R-Car S4 > (5.60a eDMA) (6.30a HDMA) (5.20a eDMA) > ---------------------- --------------- --------------- ----------------- > rand read 4K q1 36-> 35 -3% 62-> 52 -16% 12.1->11.7 -3% > rand read 4K q32 180-> 162 -10% 169-> 164 -3% 48.4->70.7 +46% > rand read 4K q32/4 188-> 160 -15% 169-> 164 -3% 66.1->76.9 +16% > rand read 128K q1 718-> 661 -8% 942-> 950 +1% 207-> 203 -2% > rand read 128K q32 82->1199 x15 1140->1590 +39% 696-> 917 +32% > rand read 128K q32/4 51->1248 x24 1810->2428 +34% 1243->1328 +7% > rand read 512K q1 1039->1034 0% 1281->1287 0% 143-> 196 +37% > rand read 512K q32 58->1312 x23 1800->2368 +32% 1217->1294 +6% > rand read 512K q32/4 46-> 953 x21 1816->2528 +39% 1288->1371 +6% > rand write 4K q1 34-> 26 -22% 58-> 48 -17% 11.7->11.3 -3% > rand write 4K q32 70-> 148 x2.1 117-> 220 +88% 40.6->47.1 +16% > rand write 4K q32/4 69-> 151 x2.2 115-> 219 +90% 43.3->62.0 +43% > rand write 128K q1 466-> 474 +2% 758-> 781 +3% 142-> 144 +1% > rand write 128K q32 888->1310 +48% 1686->1921 +14% 557-> 696 +25% > rand write 128K q32/4 900->1287 +43% 1686->1920 +14% 733-> 860 +17% > seq read 128K q1 663-> 621 -6% 905-> 836 -8% 203-> 207 +2% > seq read 128K q32 69->1184 x17 1150->1590 +38% 699-> 938 +34% > seq read 512K q1 948->1033 +9% 1304->1276 -2% 146-> 193 +32% > seq read 512K q32 55->1335 x24 1804->2345 +30% 1072->1167 +9% > seq read 1M q32 49->1021 x21 1841->2484 +35% 1249->1330 +6% > seq write 128K q1 504-> 464 -8% 810-> 833 +3% 138-> 140 +1% > seq write 128K q32 897->1307 +46% 1689->1922 +14% 565-> 704 +25% > seq write 512K q1 569-> 715 +26% 271-> 306 +13% 113-> 172 +52% > seq write 512K q32 899->1294 +44% 1687->1921 +14% 737-> 861 +17% > seq write 1M q32 843->1194 +42% 1685->1918 +14% 747-> 876 +17% > rw read 4K-1M q8/4 193-> 529 x2.7 531-> 727 +37% 453-> 499 +10% > rw write 4K-1M q8/4 198-> 530 x2.7 532-> 728 +37% 453-> 500 +10% > ("/4" in "q32/4" means 4 jobs.) > > More briefly, geometric mean of the new/base ratios across all runs > in each group (5 runs x N cases): > > (A) RK3588 (B) K3 (C) S4 > --------------- ----------------- ------------------ ---------- > QD32 (16 cases) x4.46 +28.2% +20.0% > (x4.06 .. x4.81) (+27.2% .. +28.7%) (+16.9% .. +22.8%) > > QD1 (9 cases) -0.9% +0.2% +11.5% > (-10.8% .. +7.3%) (-3.1% .. +4.6%) (+5.1% .. +16.5%) > > rw q8 (2 cases) x2.70 +36.8% +10.6% > (x2.48 .. x3.13) (+34.9% .. +38.2%) (+9.7% .. +12.4%) > > Parentheses show the min and max of the 5 per-round geomeans, with > each round comprising one base/new pair. > > Note for (B) and (C): > - To reduce run-to-run variation, both base and new kernels used > nohz=off on the endpoint, and the DMA IRQ was pinned to CPU4. > > Note for (A) and (C): > - commit efadda401c5c ("PCI: dwc: Set DMA_BYPASS bit in outbound > IATU CTRL2 register"), which is not in dmaengine-7.4-rc1 yet, was > applied to both the base and the new kernels. Without it: > - (A) often hit NVMe I/O timeouts in the 4K q32 write cases with > the series applied. fio still exits successfully and the > numbers look plausible, so this is easy to miss unless you > check dmesg. > - (C) was unstable in general. > > 3. Terminate/pause test during dma load > > Following Sashiko's report (against v6): > https://lore.kernel.org/r/rbkljnmrf4ctc7rj6qlwhvhemvzvxx6pdxjxsdc2bmicez56ms@bgshyuvsjuqh/ > > On (A) and (B), I used a locally modified nvmet-pci-epf to > periodically terminate DMA transfers or pause/resume the channels > under fio load. Terminated transfers were retried. Baseline, > terminate-only, pause/resume-only, combined and post-injection tests > passed CRC32C write/readback verification against a memory-backed > null_blk target. > > [1] Based on Ubuntu-riscv-7.3.0-9.9.1 + some other out-of-tree patches, > especially to make EP mode work on K3. > > > Note > ==== > > Much of the complexity in v1-v5 came from working around channel stalls > on R-Car S4 with the out-of-tree direct-DMA NTB transport. A channel > could remain stopped and ignore further doorbells without reporting an > error. I have not reproduced this particular behavior on other SoCs with > different DWC IP revisions, or with the in-tree DMA clients I tested on > S4. I have not obtained further information to explain it, so it remains > unresolved. More details: > https://lore.kernel.org/r/tkyu5rsxfa7i6rxxw6qxmmwke5qnlxptwx4j2s24fhftsmmf26@gamef2ec4wwm/ > > I substantially simplified the series since v6 because I was concerned > that keeping all those workarounds would make it too difficult to review > and leave it pending indefinitely. I continue investigating the S4 > stalls separately, alongside the work to upstream the more demanding DMA > clients that expose them. > > > Best regards, > Koichiro Den > --- > v7->v8 changes: > - Read LLP before checking for a stop to avoid premature completion > (Sashiko). > - Resample after a stopped result, and use the same sample for > completion and termination. > - Reclaim delayed completions while paused without restarting the > channel. > - Pick up Frank's R-b on patches 3 and 5 (dropped from patches 2/4 due > to code updates). > - Update test numbers after rerunning with K3/S4 jitter tuning. > - Link to v7: https://lore.kernel.org/r/20261104161227.1742005-1-den@valinux.co.jp/ > > v6->v7 changes: > - Avoid premature LL reset on stale STOPPED status during termination > (new patch 2). > - Factor out descriptor completion (new patch 3, Frank). > - Handle STOP before LL reclamation to avoid scheduling callbacks > (Sashiko). > - Restart stopped LL channels to drain published entries during > termination. > - Use modulo arithmetic for the running LL boundary and add lockdep > assertions (Frank). > - Keep HDMA watermark interrupts masked for non-LL channels (Sashiko). > - Use the dw_edma_ prefix for tracepoints and the event class > (Sashiko). > - Add Frank's Reviewed-by to patch 1. > - Link to v6: https://lore.kernel.org/all/20261030150742.2586776-1-den@valinux.co.jp/ > > v5->v6 changes: > - Drop the recovery code and the defensive doorbell handling added for > the R-Car S4 stall: IRQ-paired LLP snapshots and event > serialization, the delayed stopped-channel recheck, tx_status() > reclaim, the LL interrupt placement policy, engine reset and stall > recovery. Empirically, the stall so far reproduces only on S4 (5.20a > (GA)) with out-of-tree direct-DMA NTB transport. > - Read progress in the deferred handler instead. A channel counts as > stopped when its status is STOPPED and the transfer size is zero, on > both eDMA and native HDMA. > - Fold the STOP/PAUSE drain into the progress handler. > - Rebase on the circular LL groundwork in dmaengine-7.4-rc1. 14 > patches -> 5. > > For earlier changes and hardware observations, see v5: > https://lore.kernel.org/r/20260812155721.2807506-1-den@valinux.co.jp/ > > > Frank Li (2): > dmaengine: dw-edma: Dynamically append requests while running > dmaengine: dw-edma: Add trace support > > Koichiro Den (5): > dmaengine: dw-edma: Add a channel transfer size operation > dmaengine: dw-edma: Avoid resetting an LL on stale stopped status > dmaengine: dw-edma: Factor out descriptor completion > dmaengine: dw-edma: Reclaim LL entries from hardware progress > dmaengine: dw-edma: Use HDMA watermark interrupts as LL progress > > drivers/dma/dw-edma/Makefile | 2 + > drivers/dma/dw-edma/dw-edma-core.c | 286 ++++++++++++++++++++++---- > drivers/dma/dw-edma/dw-edma-core.h | 8 + > drivers/dma/dw-edma/dw-edma-trace.c | 4 + > drivers/dma/dw-edma/dw-edma-trace.h | 117 +++++++++++ > drivers/dma/dw-edma/dw-edma-v0-core.c | 6 + > drivers/dma/dw-edma/dw-hdma-v0-core.c | 68 +++++- > drivers/dma/dw-edma/dw-hdma-v0-regs.h | 1 + > 8 files changed, 442 insertions(+), 50 deletions(-) > create mode 100644 drivers/dma/dw-edma/dw-edma-trace.c > create mode 100644 drivers/dma/dw-edma/dw-edma-trace.h > > > base-commit: aff5e6a77fc69a7c490246465940d18422d7c631 > -- > 2.54.0 >