Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2068909pxb; Wed, 9 Feb 2022 10:12:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5s53pHlNFCin/1PA/NYDq3j60uyCEbuuHdXwZUoxHqAjALt4/w/ClFThioGCZ9RwnTqfo X-Received: by 2002:a17:902:db0e:: with SMTP id m14mr3294560plx.88.1644430348791; Wed, 09 Feb 2022 10:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644430348; cv=none; d=google.com; s=arc-20160816; b=AWGUPLDXkLCc8HxZIw8TT9Z8xFFFT+WL/6wk/AMSmRUfQYRv9RMrd8luoMLFzseVTY fZUBJLHZgJKUW6mCt3LYsHIho+w7OpwuwMQzAgsBIBHZzAFwiezVKm7aWTLIG8C7uuJR uvZ7zmxKFD7kAXcViSXmsdT18gkSSH9iwyL+CdRemwsmd6iHYpikbVNdPYNos4aSZfI8 NDQ0PclQMXRKqZrLMUVDmj1S3jCBp3WWtZfjpUQnhGGEVP5fPx20vxYyDQpOfFWpsTEN QquHjuWb9hIT7Ib28/fsn4MN/8bNSOPdlX5BnyL6Ug9tQ3Xk8jcTquUzjO0Fdwq3HNA2 0/WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=uSH2ojM9LOaVoPr2NsbN9W+60HEZIpkPe++QQWbazFc=; b=HIrXdCIHDVH9LIkTCy6rU+EkiQdHdYFrD2K2bXfTjNC4gZxpD7NA/A8sknSZ4YGYkk Zci2D9B+JTokzIyGbQ0mNChvC9a+fBSOFNjNkp92n6nObNyvLkj3kMqRbgmAb207UaV6 Hjhh3TWVCSFWbYpu1SiNjI8w8fgW6/oKhXbTlXb4ZL8FGZ2nFlwvDWuL11AyeN4dO5nY 3cIR0Ut7TsE+0z4ZY+k5cugrmw/52O6zO5XKsHdaH1Phsr9NJFMdo3gtSsHbPU+Dljke u9WM4epFuX1P8MwYiaqmuqnhdwMpEMLBZW8BBdPVE1sEAvGz20qmjWISR6w3fCmFXuVg /eww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si16133434plq.183.2022.02.09.10.12.14; Wed, 09 Feb 2022 10:12:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238428AbiBIRsn (ORCPT + 99 others); Wed, 9 Feb 2022 12:48:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231712AbiBIRsj (ORCPT ); Wed, 9 Feb 2022 12:48:39 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 711DAC05CB82 for ; Wed, 9 Feb 2022 09:48:42 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 8151B68B05; Wed, 9 Feb 2022 18:48:37 +0100 (CET) Date: Wed, 9 Feb 2022 18:48:36 +0100 From: Christoph Hellwig To: Felix Kuehling Cc: Christoph Hellwig , Andrew Morton , Dan Williams , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "Pan, Xinhui" , Ben Skeggs , Karol Herbst , Lyude Paul , Jason Gunthorpe , Alistair Popple , Logan Gunthorpe , Ralph Campbell , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, nvdimm@lists.linux.dev, linux-mm@kvack.org Subject: Re: [PATCH 6/8] mm: don't include in Message-ID: <20220209174836.GA24864@lst.de> References: <20220207063249.1833066-1-hch@lst.de> <20220207063249.1833066-7-hch@lst.de> <3287da2f-defa-9adb-e21c-c498972e674d@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3287da2f-defa-9adb-e21c-c498972e674d@amd.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 07, 2022 at 04:19:29PM -0500, Felix Kuehling wrote: > > Am 2022-02-07 um 01:32 schrieb Christoph Hellwig: >> Move the check for the actual pgmap types that need the free at refcount >> one behavior into the out of line helper, and thus avoid the need to >> pull memremap.h into mm.h. >> >> Signed-off-by: Christoph Hellwig > > The amdkfd part looks good to me. > > It looks like this patch is not based on Alex Sierra's coherent memory > series. He added two new helpers is_device_coherent_page and > is_dev_private_or_coherent_page that would need to be moved along with > is_device_private_page and is_pci_p2pdma_page. FYI, here is a branch that contains a rebase of the coherent memory related patches on top of this series: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/pgmap-refcount I don't have a good way to test this, but I'll at least let the build bot finish before sending it out (probably tomorrow).