Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp458253pxb; Thu, 5 Nov 2020 04:51:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWKTTMySViKABPqycyDzr+0OvM7gsKvPOxfzszNS/IV0YprFHaM0D2vYZQLEYeD0Fe2yKi X-Received: by 2002:aa7:d502:: with SMTP id y2mr2453873edq.120.1604580718518; Thu, 05 Nov 2020 04:51:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604580718; cv=none; d=google.com; s=arc-20160816; b=Q+Z/mEf7PCnBoYaXAOSDJgftjzUUpkkSt9TaNS09gOf/gCT2eqdNATR8e8Zc+R+2fd Bb4RO8QRSHBm5v1G8WVnao/zGKpRBF6HEHzft+R9Zn9U8HdWWoiG4vtr5cD1pfmsVxKT O1uHdr+/0TCNhQbhWZ7xwOwWoeAZvO/hQafgPLr/mF10hOPYeoKnW5XcKyHroGsxD+N/ pn2+j0lqAsnTOJ7oozoy4ERW3L39SVU2HN0W6YErYowoHSLNAmV60sBUXcIbosO8TKrt 9ZTvvF0AjituDg7EBln4wmca+l5w4chAl4grKEseWVarsAwXV63QbcJpjoXb9HJnDx2A tQqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=c/75nGkQrQ26C3oLWTOAYAjfB1zI6lLeh7OxDvBkYU4=; b=CTR5WEojSmcoA+zJptb+LgyVY6d7jL7ziWxChhxwutJ70j9VDu7u+Srar2RxekBgip ao5io3DVz2aIqXoEenzLqP+rxDHhnLahrYWArTVMCX6fsZ7FsT9HdJzArB6P530RUyoY TokVSO7NO7uvFMa4ogDLGSvtHOzuGDXMzi2kwGbW79qFzymflc3u4emkUcszJpzQg40V PtxmNZYIumCT2w5eAbm13IWfTLS6Ofx2IDwzk8+LRPOpvShqtgLEqNO9/eyPjHz7KPqj ED3MhjXlPdOU2tzmd5Ir8qs3v6Bnuu1x7hO0CW8/WHQObqS0QmLlyDQB3fuYJpvOfN6o 28Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="ey9/JXPq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 g4si1101102edj.168.2020.11.05.04.51.35; Thu, 05 Nov 2020 04:51:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="ey9/JXPq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730466AbgKEMtx (ORCPT + 99 others); Thu, 5 Nov 2020 07:49:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgKEMtw (ORCPT ); Thu, 5 Nov 2020 07:49:52 -0500 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C814C0613CF for ; Thu, 5 Nov 2020 04:49:52 -0800 (PST) Received: by mail-qt1-x841.google.com with SMTP id h12so942980qtu.1 for ; Thu, 05 Nov 2020 04:49:52 -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=IKp1ZgvakRpYqPX885IEtgyqJl7Do734VlTQthOOXpiDrJLLBV4xHraQmTPr2rFdW4 sEOC4FusyH14cynUpaxPJKjXpZ2dSOoEYT6B3vwR3HUoajwfhTmbyMTsI6opC2fKvLOz pD2XoF2UvRgyMu5UAQVqSQMgb3NMBpiachsr+nQF8ml1o02JtknJNRqah8AQust5Bq6W zOXkMJ5l95KODsurTifCkiOJvs7Z3vpk2HBQrMx95zIdAnJL1NFRd88YTgi+taKPOsuf WLvM/PUoptJvpTx3sk1kLxvbPMPaDZwDqb3/Wjr418lK3DCvnbsPil8wcYaYrTOZwe2O 6g1Q== X-Gm-Message-State: AOAM531/M3CU5jQaBq2Eg/chB/0ejswbcLN35ubsdoOKxH9QetEb1kOj Q7HXqVeWdLOWt8XJTU48P94LdQ== 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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