Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1144826pxb; Thu, 19 Aug 2021 21:59:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc3oQl0BIjH5im68HK+GbYhRw9EByQcCvZtQwoTFnhrOz03w1fyaYGtyduTd2mINfiubAy X-Received: by 2002:a6b:d20c:: with SMTP id q12mr14810619iob.121.1629435540444; Thu, 19 Aug 2021 21:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629435540; cv=none; d=google.com; s=arc-20160816; b=QcRfmtOE3mGRI9i8OVVevSjgJdPPxExFpZa6OmWsbwArC0BTnLLtnws38V48V0Ix54 w9AmgN2C/YggfCHuc37n2TSdDmEhFwFQM3BJnOgofso06OQBvSpTXKYksj1dEnKRzNKw /wFpi7tHie7Gim+Aq5q2Ylxt5GFgjMuIpAHwl1752xjMt6cB+alKHweHCseZS5CKlxam JhiImM13GySYOO+w++vN7clDYzVVRojKGCxQle6AUYgRmwCTdcq648OJYFpsWPUiDi7I OVdJHEIB6Cr0rzmKWvRjW8vbtXZxmb0axVWQWz1XNjSbncLgHoCp3tT1+V52p71ibbMN ohhg== 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=vpLwcfA1797S1nyMB1dXQbPjiErTjtYOk1UHdw68yZ8=; b=iHTjnfW4bWI1qJD6UqkUY9LRGSOUzo12J1j1BO+O3O1o3VpR0s+uIhuFZEt2R3MDNK tqhQErh6WpMHaXFyDrcUTbczpge8F32aQu1ltpOBNTFTrbR94Qz9nZyQslotZ1TKJ5NQ qLZ28ht23+Rlg5x0a54gfgul2LEO95E2YqR01TVzzxSNjAxitfDa/d0dlcpOfhMyWs7v ZeAu+mllHJ8Gy9mcTzNoBzN7pIvr5ehlfPm3AzrkW3ezh9OEQrI40hvWSZENysEFaxo+ 6VNFRjKYEIOPgmBQeLpKdovKmdqdOsoLJ1lNzA478cP/NHiU9KCum4agsST5/YoobvwK rCQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 g3si5471926ila.102.2021.08.19.21.58.39; Thu, 19 Aug 2021 21:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232732AbhHTE5N (ORCPT + 99 others); Fri, 20 Aug 2021 00:57:13 -0400 Received: from verein.lst.de ([213.95.11.211]:39696 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233544AbhHTE5H (ORCPT ); Fri, 20 Aug 2021 00:57:07 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id AD1156736F; Fri, 20 Aug 2021 06:56:27 +0200 (CEST) Date: Fri, 20 Aug 2021 06:56:27 +0200 From: Christoph Hellwig To: Ralph Campbell Cc: Felix Kuehling , Alex Sierra , akpm@linux-foundation.org, linux-mm@kvack.org, 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 Subject: Re: [PATCH v6 02/13] mm: remove extra ZONE_DEVICE struct page refcount Message-ID: <20210820045627.GA27083@lst.de> References: <20210813063150.2938-1-alex.sierra@amd.com> <20210813063150.2938-3-alex.sierra@amd.com> <7b821150-af18-f786-e419-ec245b8cfb1e@nvidia.com> <393e9815-838d-5fe6-d6ab-bfe7b543fef6@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Aug 18, 2021 at 12:28:30PM -0700, Ralph Campbell wrote: > Did you test on a system without CONFIG_ARCH_HAS_PTE_SPECIAL defined? > In that case, mmap() of a DAX device will call insert_page() which calls > get_page() which would trigger VM_BUG_ON_PAGE(). __vm_insert_mixed still ends up calling insert_pfn for the !CASE_ARCH_HAS_PTE_SPECIAL if pfn_t_devmap() is true, which it should be for DAX. (and as said in my other mail, I suspect we should disallow that case anyway, as no one can test it in practice).