Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp327722lqp; Mon, 10 Jun 2024 05:39:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWezgJL+pUf1N+E6vK1oQ3KT8kODm0trMIboRfeFlc7yQ5nIvBEsJFprXu3LWipplq08mNfzJXHejiro1yb/lasO3aJaHuPJmQGjQHa5A== X-Google-Smtp-Source: AGHT+IEnDtwc8Pmzgv8HAMn1ZuqD0lDs3dYQoPs2+dtitBQwouEQmYekKNpI1uuk2ZCkHTjngPzg X-Received: by 2002:a05:6808:3305:b0:3d2:2f94:1901 with SMTP id 5614622812f47-3d22f941a4dmr1392371b6e.28.1718023151007; Mon, 10 Jun 2024 05:39:11 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7955d6e6785si393084585a.385.2024.06.10.05.39.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:39:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Q6tRJpwG; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-208161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A66A61C20F64 for ; Mon, 10 Jun 2024 12:39:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87E268120D; Mon, 10 Jun 2024 12:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Q6tRJpwG" Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2059.outbound.protection.outlook.com [40.107.92.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70AAA335A7; Mon, 10 Jun 2024 12:38:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.59 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718023130; cv=fail; b=TId23wTXjBEcoCnOYOTEVuDIcMsVqTf0LWLsXyLX3dNuqSkLQ6jU1DqmtNukOUR41/SGcWG1WTBoYHt0gGXfi8AtgVN0jt16jTozo8S1b2oPcIMicRknMI6oQg+kHe1YBT0DD/9g0VQ5mdN2e+tWqmlSyttRyz0/Hv3tfItkOXg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718023130; c=relaxed/simple; bh=NUisiJXG8pP1r6Byw4rVQELf3cdmitV1fgSIUrSUBJg=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=F5cD0ukP7LqbwTgI5iJL/2NbN4OwKR63jQ9PVWWl4ZyZ/Z9QN4G352tRcC2XQ6fLGFWPIPCAC4ysI5zR2IHCRSzkLJOALcKfpxsWi3zQguZMvWVyBdKrlIeO2t4Zn+T+YGj5bqTKey28tAApJC8jV+H3XboIqdZdZvKw3Ja56ic= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=Q6tRJpwG; arc=fail smtp.client-ip=40.107.92.59 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NoH6fhskN1iDVMCPaFkdXOfE9uIuqOQrZD5Jeg6s8mHMZp7zpdOHbQ46V4obCIY/VPAcimwhH4Ph+RB5y7oqRc4E3IpdODOyle21EQkfBI/B9IcEJ4kuSKabQ+SLEgHFFVcPPBBZVQnQRZIOLIzkNkFoJTdwr7C/Y4Fp41xx7uh7gpHHZtsIg5kv5ODqD1tebzmVfYZ/RMIIZHfxukKU+ffigbUyl5vVEda8ip+Ao4smvjQLslA7lppRF5rqwRvaJ5XnGyHe73l7kaI+b9GP7Wff+YBTdAaNbRICM0GHu17EuWfAV3s8KLOC62TYpvVt14XWUfVjzCOAaWHYRCPyfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=83pYtp4o7iWmYuJWpqxqZ79viZv7tjKzk2Oe3aZTmuY=; b=aVlQ+Px4mY4Y3YNkqax3DSKxIIaSfuNNCdyxHmGnYtV3khELaDAl9R+vcas0T5t34fGL9MUWs0uOaerJYUTyx8nb0Hw9ViWy1BvmeDcpcLI2DJr9p5EkhGIJFqRTpnPSA5wHDkHGkcemuY074cENbneIdHHgpqnLOi/II8/NG58Otvun503WXRqxsTrMAGo7oxMBpMzorW6NujaOfWhQsGbyJYmThlBE1QZUSVA9hBzC+KMD4NjbcCPiGpbyvX9Kdq7nKOVAUHkxIsdMERyD739mPdIKnalYAKjvbGQjNNt3vp6SiDffNL3+0EmWIgTeOMybTvBP/YEvhsGmoE6K3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=83pYtp4o7iWmYuJWpqxqZ79viZv7tjKzk2Oe3aZTmuY=; b=Q6tRJpwGQq31e/m1zSeyZL7vthc0IL2T4a1fIw61wbWu0y+3Yhc6CbARkocZtL3+5mEELpW4hWMfQWfm/8wGQrxUMMOZVJe829FjrPGQuiuCE2uA+uqJekLzq/PVZ1viusaDyMuQOFiALXdJ5MJgS+gLfmBS3KJxshGT0Vh9a1Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB5685.namprd12.prod.outlook.com (2603:10b6:510:13c::22) by PH7PR12MB9175.namprd12.prod.outlook.com (2603:10b6:510:2e6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Mon, 10 Jun 2024 12:38:43 +0000 Received: from PH7PR12MB5685.namprd12.prod.outlook.com ([fe80::46fb:96f2:7667:7ca5]) by PH7PR12MB5685.namprd12.prod.outlook.com ([fe80::46fb:96f2:7667:7ca5%2]) with mapi id 15.20.7633.036; Mon, 10 Jun 2024 12:38:43 +0000 Message-ID: Date: Mon, 10 Jun 2024 14:38:18 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v10 02/14] net: page_pool: create hooks for custom page providers To: Jason Gunthorpe , Pavel Begunkov Cc: David Wei , David Ahern , Mina Almasry , Christoph Hellwig , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Donald Hunter , Jonathan Corbet , Richard Henderson , Ivan Kokshaysky , Matt Turner , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Andreas Larsson , Jesper Dangaard Brouer , Ilias Apalodimas , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Arnd Bergmann , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Steffen Klassert , Herbert Xu , Willem de Bruijn , Shuah Khan , Sumit Semwal , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi References: <20240530201616.1316526-3-almasrymina@google.com> <5aee4bba-ca65-443c-bd78-e5599b814a13@gmail.com> <20240607145247.GG791043@ziepe.ca> <45803740-442c-4298-b47e-2d87ae5a6012@davidwei.uk> <54975459-7a5a-46ff-a9ae-dc16ceffbab4@gmail.com> <20240610121625.GI791043@ziepe.ca> Content-Language: en-US From: =?UTF-8?Q?Christian_K=C3=B6nig?= In-Reply-To: <20240610121625.GI791043@ziepe.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0186.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:ab::16) To PH7PR12MB5685.namprd12.prod.outlook.com (2603:10b6:510:13c::22) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB5685:EE_|PH7PR12MB9175:EE_ X-MS-Office365-Filtering-Correlation-Id: ccbc91c4-f26e-4452-d52b-08dc894a438d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007|7416005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?K3FGVGNvOS9nUUpteFZzaEJzVnlDQWRrM0k2VEwyWmcxMzFxaGoveFNYSXRE?= =?utf-8?B?TVpDY1NhRCtJaDB4MWNVVHdmcU5mVkNKUzgxeWxyTXNzOHNvVkhTTngvbnlq?= =?utf-8?B?NGRxaHNhTjNaTzdyWnViOEYvckdPUzZ2S1hWVXlMWWd1bGZjNEFZc2YxSmp0?= =?utf-8?B?RlFmNzZkd1MrMzRQRktVdGJ2Sm1pWlZFblRVV0FhRmtOeVdONTNGWklQbkZj?= =?utf-8?B?N2pybUFuZnFDWVVNSklzRXcwSGZlU2g0ckZ0Wkkwb0hYNjVhdWlWdVJzMDdC?= =?utf-8?B?a1laWVovSnl4SWJCZENaUVkrYmRKbW9IaWNKSEFhRWtUNlBjMzFVV2o2UmVo?= =?utf-8?B?bktEMUR1OVd5SkxnOVJzTWF5NElBWWNNaWpxNUttbEhKRWFWM01Pb1VRRDBC?= =?utf-8?B?S2Z2UDB3dUpHdVFIOXZ1c0Zzb1lDa2FqaWhoazdhQ2hOV3NYeVVxbHNIeSta?= =?utf-8?B?UEZrZmI5cys0Y3d5azE4WHJSN1ZQajJGMXd3MW5ac1FQTFExUGlDdlZwN2lY?= =?utf-8?B?Y1Q0ZXpta1ZldTlLMHk2V3p2ZStaaU5EVmJHVHVrWE11UjNNWDNzSEhvZ0JZ?= =?utf-8?B?UlZiMFNYOVpFVWM0L2JJTXRVUVdKOElGU1JQOWxBVlJadmdLcldnTnE0YlZu?= =?utf-8?B?K1AzaWVseVZheElQWVRCeDRjTWl4L0l5ZmtyWnhUL0NYVFBJaUdkc3VjcjdR?= =?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kS1JMYUhabWttckFp?= =?utf-8?B?NkNiaExrd1c0UTMxS3B2aUZhSlVib2ZzZGdqN0Q4eC9qTkRwRUdtRURWK0xX?= =?utf-8?B?eHpxZCtraTdKbFNVWm11QkwycVI3aGlxUHhxL2JRc0FZNW95OHQzWnR1T0Zs?= =?utf-8?Q?zTEGcvyo1MERfriR58=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB5685.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007)(7416005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SHJOM2R0SGxvKyt2Vm5sS29oSElvaWM0a2NtSEl0L2IxQ0lSN05UVHo5WjNw?= =?utf-8?B?Z25xYXgzQjczTHBPbWt0TVYwYkFFdzA4R2JSZTVwME0xTFdWb2RNcERTU0RT?= =?utf-8?B?ZG1SZHAwdHdabG5OcUgrUmkrbGZZWkpHU2xvcWUwZzhtem5pamg3ZWE4UCt6?= =?utf-8?B?ZHNnYmszcEw0aG5sYVdTczE5SHVPdHZiYlRldFFHcEZIU1dESEhWL1cxaWlK?= =?utf-8?B?RURVajU1aFIyektuVmhKQXQ3aUpzUzVIZ1pjZ2NMOVo2UWRIVE93Y0pLb2hB?= =?utf-8?B?SUV2TGxtSElXZGlVN0EwK2NOcG1LY2t3RjRHNkUvd0M1RlNtUzNHVkQwNWtY?= =?utf-8?B?TmlmeU5GWXZ2QU9kb1BDZTRBanlYRythczluN0lqTktiYmZyTE9jRUVPczc0?= =?utf-8?B?Ym1lUGM1a1ZtaDM3K2x4Vmt5NTlSRkZtSDlaUVI5eW5JQm83MVJhenAreHl6?= =?utf-8?B?aFl4MnZHcE5LSGhsTFdnUThyVHJTL1ZoQXF0MllhYmVoVTZCb1g4bXV6RXFl?= =?utf-8?B?dzF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?= =?utf-8?B?UDJVUXlnMFpaRVAwNEhna2RxalhoMHZBSVpMSlNqdW1iV2JpRXE4RFFYcmVa?= =?utf-8?B?REp2eGRtTXVTLzZnSm5jRHp0WVA3UGRHWVlFTmptamFubjVwWnhmZU9VN1Aw?= =?utf-8?B?SjZNOG9CMFFqUlNCbWk0OG5GcVltSVYzMTdMa3pkVHJ6WUgxZW5SVXRRR0hs?= =?utf-8?B?VnkyeW13SllKa3pqM3NjSHhKWjlnbUdUZW4wdGltTm1DN2dud2dZZXRyZ3Bw?= =?utf-8?B?TXRaT0dqK0hvRXFTR1QvTGdPWDZPY25lRlVsR2JSdVlTVVl6eUtNaUpZbmV3?= =?utf-8?B?Q01tQ2E1eXNsU0VJalk4UTcwUDcwR0lBSzhEQ2FENTJ4bDJOUVJNb0FMWEI0?= =?utf-8?B?MUZoTU0zK01VQlc4VnRzUXIxL3pjYmN3MTAwOHFsM3ZmN1hRZGMzNDlZOEJZ?= =?utf-8?B?MGxRS2t6NnlaVEp6Kzk3bHJnajZnMWVzSFN3UmsxVStGdW1Gb3dnb2xiN1RZ?= =?utf-8?B?dWFVN0w5WWxNM0lZaHUzVWtCa1V1VWMvSURFVVZ2bW5udXhCblM3RnQ3dTQr?= =?utf-8?B?bDBXUGZWYk9HY2xIQTY1MkIwb2hmeTFXbk9EWE1EOTJPMGdxOWRTaHZaMjQ5?= =?utf-8?B?SkdvRnlNUUJkZWRKa1JPM1REbGVYcXJwSTlSR09mTkQ3c1l6YnRxNGtBamNx?= =?utf-8?Q?uaAE=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ccbc91c4-f26e-4452-d52b-08dc894a438d X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB5685.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2024 12:38:43.6579 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dzw4QCvv66Zuhl5K+3EVBz6jTNuMy2yFyxAzCgrtEAhFbVKVvp7mG3/KuvQSqFAM X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB9175 Am 10.06.24 um 14:16 schrieb Jason Gunthorpe: > On Mon, Jun 10, 2024 at 02:07:01AM +0100, Pavel Begunkov wrote: >> On 6/10/24 01:37, David Wei wrote: >>> On 2024-06-07 17:52, Jason Gunthorpe wrote: >>>> IMHO it seems to compose poorly if you can only use the io_uring >>>> lifecycle model with io_uring registered memory, and not with DMABUF >>>> memory registered through Mina's mechanism. >>> By this, do you mean io_uring must be exclusively used to use this >>> feature? >>> >>> And you'd rather see the two decoupled, so userspace can register w/ say >>> dmabuf then pass it to io_uring? >> Personally, I have no clue what Jason means. You can just as >> well say that it's poorly composable that write(2) to a disk >> cannot post a completion into a XDP ring, or a netlink socket, >> or io_uring's main completion queue, or name any other API. > There is no reason you shouldn't be able to use your fast io_uring > completion and lifecycle flow with DMABUF backed memory. Those are not > widly different things and there is good reason they should work > together. Well there is the fundamental problem that you can't use io_uring to implement the semantics necessary for a dma_fence. That's why we had to reject the io_uring work on DMA-buf sharing from Google a few years ago. But this only affects the dma_fence synchronization part of DMA-buf, but *not* the general buffer sharing. Regards, Christian. > > Pretending they are totally different just because two different > people wrote them is a very siloed view. > >> The devmem TCP callback can implement it in a way feasible to >> the project, but it cannot directly post events to an unrelated >> API like io_uring. And devmem attaches buffers to a socket, >> for which a ring for returning buffers might even be a nuisance. > If you can't compose your io_uring completion mechanism with a DMABUF > provided backing store then I think it needs more work. > > Jason