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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6A06C433EF for ; Fri, 28 Jan 2022 14:22:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349078AbiA1OWy (ORCPT ); Fri, 28 Jan 2022 09:22:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244873AbiA1OWx (ORCPT ); Fri, 28 Jan 2022 09:22:53 -0500 Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA07C061747 for ; Fri, 28 Jan 2022 06:22:53 -0800 (PST) Received: by mail-qv1-xf34.google.com with SMTP id o9so5900980qvy.13 for ; Fri, 28 Jan 2022 06:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hOJwMUY5Bby5v0yKsY6i8lpR9Ki3WovrYD+I2hctsmg=; b=U6c+XkFY8s+Ffl7FMQbVxlp2XqdxMulpeXig888uzfihlBCtxwuxIolRJkxjXzaeEX eIVyFvkbbf1xDb6SPEgSmnVCw9pDRfPJMYU4oslaqMl3i67iHf7KZeS/e0PmUBODdSZZ AowH8T2WlGQ4lht/OCyvJWxyWbcXEvFC6taxlenfQBvCzsa6ZLxsUregxcSiDD43dffE wyxXaf1wb+uEKWMD1qAmtSSmLQmslFUsrWqqlGvzI9Koh8SJ+5/r0xM1DEOICXREV+1R hc7uSuZaF6wJJ5ERb4Bbz+7wa78dvtPacUGiJQdQuCom+zLYAupwohfFwPnp5nzy05HC 7X4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hOJwMUY5Bby5v0yKsY6i8lpR9Ki3WovrYD+I2hctsmg=; b=GRJDzW9HPt6cKWSeXwOZLel3yv0AeLDqThcaLIDUjnNPm3PlNQJiwk4GCJnnaGJdHp MCNuybg4OjNoSml9V4RlqHhLij2t7wbhdfNHpIVIsTDpCt2TnQ4pVp/W0il20AkmBQIB 7ENY1DJFfaw7cecmdrMqOxt8LspOyIVHtDHceJ73X9I1EnTugAJnbEOyBWWAZfvjpaHR 6rjCI08SEytTzIKJeCSElR+7V7lCEzh5K9pQcLZM7rGAE15WJ507as/tvqUH8F00xaoi 23uN6Bhph8yE5WmsUMF2LLj8TklS/2KyPusW8XamCK5NuI9QnodBkHBQuwYANl8MsDq0 KO0g== X-Gm-Message-State: AOAM530T0wc4XaHhQKXqj5FLcB+z4u/wGotBea0uVLfUpUo/NIat++68 rNoBx7zbchNDieKll4ArzTjdoQ== X-Google-Smtp-Source: ABdhPJxVRgqXNs0AEB/UOEkxwovAuD7L4ajDVFitY42TUAFuPNOZiD9bQ3/LB4azis3UeruHH3Md/w== X-Received: by 2002:a05:6214:29e7:: with SMTP id jv7mr7547390qvb.114.1643379772621; Fri, 28 Jan 2022 06:22:52 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id v22sm1250520qtc.96.2022.01.28.06.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 06:22:52 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1nDS9L-007UYx-Hy; Fri, 28 Jan 2022 10:22:51 -0400 Date: Fri, 28 Jan 2022 10:22:51 -0400 From: Jason Gunthorpe To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Stephen Bates , Christoph Hellwig , Dan Williams , Christian =?utf-8?B?S8O2bmln?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Jakowski Andrzej , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni , Ralph Campbell Subject: Re: [PATCH v5 22/24] mm: use custom page_free for P2PDMA pages Message-ID: <20220128142251.GV8034@ziepe.ca> References: <20220128002614.6136-1-logang@deltatee.com> <20220128002614.6136-23-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128002614.6136-23-logang@deltatee.com> Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Thu, Jan 27, 2022 at 05:26:12PM -0700, Logan Gunthorpe wrote: > When P2PDMA pages are passed to userspace, they will need to be > reference counted properly and returned to their genalloc after their > reference count returns to 1. This is accomplished with the existing It is reference count returns to 0 now, right? Jason 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 smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24255C433F5 for ; Fri, 28 Jan 2022 14:22:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9BD5540938; Fri, 28 Jan 2022 14:22:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qetasohq80jF; Fri, 28 Jan 2022 14:22:56 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id 42229400C6; Fri, 28 Jan 2022 14:22:56 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 24A26C001A; Fri, 28 Jan 2022 14:22:56 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id BA063C000B for ; Fri, 28 Jan 2022 14:22:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 98F224010F for ; Fri, 28 Jan 2022 14:22:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rugduNk2HPFd for ; Fri, 28 Jan 2022 14:22:53 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by smtp2.osuosl.org (Postfix) with ESMTPS id C77EF400C6 for ; Fri, 28 Jan 2022 14:22:53 +0000 (UTC) Received: by mail-qv1-xf29.google.com with SMTP id h16so5918172qvk.10 for ; Fri, 28 Jan 2022 06:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hOJwMUY5Bby5v0yKsY6i8lpR9Ki3WovrYD+I2hctsmg=; b=U6c+XkFY8s+Ffl7FMQbVxlp2XqdxMulpeXig888uzfihlBCtxwuxIolRJkxjXzaeEX eIVyFvkbbf1xDb6SPEgSmnVCw9pDRfPJMYU4oslaqMl3i67iHf7KZeS/e0PmUBODdSZZ AowH8T2WlGQ4lht/OCyvJWxyWbcXEvFC6taxlenfQBvCzsa6ZLxsUregxcSiDD43dffE wyxXaf1wb+uEKWMD1qAmtSSmLQmslFUsrWqqlGvzI9Koh8SJ+5/r0xM1DEOICXREV+1R hc7uSuZaF6wJJ5ERb4Bbz+7wa78dvtPacUGiJQdQuCom+zLYAupwohfFwPnp5nzy05HC 7X4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hOJwMUY5Bby5v0yKsY6i8lpR9Ki3WovrYD+I2hctsmg=; b=bbgXDQ4deBwNPCqr2KMX8eylvu7Hkjs6jTFKk1XP/bhDIhg+1++wRmvGmDJ57cUflj 1lV6Q3m0c+rFRAG1MQ+n3UOqBpKC+WAMI0Owrhabmt2k3p3qwbB/gsHCoMRYzn1dH5Ay rTSEf4Aol5YKA3SLpfv8sxpQupnwEgR34/Oo4yywdwWAv7zHo39IkHfXK768qzROJ7Q2 lLCze3pLC8wRWz2w1V+xxnTK2njLiFFhquwfkaz7XKFHMQ4ZHzhea8F/NbT3KY1rFHv6 36Pg4nvCHL4S0z+awvZydoiW1fEPmu9bCJr3WJG5crDP7pQ7fXmR2Pu9MYk/Ez/Rcp9n XSRQ== X-Gm-Message-State: AOAM532YFwF65gfsqU6+LzRiJoopYbr893wiafgdAo5IgxPeFFf2h3Ho eI5oU7VXJmPn1smlJwhZrjua9w== X-Google-Smtp-Source: ABdhPJxVRgqXNs0AEB/UOEkxwovAuD7L4ajDVFitY42TUAFuPNOZiD9bQ3/LB4azis3UeruHH3Md/w== X-Received: by 2002:a05:6214:29e7:: with SMTP id jv7mr7547390qvb.114.1643379772621; Fri, 28 Jan 2022 06:22:52 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id v22sm1250520qtc.96.2022.01.28.06.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 06:22:52 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1nDS9L-007UYx-Hy; Fri, 28 Jan 2022 10:22:51 -0400 Date: Fri, 28 Jan 2022 10:22:51 -0400 From: Jason Gunthorpe To: Logan Gunthorpe Subject: Re: [PATCH v5 22/24] mm: use custom page_free for P2PDMA pages Message-ID: <20220128142251.GV8034@ziepe.ca> References: <20220128002614.6136-1-logang@deltatee.com> <20220128002614.6136-23-logang@deltatee.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220128002614.6136-23-logang@deltatee.com> Cc: linux-pci@vger.kernel.org, Dave Hansen , linux-nvme@lists.infradead.org, Stephen Bates , linux-mm@kvack.org, Jason Ekstrand , Ira Weiny , Christoph Hellwig , Minturn Dave B , Martin Oliveira , Matthew Wilcox , Chaitanya Kulkarni , Bjorn Helgaas , Daniel Vetter , Ralph Campbell , John Hubbard , linux-block@vger.kernel.org, Dan Williams , Jakowski Andrzej , Xiong Jianxin , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Robin Murphy , Christian =?utf-8?B?S8O2bmln?= X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Thu, Jan 27, 2022 at 05:26:12PM -0700, Logan Gunthorpe wrote: > When P2PDMA pages are passed to userspace, they will need to be > reference counted properly and returned to their genalloc after their > reference count returns to 1. This is accomplished with the existing It is reference count returns to 0 now, right? Jason _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu