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=52.101.125.102 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796217943; b=tX/zHaIL72gtqoC7MTktYwLYjJwPSn07ROodV24vUUPFpG1D44o5Zafe+Yon0CHH07Qu CLH7JdUbAf7VCXMTtLGJ68SJ/GyVMiJKXQGY6KvJMIhBj32zMK15buFgRluDClDplP7A+ HbcFZtkM+R233aNtN9Sxe/Z/udZgrjJXv4QQepqXs+ZDV+qmWyi0cCRtcYI3oJ1Jgx2Mp mgya+ZlpT2PA3/1ZRCbLKCNbRGQop3G0dboQCdGOgZOTgGNP2Ap4v3fkiUCg2IKoS41ys QG9k8rPyvzGWmoRctKpZkE8TIjltmpf5Qth7H4/b2bc9nfXF92B3VhZoUh57D5ISKxA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796217943; 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=OV31RpJgTNcCpqQZbuppEIlNbkCJhM0odl3LrNf/cMI=; b=sSmWwSNoY+ugYYmmkakmrknoEYWwiTqCNPGFqPvbKJtyZTz47K9CVYO9X2giYmRHVC3D copiBWP74BICcOBdIvpimi2O7DTzKaJwml36GNEpaJT4CMch+X4JNoZDQOv3mkSDEOxTi GF6rAmmGxaUezmdG1Puubzvr/s7gfwOjDr0fpKP+lSoXZ1+nZfI9qmHhv5bmG6or3q1c2 AcsG14+mAknPfhs7EgJ1RaeS1BxOqdrol+PROMfezCYbmPvqAcxMSgJ5TarsnEKHM6BYh hxegt/2ZaS54GIejDAi/cI0m4SuA3rs7Et6sZ+6QL29fQA0+c09BzMxJGtF4CFKxqCg== 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=jDwSk5eh; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.125.102 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11021102.outbound.protection.outlook.com [52.101.125.102]) (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 62CC4606A322; Wed, 2 Dec 2026 13:25:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 62CC4606A322 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=jDwSk5eh ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DL3s8+rf1jPGK67I3DgAP+qQo+CGOb0D9V6XWIfXP1PEoLybgoDFLd6lk3p0eim3IV5Rr+lXg0o4+GavvCzryXzac+RQlBTqdGx6WgPgfaFiLCGTDSZAKnb/7ENVHLQwsENu/jvfzaKr3jEPvVYCnKPv11eTNrOBAiqprL7tClo/gUMPTDflPwPUYk5mnGxRgNIX6UTnuzBG86pe/fpjU11tYmkc7kmXcM+3dxDIotje+s+r1kvnMIcyBur+eHFMpoetHR7ZEPdVuYdfTjzh3wdx/SWeB9YyPAdARadYs9/Gm3+/e1M3+HKxh5MavlOsUtR7Of8tyCfgOoQhqh+lJQ== 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=OV31RpJgTNcCpqQZbuppEIlNbkCJhM0odl3LrNf/cMI=; b=f5FbCkCLCxXaATYSnOhzhxfHFPkgsToc3VGRhtNptfHpXdkhKqxd2AwjvFiK1MrwRe3kBTW/eN65wNzcxHb9qBJhJswf7Wd+53tyICk0beMLUjghz+2rJ+SSdcgsD+i7n4CftO+SbpEktiQb7NRCjozkdt3K//XnMKMTLI6bK6Sd7+iYo52K/0ZsBw32466Egtm655ll8PeX7U9TNu27gK2EU/CIZJEqmPq2U36c63KCpLtL4O+9e0voqehnCsp6P+tFZgl3jJLjLoJaaEaXL9Rfnq3/AOwQUv77YCl+xm2fX68SVFeSQ9C9aVUivWHmuhNTBYtuJd2Htsb80TL5Ww== 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=OV31RpJgTNcCpqQZbuppEIlNbkCJhM0odl3LrNf/cMI=; b=jDwSk5ehOuCmMz55uZz7B0GqzkSzRLSv/V2uErFO4c3ZmxISMcnb8p+jCRevJNVqhV+3bm4RYRyIUZsKmU2SrADnnlL4RgsxpNUFJEzPV+TViZiF3LC/euUed4Fq1YQ3lJoKR+R1d+JbrBsuxfkxtfz4JJvD/MKf/zkpteEC7/4= 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 TY3P286MB2674.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:255::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Wed, 2 Dec 2026 13:25:36 +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.010; Wed, 2 Dec 2026 13:25:36 +0000 Date: Wed, 2 Dec 2026 22:25:35 +0900 From: Koichiro Den To: Dave Jiang Cc: Manivannan Sadhasivam , Frank Li , Jon Mason , Allen Hubbe , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Niklas Cassel , Bjorn Helgaas , Jonathan Corbet , Shuah Khan , Randy Dunlap , Jingoo Han , Lorenzo Pieralisi , Rob Herring , Jerome Brunet , linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, ntb@lists.linux.dev Subject: Re: [PATCH v10 00/10] PCI: endpoint: Remote DMA support via vNTB Message-ID: References: <20261113132935.4152566-1-den@valinux.co.jp> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: TYCP286CA0233.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c7::19) To TY7P286MB6866.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:325::11) X-Mailing-List: linux-doc@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_|TY3P286MB2674:EE_ X-MS-Office365-Filtering-Correlation-Id: e7ae650c-95b4-4d8e-c417-08df5077c00b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|10070799003|23010399003|366016|22082099003|10067099003|56012099006|261102123227099003|261028144727099003|261102130727099003|261026135527099003|261021121427099003|261021123027099003|261026121527099003|261022075727099003|261022105027099003|261026140227099003|261009223027099003|4143699003|18002099003|6133799003; X-Microsoft-Antispam-Message-Info: yFoW5elRmOlO4OnzgSdvQxfDQY7UirpCPCd39CdcMoAw9w+h5zJVy7nZK2A7mWWcnjJOA86oJtptYTSI+Rl7wbSN3V3zVw6WOHOUYXj405Us4wnU4B2C1Wz3HDOK8l4qy8us2Npn7qj1DThkw1r5S4wbIC+1w6XX2N9N4YAexOOjcNFEuBQp//yhX8uHikROaYSfF+pAAyuZLO+SI7RJT2hBYIgHQcdvW+YQQr4SELM6mHE+Xd1bsKVUJ0v890yaZlnE09mjIZnbgy7qKCbBy0Hu8sNgobT9vWtlJVNFa+WXUs/mD2csstGsgllgy2f4z2rly+hfcEUSC6naGl46cBI9TZndaFM6Z7ItwiHmRGjOmdm8h6UV1igFW5utOV4tkuTfuZlFd/gCcmL8JxrOttX3RRQoZgYqMvZomASFzZMc7nHe87WZTKwzccrGhvQ9uRL/lJZ5F8V2MCJcxV2E1/MrwK2TwoQLNL7lIotIvMKhTkzWHePuxmvUWYFqTVdLGzu8C9tfFfWjjn2Uxxc95weD2URAHtW9n5e9Nag6VXlqTEMzssb1CJjbsgx7TjdZz5Mq8cfrmBZ5GAz+/fbfwCKB6yaBIyZxwu9hkjE9t1ESKb0TNHHeqoo1h3p4A263 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)(7416014)(376014)(10070799003)(23010399003)(366016)(22082099003)(10067099003)(56012099006)(261102123227099003)(261028144727099003)(261102130727099003)(261026135527099003)(261021121427099003)(261021123027099003)(261026121527099003)(261022075727099003)(261022105027099003)(261026140227099003)(261009223027099003)(4143699003)(18002099003)(6133799003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?PHcgnQD8UD8Gn1Y9EHdbbAKPh6Dn7H97VkzLv4zYrSm/AAdYtnY2l7VY5aSG?= =?us-ascii?Q?hVkqwGtEYKvzmAbj/9A2JZ5lxLTmTWGrpnrExBkUL5uotYtrCGFns/QmKVtj?= =?us-ascii?Q?1fm5AB8OM6AoI7OlgMtUnexTj+4pxExHamZxwRHi9avZwu3/tIlbyAw0p1yH?= =?us-ascii?Q?uHCEt1GDklsppfj+pVcbi3t2umxbJctKhRlFheSV9hQ50Ol+hglpFQKSR7xM?= =?us-ascii?Q?HLzjOCzikrK4B5iGkHI+tiNB5jCfzBUBj6NH12yCYXedXhPlQMbQXEfNvWkG?= =?us-ascii?Q?uzvnR0CjlGOYk8blE4hNXaQrs6t06FrI5y5OU04AgE1sQldlv+4CAd8/2Gz/?= =?us-ascii?Q?kg/izUodGR9B+E6uV01DMmWmvXxDtM6H6RILd/yQH+z5POEeX/1Z1H0FQJie?= =?us-ascii?Q?Lubv8zwS8AcgnJT4FDNHS4jg8LB9voWPTV28GoBG1Chl5cJ9/o7aL+V+5FA0?= =?us-ascii?Q?9xJ14PqFHVcx3qiIE96Bnh50Ig0F5KTyhzJPrbKk1LvsDPxjYHUx5k3zWmBt?= =?us-ascii?Q?ZdgLZilH0spyC22crLtRZFcYoEblhVb5WFroBTEvULRm8jA8udGtSRGP/G9w?= =?us-ascii?Q?GgcGF2BQ9w3mH4CQNvCSyCKI0GNKJ6hrk2qMzmExefYiOX1wv2Vv9aTpWfT5?= =?us-ascii?Q?tpvPqlmuagQ+6K3hgEhJnLMWlXbx8wERTRDPozYuOXFXZvf5Ve2ongjkhRr5?= =?us-ascii?Q?ocxbkt5RG4HW9Tz9NUFnhm+PMYR36zjr35ntEEmuhtBAjlnPU52TFjXmH3nQ?= =?us-ascii?Q?5ClMFIqBnXutVismVaDGykMIHUKVAVQFpKJeYZAjlJkHNHeo1S5IlXwyaA9/?= =?us-ascii?Q?vAvr6EMEyjNwOlL4K43Kt0pdVQMUXl4XF5G1s/k0+nAf7ol/NWk6xJLaLYEu?= =?us-ascii?Q?iEAwl2tBkHmi/j1IWkkqU2fsMF7f1q9wavmfQlHPVkKNZwy0mAl7Sg7PvD6q?= =?us-ascii?Q?sIhnvjOeYXpzphOXMOgO4FdjVjXRBiMBzV9xTChnICwkL0MdCyjF0kX68MBJ?= =?us-ascii?Q?eJj25YNZkAMtfLvA5hUNfjTMFw4IgV9jG6EAi4zKXruZYurg0cWFfH0QoTiT?= =?us-ascii?Q?N+b29xld/jJRHZpoJuQ2DT76Eiby37NunT2gJfjObYkiGQuG2lly5S+RPSs1?= =?us-ascii?Q?sSVSPx/9lZGM6BgB+Hw7OVQEZUSg0v6kE5ClfMV4BEnh6tV76CcGw15b6xCU?= =?us-ascii?Q?74rd7G1lHAFVMCG2VZRw87Vtrz6Yp35USRX6kjcR9myr/3qnj6qiN6EpQ/2/?= =?us-ascii?Q?aa391BKDLcrFGkOjmPKNiDP0eYtXqi2howM3ANJYhQlzQlFiuNKUBK6XhqXP?= =?us-ascii?Q?y2vfBwoi/uSoTNNOdvG3ZndTp+vdjjI1qBmxIBejjobykhlFbe6dpq6NReRc?= =?us-ascii?Q?wUV6j1+iixhTSKZiaWVflYVhf93F9SQ4b+q3sDUjU7SxQsPZcGOZL2wYCDaJ?= =?us-ascii?Q?o1JozLVvOCbt1MXkKLGEyUQCUog3V7PZJp/6FSe8O7v+UZDZgsjsavj6u3eI?= =?us-ascii?Q?5s/ApKl4dhozhdlljmdu7zztBDGieDOLXhGPtmpWguO9SC3H7hCLkeVVS2DE?= =?us-ascii?Q?bs1yv3mFQuMLZPD6G+YH7n1AcuDidiOvSLzgCEgUPI1QxsPToj80TvB5zFRe?= =?us-ascii?Q?tUEGuzG6+smazSrayFawZ8WzVSfWX1bsREpYeZMyIZcr0AI23dp/sMkCDuGz?= =?us-ascii?Q?HdLhhpN/dgaeT53Rrt98ZrvbZHz85dsjFviESOC7S+JIInya1e0M71ykdOc0?= =?us-ascii?Q?7xfOlq4dNOcpXA36Qg7NVpcwiIqm1A416m5gify3IE2Bb/wJ8B4n?= X-OriginatorOrg: valinux.co.jp X-MS-Exchange-CrossTenant-Network-Message-Id: e7ae650c-95b4-4d8e-c417-08df5077c00b X-MS-Exchange-CrossTenant-AuthSource: TY7P286MB6866.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 13:25:36.4771 (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: y+f8OkEzgwMhf04kgpOGWJtOxLu+OC0IGhB9tDUIqD9JAp+8zQZu0r2CddJMhGksZtuwXxkxRjulfPmi3DykSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3P286MB2674 On Wed, Nov 18, 2026 at 03:26:31PM +0900, Koichiro Den wrote: > On Fri, Nov 13, 2026 at 10:29:25PM +0900, Koichiro Den wrote: > > Hi, > > > > This series lets host Linux use EPC-local DMA read (RC-to-EP) channels > > through vNTB. I also tried a separate PCI DMA EPF, which reached v7 [1], > > but came back to this vNTB-embedded approach after discussion. > > > > An EPC-local DMA engine can use host DMA addresses (IOVAs when an IOMMU > > is enabled) as PCI addresses to reach any host buffer mapped for the > > endpoint. Letting the RC side drive its read channels also gives the RC > > a direct path into endpoint-local buffers. > > > > A major motivation is direct TX in ntb_transport. Both sides could use > > the same dmaengine-based TX path (ie. symmetric), sending directly to RX > > buffer DMA addresses supplied by the peer. This would avoid MW bounce > > buffers and per-transfer MW remapping for payloads in both directions. > > > > This assumes both sides trust each other. The RC side still programs DMA > > over PCIe MMIO, so this is expected to pay off for large data transfers. > > > > DesignWare eDMA is the only supported dmaengine backend for now. Other > > EPC-local DMA engines can be added if there is a need and they have a > > suitable programming interface. > > > > This series does not include a consumer for the dmaengine channels exposed > > to RC Linux. Native HDMA support is also left out to keep the series from > > growing too large. I plan to send a follow-up series, > > "PCI: endpoint: Support native HDMA for vNTB DMA", > > once this series is acked or merged. > > > > Setting pci-epf-vntb's 'dma_bar' configfs attribute enables DMA export. > > The default is -1, which leaves it disabled. pci-epf-ntb only switches to > > the shared control layout header and is functionally unchanged. > > > > Based on v7.4-rc1. No external patch dependencies. > > > > v10 uses the previously unused IRQ slot 1 for DMA, so enabling DMA no > > longer takes a doorbell vector. EP behavior and the wire format are > > unchanged. > > > > Patch 9 needs another review. Using slot 1 makes the changes to > > ntb_epf_init_isr() much smaller than in v9. > > > > > > Proposed merge plan > > =================== > > > > Patches 1-7 are for the PCI tree, and patches 8-10 for the NTB tree. > > The NTB patches need the shared header as updated by patches 4-6. > > To Dave, Jon, Allen: > > Could you please take a look at patches 4 and 8-10? > Patch 4 adds include/linux/pci-epf-ntb.h and lists it under "NTB DRIVER CORE" > in MAINTAINERS, so I'd like to have your ack on it as well if they look fine. Hi Dave, Just a gentle ping, could you please take a look at patches 4 and 8-10? Best regards, Koichiro Den > > To Mani (Cc: Jon): > > I wrote "patches 8-10 for the NTB tree" in the cover letter, > but I'm also fine with them going PCI tree if that is easier. > And of course, if you have any concerns, please let me know. > > To Frank: > > Thank you for your patient and thorough reviews! > > Best regards, > Koichiro Den > > > > > > > Compatibility matrix > > ==================== > > > > "Old" means v7.4-rc1 without this series, and "new" means with it > > applied. The table describes expected behavior. > > > > EP | Old host | New host > > --------------------------------+--------------+---------- > > Old | OK* | OK* > > New (dma_bar = -1) | OK* | OK* > > New (dedicated DMA BAR) | OK* | OK > > New (shared MW/DMA BAR) | OK** | OK > > > > * NTB works without DMA. > > ** NTB works without DMA. An "Old" host treats the whole shared BAR > > as an MW, so the EP falls back to that layout at LINK_UP and the > > DMA ranges are no longer mapped. > > > > > > Testing with v10 > > ================ > > > > The existing MW-based ntb_netdev path worked with DMA export disabled > > (dma_bar = -1) and enabled with the following EP-side BAR settings: > > > > * Dedicated DMA BAR configuration on RK3588 Rock 5B: > > > > ctrl_bar = 0 > > mw1_bar = 2 > > db_bar = 4 > > dma_bar = 5 > > > > * MW-shared DMA BAR configuration on R-Car S4 Spider: > > > > ctrl_bar = 0 > > mw1_bar = 2 > > dma_bar = 2 > > db_bar = 4 > > > > The ntb_netdev tests covered all matrix cases above involving a new > > kernel (i.e. everything except the Old x Old pair). > > > > Since this series includes no DMA consumer, the tests above are > > regression tests for the existing MW path. With an out-of-tree NTB > > transport that uses the exported DMA channels, I also confirmed that the > > slot 1 DMA IRQ works. > > > > > > Best regards, > > Koichiro > > --- > > Changes in v10: > > - Share IRQ slot 1 across DMA channels instead of taking a doorbell > > vector, and remove the spare-vector fallback. (Sashiko) > > - Add Frank's R-b tag for patch 6 and drop it from patch 9 after > > changing IRQ allocation. > > - Retest the compatibility matrix on R-Car S4 and RK3588. > > - Link to v9: https://lore.kernel.org/r/20261110082459.1798763-1-den@valinux.co.jp/ > > > > Changes in v9: > > - Rebase on v7.4-rc1. All prerequisites are now upstream. > > - Fix shared-MW size and alignment handling, and validate the shared > > BAR at bind time. (Sashiko) > > - Reject SETUP_DMA_BAR when DMA export is disabled. (Sashiko) > > - Retest the compatibility matrix on R-Car S4 and RK3588. > > - Link to v8: https://lore.kernel.org/r/20261022082230.3164834-1-den@valinux.co.jp/ > > > > Changes in v8: > > - Fall back to exposing the whole shared BAR as an MW for hosts > > without MW/DMA boundary support (ie. "Old" Host), instead of > > rejecting LINK_UP. (Frank) > > - Link to v7: https://lore.kernel.org/r/20261021042229.2280937-1-den@valinux.co.jp/ > > > > Changes in v7: > > - Split and reorder the patches for the PCI and NTB trees. (Frank) > > - Reject LINK_UP from hosts without MW/DMA boundary support when > > a BAR is shared. (Frank) > > - Link to v6: https://lore.kernel.org/r/20261020054948.1218370-1-den@valinux.co.jp/ > > > > Changes in v6: > > - Add a prep patch that moves the control region layout to > > include/linux/pci-epf-ntb.h, shared by pci-epf-ntb, pci-epf-vntb and > > ntb_hw_epf. (Frank) > > > > For earlier changes, see v5: > > https://lore.kernel.org/r/20261009045949.1109871-1-den@valinux.co.jp/ > > > > [1] Superseded approach, PCI DMA EPF, v7: > > https://lore.kernel.org/r/20260813063757.3131865-1-den@valinux.co.jp/ > > > > > > Koichiro Den (10): > > PCI: endpoint: Add DMA auxiliary resource metadata > > PCI: dwc: Expose endpoint DMA resources > > PCI: endpoint: pci-epf-vntb: Move epf_ntb_is_bar_used() up > > PCI: endpoint: Add pci-epf-ntb.h for the shared NTB control layout > > PCI: endpoint: pci-epf-vntb: Export endpoint DMA channels > > PCI: endpoint: pci-epf-vntb: Allow DMA and MW to share a BAR > > Documentation: PCI: endpoint: Document vNTB DMA export > > NTB: ntb_hw_epf: Use the shared NTB control layout > > NTB: ntb_hw_epf: Discover vNTB-embedded DMA > > NTB: ntb_hw_epf: Support DMA and MW sharing a BAR > > > > Documentation/PCI/endpoint/pci-vntb-howto.rst | 33 +- > > MAINTAINERS | 1 + > > drivers/ntb/hw/epf/ntb_hw_epf.c | 396 +++++++-- > > .../pci/controller/dwc/pcie-designware-ep.c | 107 ++- > > drivers/pci/endpoint/functions/pci-epf-ntb.c | 85 +- > > drivers/pci/endpoint/functions/pci-epf-vntb.c | 840 +++++++++++++++--- > > include/linux/pci-epc.h | 34 +- > > include/linux/pci-epf-ntb.h | 90 ++ > > 8 files changed, 1311 insertions(+), 275 deletions(-) > > create mode 100644 include/linux/pci-epf-ntb.h > > > > > > base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 > > -- > > 2.54.0 > > > >