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 X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47EB9C4741F for ; Thu, 5 Nov 2020 12:49:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5DFF32083B for ; Thu, 5 Nov 2020 12:49:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="ey9/JXPq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DFF32083B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5CB826B00FF; Thu, 5 Nov 2020 07:49:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 57B5B6B0100; Thu, 5 Nov 2020 07:49:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3CE476B0101; Thu, 5 Nov 2020 07:49:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0065.hostedemail.com [216.40.44.65]) by kanga.kvack.org (Postfix) with ESMTP id 01F1A6B00FF for ; Thu, 5 Nov 2020 07:49:52 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9330E8249980 for ; Thu, 5 Nov 2020 12:49:52 +0000 (UTC) X-FDA: 77450346624.21.back39_0d17068272ca Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 61F0E180442C3 for ; Thu, 5 Nov 2020 12:49:52 +0000 (UTC) X-HE-Tag: back39_0d17068272ca X-Filterd-Recvd-Size: 5042 Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Thu, 5 Nov 2020 12:49:51 +0000 (UTC) Received: by mail-qt1-f196.google.com with SMTP id r8so910543qtp.13 for ; Thu, 05 Nov 2020 04:49:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=c/75nGkQrQ26C3oLWTOAYAjfB1zI6lLeh7OxDvBkYU4=; b=ey9/JXPqLzTLqSC0JUXYcVxUXf6bgAVzYD4I4rO+pMYwL+MZhAaGFEUE/+P8Locz8v LJ+RhibI0qf9gLCV/mRJ83hORIvqSMnJCg5JZJzCh+xHF7VIlIbjuRPAp0C63CSZuqsG vYgc5f9BkYulbWJWSx8NN3DJBDW1+TKWxoIWvVybUSqXDpV2fkacRRICo8Tgpy2bpeGk Ltiq/5WP3OM3AF7WaYqeeBRq6dKQGJ/PL2Qyomfzz0Quj8y3hj/F49F0vpFao5oEjJKE yviSyey2jqX+EBs1TWKrdjoCX5L1qgaPHh/4yTZi2biI/4T2G6/5ZjvS2T05bvZ3lDtu PdhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=c/75nGkQrQ26C3oLWTOAYAjfB1zI6lLeh7OxDvBkYU4=; b=XrxRkqSnGxCNzDTwTdEPfP3Z7joW+SN7cPjkUiEm7IoVEzIGN2wMoCHHnjHbNkAfu+ OWHsA+y6xuo4QvoTIBlTOgnVD2zlEFCX5yEO9vc5WzFaWirn/JXfE8md4jUndlnSsjSt t7jnlqh4yrxzKTMqYlYLZtKW6IW4AxtN272ciCo3SoZ7o246pzUmykN7ZBvImVgAIV2n rlTa/dWO47ycfs16EDzAkOzoZP6AX+2swrjIZct4nlzxXvcqnoZRS+VBASVkwb3UvpXd k5WKA7lOL7tfExPRPx5HbZU+3T8gCYCQ4rbTIHFWzhozhPUTRJM1Qf99EgTxmC+EYg3s DIAA== X-Gm-Message-State: AOAM532jBEI+AJIZIIIN1ayKZbCdHzp/IiKYOTVGfESCRR81YWVIi1Bq YlA2Wz/3hhLlMAb0dZALsRNtFA== X-Google-Smtp-Source: ABdhPJyp3xdvhiGf3T//L8CChJ12FUSiNzGQbei5PswIE841BlFiQ3KzgYdb3JVW6KR7+PP7QIWQow== X-Received: by 2002:ac8:46c1:: with SMTP id h1mr1733189qto.361.1604580591377; Thu, 05 Nov 2020 04:49:51 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id u31sm763588qtu.87.2020.11.05.04.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 04:49:50 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kaei6-00H0yJ-2m; Thu, 05 Nov 2020 08:49:50 -0400 Date: Thu, 5 Nov 2020 08:49:50 -0400 From: Jason Gunthorpe To: John Hubbard , Christoph Hellwig , J??r??me Glisse , linux-samsung-soc , Jan Kara , Pawel Osciak , KVM list , Mauro Carvalho Chehab , LKML , DRI Development , Tomasz Figa , Linux MM , Kyungmin Park , Daniel Vetter , Andrew Morton , Marek Szyprowski , Dan Williams , Linux ARM , "open list:DMA BUFFER SHARING FRAMEWORK" Subject: Re: [PATCH v5 05/15] mm/frame-vector: Use FOLL_LONGTERM Message-ID: <20201105124950.GZ36674@ziepe.ca> References: <20201104140023.GQ36674@ziepe.ca> <20201104162125.GA13007@infradead.org> <20201104163758.GA17425@infradead.org> <20201104164119.GA18218@infradead.org> <20201104181708.GU36674@ziepe.ca> <20201105092524.GQ401619@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201105092524.GQ401619@phenom.ffwll.local> 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 Thu, Nov 05, 2020 at 10:25:24AM +0100, Daniel Vetter wrote: > > /* > > * If we can't determine whether or not a pte is special, then fail immediately > > * for ptes. Note, we can still pin HugeTLB and THP as these are guaranteed not > > * to be special. > > * > > * For a futex to be placed on a THP tail page, get_futex_key requires a > > * get_user_pages_fast_only implementation that can pin pages. Thus it's still > > * useful to have gup_huge_pmd even if we can't operate on ptes. > > */ > > We support hugepage faults in gpu drivers since recently, and I'm not > seeing a pud_mkhugespecial anywhere. So not sure this works, but probably > just me missing something again. It means ioremap can't create an IO page PUD, it has to be broken up. Does ioremap even create anything larger than PTEs? Jason