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 2D0ADC433FE for ; Tue, 15 Feb 2022 18:32:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 83E366B0078; Tue, 15 Feb 2022 13:32:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7ED846B007B; Tue, 15 Feb 2022 13:32:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6DC676B007D; Tue, 15 Feb 2022 13:32:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0115.hostedemail.com [216.40.44.115]) by kanga.kvack.org (Postfix) with ESMTP id 5FAA06B0078 for ; Tue, 15 Feb 2022 13:32:14 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 18AEB8249980 for ; Tue, 15 Feb 2022 18:32:14 +0000 (UTC) X-FDA: 79145858988.18.B76594E Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by imf12.hostedemail.com (Postfix) with ESMTP id 562734000C for ; Tue, 15 Feb 2022 18:32:13 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 4B3BA68AA6; Tue, 15 Feb 2022 19:32:09 +0100 (CET) Date: Tue, 15 Feb 2022 19:32:09 +0100 From: Christoph Hellwig To: Jason Gunthorpe Cc: David Hildenbrand , Felix Kuehling , Alex Sierra , akpm@linux-foundation.org, 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, jglisse@redhat.com, apopple@nvidia.com, willy@infradead.org Subject: Re: [PATCH v6 01/10] mm: add zone device coherent type memory support Message-ID: <20220215183209.GA24409@lst.de> References: <20220201154901.7921-1-alex.sierra@amd.com> <20220201154901.7921-2-alex.sierra@amd.com> <078dd84e-ebbc-5c89-0407-f5ecc2ca3ebf@redhat.com> <20220215144524.GR4160@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220215144524.GR4160@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 562734000C X-Stat-Signature: prtippzkbxg4843nehoqg7ryumjxoi5h X-Rspam-User: Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=none; spf=none (imf12.hostedemail.com: domain of hch@lst.de has no SPF policy when checking 213.95.11.211) smtp.mailfrom=hch@lst.de X-HE-Tag: 1644949933-829831 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: On Tue, Feb 15, 2022 at 10:45:24AM -0400, Jason Gunthorpe wrote: > > Do you know if DEVICE_GENERIC pages would end up as PageAnon()? My > > assumption was that they would be part of a special mapping. > > We need to stop using the special PTEs and VMAs for things that have a > struct page. This is a mistake DAX created that must be undone. Yes, we'll get to it. Maybe we can do it for the non-DAX devmap ptes first given that DAX is more complicated.