Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1712367pxb; Wed, 2 Feb 2022 10:47:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXAHkydTebvE06YbAWT2BhIrJRNftSbwIHjP2xzSpzbdi/L1QHl/Kql5sVHILe0SjpiEBW X-Received: by 2002:a62:8f91:: with SMTP id n139mr30933982pfd.66.1643827638193; Wed, 02 Feb 2022 10:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643827638; cv=none; d=google.com; s=arc-20160816; b=RlvAGdGeeyKsKAWyK7TYxy54/Smr30QHSVh7IR7fGaqTgEsr4tNZaCBmd8qA8BkOTR AqLcvN3LWmfZfWo7jD9Ey4+lNffXXnwrS783xzg7J1wknwvJNGiVsB04EDCMckX2Ckg8 EnjbrmmhQj8gz/H1+K5H6HIjdL7rGzwGlhnLJLcCvPkRCaqyF9Xw+cGxhiuoAc2KTL6A 9wTDmXGp6v5ODnTg6j7pepnfxfhKwP78tYvc9G0BVHE12BwQ/+eF5SsnA2yzhFVd3jHV k3qrHuFTEDJ/jxI0IV7uQYZg4kM0TBd9lKNNoNGhgs/MbSTV6fu3bWywQ+/lU040Efet Nreg== 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=zJyI6lpIECgsRRYW8Zy1+qFdF9POhtfLYrpTW47SEfE=; b=l4myfSbncdoWLuOx8Lzrwf70gMalbRJKtjzqPf8+ZadOOAAiyjF2+LtNvoAuYkOz2x KInzARm8gfd7a4JBs44m0kmsfOg2M7SVBVt2zEOsGnoS/5yfiUZGVQY6RSDSmwEHtdXW 8DJ210OSMQHvrj2YDEHNXn5lrR53uZwIURQPVmcClGE0BirWkNIJvesKPYdrD/aKMPre Ze7WIObuNTsiN4BAOTr+py6iGbA5kYDVEIaHiQimrQG7dIi4RsX7oKdwkCnV/nAyp9jK Crsg2S9IdoOK+Rq5z6jcF2YD3qHs+s2PnNXx7bUkvkL1Yt+YoZwWAHO8I7pCdXZs+d7w SOMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16si22332273plh.471.2022.02.02.10.47.00; Wed, 02 Feb 2022 10:47:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345213AbiBBO57 (ORCPT + 99 others); Wed, 2 Feb 2022 09:57:59 -0500 Received: from verein.lst.de ([213.95.11.211]:34501 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343675AbiBBO56 (ORCPT ); Wed, 2 Feb 2022 09:57:58 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 49B1A68B05; Wed, 2 Feb 2022 15:57:52 +0100 (CET) Date: Wed, 2 Feb 2022 15:57:50 +0100 From: Christoph Hellwig To: Andrew Morton Cc: Alex Sierra , Felix.Kuehling@amd.com, linux-mm@kvack.org, rcampbell@nvidia.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, hch@lst.de, jgg@nvidia.com, jglisse@redhat.com, apopple@nvidia.com, willy@infradead.org Subject: Re: [PATCH v4 00/10] Add MEMORY_DEVICE_COHERENT for coherent device memory mapping Message-ID: <20220202145750.GA25170@lst.de> References: <20220127030949.19396-1-alex.sierra@amd.com> <20220127143258.8da663659948ad1e6f0c0ea8@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127143258.8da663659948ad1e6f0c0ea8@linux-foundation.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Jan 27, 2022 at 02:32:58PM -0800, Andrew Morton wrote: > On Wed, 26 Jan 2022 21:09:39 -0600 Alex Sierra wrote: > > > This patch series introduces MEMORY_DEVICE_COHERENT, a type of memory > > owned by a device that can be mapped into CPU page tables like > > MEMORY_DEVICE_GENERIC and can also be migrated like > > MEMORY_DEVICE_PRIVATE. > > Some more reviewer input appears to be desirable here. > > I was going to tentatively add it to -mm and -next, but problems. > 5.17-rc1's mm/migrate.c:migrate_vma_check_page() is rather different > from the tree you patched. Please redo, refresh and resend? I really hate adding more types with the weird one off page refcount. We need to clean that mess up first.