Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3883451pxb; Fri, 11 Feb 2022 09:48:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5Q4mIbafzHHH09TaWqup26kEQ5WjYQmRWBoJkGSS/t/zU5A40SDLjepwC13jsN0eAtkSD X-Received: by 2002:a05:6a00:114a:: with SMTP id b10mr2694457pfm.86.1644601705559; Fri, 11 Feb 2022 09:48:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644601705; cv=none; d=google.com; s=arc-20160816; b=0EHGKwytiPMR5fXOuARxfR32CfiPiFQLWxlt7Hjvl+8eCA7VPRoW2IvmEx9285glPo Kc1+hLKluwYYmgTKLyyHJ92+JBpxbglU75T9LCu6dBI6qHQEDsx7AE8hnaIcY6mWMBU0 eCGFGcvyS1vwSMwhcyaY8bAe5R//vpfkZlM3z2RHW09w7ZjIC/6F08zK/52Cr3siCb0E 3T9LYxL4lJfkW8/vF66FjOzH78syARXj4Hd3WlHRy0hLq6W/NUI4YKUUuH9ulEvekH40 PwtBsWAxVXulW4MaLNWgqPBo7We7SvLParFXfuomKGi1qGLdZ/nOrz0S3+CuDRE5RWlL rzTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=PP4TELWylzhqvbTRyqntJ6du2uBGE5WicD7gyfPqb1s=; b=yeb69U/ZRIEV03fb0grGdJqrskkY4GZj89pKmx2JS/xjWIDNzl0SxEa+tmTUUodkWs vMwua1e2fguD8u9g+ktU21oXRza4hppMlqKCa16CGdbKl36+Jobx6k8m1tSwbVNGB3v+ As+x/ImfkjzRjMY6tlCumQwznIXQ3aZiLtx6t0cbJPKJ+NFnVEVEN2/MqEIGztIB7N2g +jXIhS0FH/fdIptsXycuxGl+N/jH5iirOLsZAqGszdvOwhFTqjFv1M5D7cjjBvF4f8Gy kc6l6D/RSGMMnzklnZ3yl+hdY+kAzZMi1kq54wDU6X3fIMhh7dFAUH8bS8m48YisLmE3 mwwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L8wv4zWo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pj6si5164487pjb.41.2022.02.11.09.48.03; Fri, 11 Feb 2022 09:48:25 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L8wv4zWo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351746AbiBKQtO (ORCPT + 99 others); Fri, 11 Feb 2022 11:49:14 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351741AbiBKQtO (ORCPT ); Fri, 11 Feb 2022 11:49:14 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 79EB3FD for ; Fri, 11 Feb 2022 08:49:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644598152; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PP4TELWylzhqvbTRyqntJ6du2uBGE5WicD7gyfPqb1s=; b=L8wv4zWoXhN3DvGFAwArd9nmJRWpbc43cPEXwm/TbPogN7hCEsEltiqRtDhD2OaxX/2PJh DOQMtZnU6pA+Yx7h49VEMVlnuBkgLZSpVGIWMBPBLkrmqEn9IoqLgb/VQq8m9SaE9FAfBv BkAZ5VUoVyjyTM2K7fIuaLdM7km+3tU= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-656-B1PZvrRgMpKLbdGFGd4b7w-1; Fri, 11 Feb 2022 11:49:11 -0500 X-MC-Unique: B1PZvrRgMpKLbdGFGd4b7w-1 Received: by mail-wr1-f70.google.com with SMTP id e11-20020adf9bcb000000b001e316b01456so4042095wrc.21 for ; Fri, 11 Feb 2022 08:49:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=PP4TELWylzhqvbTRyqntJ6du2uBGE5WicD7gyfPqb1s=; b=LCXarshAfHfVGDS6ge+USqTqfUFkaHswceB8+8NYwTrdOjDtdVoCpPvowTBqxqjLQQ Aw2AksN0Z2+eG0+qCRNntOT4+Ga9V4r1VW0pm+V8n9LmXDk1bOA0psP1Gb2hi74QgEub ocv5eQGRHgFFNXBIgYwTstySQCzaCVLwZtRIqOiYN6lkljxJYF0cnZzcyIOjzCczV9mc +gcWAAQEO8+5Y8aC3ozbRr2clEhnprwTDfJA718Vrmy/IyQx14FDNE3EjWPOzvMP816P NdegiixKUoIGe768Ex4gok5BADNBS5sw31LzLG81kV43YPPc4ur8NgRFWCWkIWuVAV0L mtPQ== X-Gm-Message-State: AOAM531lfCPaM2NfRFGKxvNjQyy7pIP5DWJCswyOybwpSsKHg8fY0+xR RXKdHhbgqll7o3sCYZGajQrdC9AST6ky6ioKMv8RfpB51iAuLuJoeeync01oLWZKRo6rFFoaxdt r55p7q7mmmXXCKVB2qAvqkA== X-Received: by 2002:adf:e94c:: with SMTP id m12mr1981423wrn.383.1644598150267; Fri, 11 Feb 2022 08:49:10 -0800 (PST) X-Received: by 2002:adf:e94c:: with SMTP id m12mr1981411wrn.383.1644598150072; Fri, 11 Feb 2022 08:49:10 -0800 (PST) Received: from ?IPV6:2003:cb:c70c:aa00:4cc6:d24a:90ae:8c1f? (p200300cbc70caa004cc6d24a90ae8c1f.dip0.t-ipconnect.de. [2003:cb:c70c:aa00:4cc6:d24a:90ae:8c1f]) by smtp.gmail.com with ESMTPSA id f1sm3214049wmb.20.2022.02.11.08.49.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Feb 2022 08:49:09 -0800 (PST) Message-ID: <6a8df47e-96d0-ffaf-247a-acc504e2532b@redhat.com> Date: Fri, 11 Feb 2022 17:49:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH v6 01/10] mm: add zone device coherent type memory support Content-Language: en-US To: Jason Gunthorpe Cc: Alex Sierra , akpm@linux-foundation.org, 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, jglisse@redhat.com, apopple@nvidia.com, willy@infradead.org References: <20220201154901.7921-1-alex.sierra@amd.com> <20220201154901.7921-2-alex.sierra@amd.com> <20220211164537.GO4160@nvidia.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220211164537.GO4160@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 11.02.22 17:45, Jason Gunthorpe wrote: > On Fri, Feb 11, 2022 at 05:15:25PM +0100, David Hildenbrand wrote: > >> ... I'm pretty sure we cannot FOLL_PIN DEVICE_PRIVATE pages > > Currently the only way to get a DEVICE_PRIVATE page out of the page > tables is via hmm_range_fault() and that doesn't manipulate any ref > counts. Thanks for clarifying Jason! ... and AFAIU, device exclusive entries are essentially just pointers at ordinary PageAnon() pages. So with DEVICE COHERENT we'll have the first PageAnon() ZONE_DEVICE pages mapped as present in the page tables where GUP could FOLL_PIN them. -- Thanks, David / dhildenb