From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBAF5C28B28 for ; Wed, 12 Mar 2025 18:35:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AE93C280002; Wed, 12 Mar 2025 14:35:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A9B56280001; Wed, 12 Mar 2025 14:35:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 987DF280002; Wed, 12 Mar 2025 14:35:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 7CEFB280001 for ; Wed, 12 Mar 2025 14:35:51 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id BF373AA3CE for ; Wed, 12 Mar 2025 18:35:51 +0000 (UTC) X-FDA: 83213752902.23.DF3ACD5 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf12.hostedemail.com (Postfix) with ESMTP id 0647340004 for ; Wed, 12 Mar 2025 18:35:49 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=J67Y7RRV; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf12.hostedemail.com: domain of shuah@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=shuah@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1741804550; a=rsa-sha256; cv=none; b=mRYUJyhMg9pBzmJFc7Roy4vT2n90wBeERTFOl2O4wPBcgcaUvd5Bwx5+XU5Ikt1J1qNjLy 3RQfUowJXNGpn/wwrdn4Y/Nue4DZe+xCs/2BzyyBKSVcVVqi/yHDT+0QVt5FztWNOgTwDi bGwOyNEHQDfKreKYBN0oHMjoluAPqYo= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=J67Y7RRV; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf12.hostedemail.com: domain of shuah@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=shuah@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1741804550; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=24nrfUuGK2Bk8a5rqA9sO3cDPrDf1nL60EuHoq2Tvfg=; b=yxkMRH64D3l+NfexBCKlkzBKPhClBadpNjOXB6C0UCUZ9gAveQY/++9Urq+2ae2FSZ/d+G FfLQt0k7FYChxj+AR8R7V8VhcpQwkH0nOrcQK5pWoR7b8s+2AkxTnnFYlM7PXq6VtlVhYY yAoKv4nhMxnlpx97MW7c8ZNffJ9ycSM= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 4357EA45F87; Wed, 12 Mar 2025 18:30:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 510EBC4CEDD; Wed, 12 Mar 2025 18:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741804548; bh=ow1KigtljFBQ1vcnh+0FfWEOUCuNEjBV9gvac4wWkPs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=J67Y7RRVNOO/MNJ2sZvbGFF15qYvBYL9Kk3a+/71H45yV8ixTNsst4gTVS0DLtl5Q XUYFhI6/9LwE/hX0FAKOqdUREL+XYaOlBphiABiW395wVSheVKciUCTHlhEU2x5ZVj m9/JfvbNGFHEoZpwMl67yRbOBP0dtTJYPqgqc83geg/37Vf7vo4ffo1bTojpwDaocD LBPS+auizg3T7VRkBM4U+ooOszhm54Fi6iW19/pz3EFMlQish+p8P8jonh1IoPKQfK Rk2Q+Ysib/VTprpwu2hI3Gl9PvLGxTwsvPGI6ecJXZxL2Uh2IZn1GDO3Bt3IcAKWhT uXzaOpsPBU3eA== Message-ID: <52f4e8b1-527a-42fb-9297-2689ba7c7516@kernel.org> Date: Wed, 12 Mar 2025 12:35:03 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH net-next] page_pool: Track DMA-mapped pages and unmap them when destroying the pool To: Yunsheng Lin , Matthew Wilcox Cc: =?UTF-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , Yunsheng Lin , Andrew Morton , Jesper Dangaard Brouer , Ilias Apalodimas , "David S. Miller" , Yonglong Liu , Mina Almasry , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , linux-mm@kvack.org, netdev@vger.kernel.org, conduct@kernel.org References: <20250308145500.14046-1-toke@redhat.com> <87cyepxn7n.fsf@toke.dk> <8fa8f430-5740-42e8-b720-618811fabb22@huawei.com> Content-Language: en-US From: Shuah In-Reply-To: <8fa8f430-5740-42e8-b720-618811fabb22@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Stat-Signature: o1uomdkrph5epd8xfn5btntosb79b7xq X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 0647340004 X-Rspam-User: X-HE-Tag: 1741804549-44460 X-HE-Meta: U2FsdGVkX19mkgMLbHaSCqPqlX+ZjWGFDevQMQI95MVkxE2Pz7i9nTYG69vLucVldzlM10qp0mChsyS83L+SFvzfOJCEvQI01NLKblU6mzcK8Rtl8Te90zhNHaASzKM0YLjMgoC4PkQ+vT8fwFq3bMVkF6etrMSzK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R9cugS/Wdg2OhQPCOdHlngR6jQAdbUlokocIN26P+ZsEvqPkmFUy7wu5eoFWbVVv/SQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On 3/12/25 06:05, Yunsheng Lin wrote: > On 2025/3/11 23:11, Matthew Wilcox wrote: >> On Tue, Mar 11, 2025 at 08:25:25PM +0800, Yunsheng Lin wrote: >>>> struct page { >>>> unsigned long flags; >>>> unsigned long memdesc; >>> >>> It seems there may be memory behind the above 'memdesc' with different size >>> and layout for different subsystem? >> >> Yes. >> >>> I am not sure if I understand the case of the same page might be handle in >>> two subsystems concurrently or a page is allocated in one subsystem and >>> then passed to be handled in other subsystem, for examlpe: >>> page_pool owned page is mmap'ed into user space through tcp zero copy, >>> see tcp_zerocopy_vm_insert_batch(), it seems the same page is handled in >>> both networking/page_pool and vm subsystem? >> >> It's not that arbitrary. I mean, you could read all the documentation >> I've written about this concept, listen to the talks I've given. You can't point to talk given on the concept - people don't have to go find your talks to understand the concept. You are expected to answer the question and explain it to us here in this thread. But >> sure, you're a special fucking snowflake and deserve your own unique >> explanation. Yunsheng Lin, This message is a rude personal attack. This isn't the way to treat your peers in the community. Apology is warranted. > > If you don't like responding to the above question/comment, I would rather > you strip out them like the other question/comment or just ignore it:( > > I am not sure how to interpret the comment, but I am sure it is not a kind > one, so CC 'Code of Conduct Committee' in case there is more coming. > Thank you Mathew for letting us know about this. thanks, -- Shuah ((on behalf of the CoC committee)