Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp342976pxb; Tue, 15 Feb 2022 14:53:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6mHLXKH+sUewSwxgZe3tzVQs+ETgX3n8ptcctFGiRagyk4ETobDkGOPp4LhbN3tue7k4A X-Received: by 2002:a17:906:5e13:b0:6cf:42c:56b7 with SMTP id n19-20020a1709065e1300b006cf042c56b7mr116085eju.725.1644965584229; Tue, 15 Feb 2022 14:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644965584; cv=none; d=google.com; s=arc-20160816; b=HQc+S2Q2LF7HRXD4NsFxVIRKPxy+zCJc/gQaDXgIP0bu5zkQfOdV7lDo9uZehyfcQf OhMnY4Qp0Yeq+CWwZNU+VorT4HUVSePINlR0BphKVU1q8dZ4bBj3+1PRXDh9uQmVFYw7 4VuAt09Fcjeh8Qf88Khg9MH2j7iQZArqxVawhNJ3dt86gvJDCFw8d/HmPgwrJ5l6Bdyt KgiwehP8AmB+J8EHi9cw/fLd7QMn6Wy9hEaBhu99RAvH3Qd5jJHVvqOzBwJ6opnHsjoF Q1RzDwZX7evOoFvs1Sh2CL9PQf6ZdNnCbyHbyQeFJIlW+K7KVZGc18x40Fw+aQqXLS1/ Y+tA== 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=5MYNP0Pk92yXkmstCyELQXsI8wW5r8CYSsVH94wBSWs=; b=q4pQLgUcSzWsZkucqFPcAPle1l28KBcZax0Rmjo5AC9tIVuoO5cFOPcu+7TX+6OYwn lGRqRCwBxErYku77GDkA0g6+0c0AoLaEitbTPdi913kFXGMbacN9zMI5F7zKdWf2eIqg cL3y7u+EVB4UQeWOkcgCsklNk/zIsdZkKCz4ZoxKYNwXIzlqgBtgSkCBr+RM/SPAV9X7 jEpcmJR4cRkk7bp2D41YrgmxRKqDTbgC6di0IfjbZsBSoHOR9779qY04U6VhJG5aEm0g 5+2ovwjoqgzig5171JUD/WDUZaJx6h9H1c6fp92qOs3OJDGGJqca8YtVqLeykDaXTN6f UbWA== 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 r25si15001904ejc.298.2022.02.15.14.52.36; Tue, 15 Feb 2022 14:53:04 -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 S243112AbiBOScZ (ORCPT + 99 others); Tue, 15 Feb 2022 13:32:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243096AbiBOScY (ORCPT ); Tue, 15 Feb 2022 13:32:24 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B14801EEE1; Tue, 15 Feb 2022 10:32:13 -0800 (PST) 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-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-ext4@vger.kernel.org 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.