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.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 BF2F1C2D0A3 for ; Fri, 6 Nov 2020 12:59:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2FBA1206D5 for ; Fri, 6 Nov 2020 12:59:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fBdoPthD"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="SpM7chHf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2FBA1206D5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=p7yXBkF6VB5eY3TTEBxHwLMyhyXHmRV8MbAKU40h/ZQ=; b=fBdoPthDUCZEIPCzV+nP+njfz au/nOj+lAoXWEV8oiI9JyB+gtESLAeqWQpoJOFpcJbyk9Anxf4E6wzOV2h7R6obeZtEFAcPaZzvxu X5hAWKpAyfLQ4l7Rdbnho8Kv5fbAKH8nFEFNV3ASX56fwwi3PYrsVFeUAI03ogJ45IeetyWWXRicr LYwQ2kwGtvQyaY2pRrTw1pjhS5YcEAa3ZMEBHakaJJjTuBeNXRyOsOPOOyLVbpLYbHbDrROZJ5GUl GOPN/ssUjcEwRwZjoW5eM0OPFpxaXXB3UZkkcdLkJTwCVb3NZuHeretLYOMnhArUaWvwHJQjVOUU2 /Vm8Xarvg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb1KM-0000Wz-CB; Fri, 06 Nov 2020 12:58:50 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb1KF-0000U5-AA for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2020 12:58:46 +0000 Received: by mail-qt1-x842.google.com with SMTP id i12so643146qtj.0 for ; Fri, 06 Nov 2020 04:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LDmpY5Q3jeo13aLjq8mpu4vGc1arJjADg5EChwDGndg=; b=SpM7chHfdZV7h7CKnja31DtYMLYzvOBfAlRtmJ/n/nmTfwC0/x656sMJMRCmtcchj/ ZyUoXciqxn2yvqmwaFJGHZpzSVxZGn6Ze+JMY7srqI9JIuOIozv+IXpP8Z+LAF7g6ch/ geDIF/iCN2g4ZH9VZGIJGVBqjOuzBGBXOfBZNRG4f137xGwffeFnYlpuanA0eFi1/Rzl pE4g37GMMac8kgjZ4ctH1Noi6iDIudZDIDNiFDVJFDqddViW7d1FfR7i1JICWyRJ9Ug1 S57hfmUNM5E/OZ/BlY/n0jaRZ1v6nFt9MTt+r5sEgovuILshM1zaV3phLFg35dveDz2Q NHAw== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LDmpY5Q3jeo13aLjq8mpu4vGc1arJjADg5EChwDGndg=; b=BEAjeZKqUn3jd+qHDcaDYkFZYFnq0hDBXnJpY1jXou3f1M/IPzLR3PMVQmBiB1v7/C GIXwAC1GIbr2FpfeNDf2S3XPpqQgOp5MjMfhNgLtH74aNUIVQC8JYxIw0LgF3N5mj+h1 mC1KP1Fv35kvVOuG9klfsOzvxsA/WroR0YXBoLvFO+tbVgoo0hq8XCfV5MU3W70wyIBJ lamDSVPdHVOzahLAaHA5EfX7LVnk7BwENjmHxYiNLs6L8b7UJXJ9BRLjrAGqP0Kc3LLe yLIj6LzFSu59dRyBLf+zvCyk5PY390KFJzw0jf/k9Uc5L9aYkiDgY7gs8uwd5gw9FBs9 VRgg== X-Gm-Message-State: AOAM531E4D3LX5GEr3o8671hTF7v5IMiZVFEeXLqyDNnTkO0BMnJmcUb oMqiLR1sJrrYi1LOcTMM6pK9BA== X-Google-Smtp-Source: ABdhPJw+rwYTMNOCDOtELAS3ZURAM14wn0+raNRbu4MJsphc7No8hlqtgP1VZD/3115+BJAOILEwww== X-Received: by 2002:ac8:74c:: with SMTP id k12mr1292900qth.32.1604667521864; Fri, 06 Nov 2020 04:58:41 -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 o63sm432040qkd.96.2020.11.06.04.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 04:58:41 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kb1KC-000leP-L9; Fri, 06 Nov 2020 08:58:40 -0400 Date: Fri, 6 Nov 2020 08:58:40 -0400 From: Jason Gunthorpe To: Daniel Vetter Subject: Re: [PATCH v5 05/15] mm/frame-vector: Use FOLL_LONGTERM Message-ID: <20201106125840.GP36674@ziepe.ca> References: <20201104162125.GA13007@infradead.org> <20201104163758.GA17425@infradead.org> <20201104164119.GA18218@infradead.org> <20201104181708.GU36674@ziepe.ca> <20201105092524.GQ401619@phenom.ffwll.local> <20201105124950.GZ36674@ziepe.ca> <7ae3486d-095e-cf4e-6b0f-339d99709996@nvidia.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_075843_472827_2E17F8FD X-CRM114-Status: GOOD ( 14.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc , Jan Kara , KVM list , Pawel Osciak , John Hubbard , LKML , DRI Development , Tomasz Figa , Christoph Hellwig , Linux MM , J??r??me Glisse , "open list:DMA BUFFER SHARING FRAMEWORK" , Daniel Vetter , Kyungmin Park , Andrew Morton , Mauro Carvalho Chehab , Dan Williams , Linux ARM , Marek Szyprowski Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 06, 2020 at 11:01:57AM +0100, Daniel Vetter wrote: > gpu drivers also tend to use vmf_insert_pfn* directly, so we can do > on-demand paging and move buffers around. From what I glanced for > lowest level we to the pte_mkspecial correctly (I think I convinced > myself that vm_insert_pfn does that), but for pud/pmd levels it seems > just yolo. > > remap_pfn_range seems to indeed split down to pte level always. Thats what it looked like to me too. > > From my reading, yes. See ioremap_try_huge_pmd(). > > The ioremap here shouldn't matter, since this is for kernel-internal > mappings. So that's all fine I think. Right, sorry to be unclear, we are talking about io_remap_pfn_range() which is for userspace mappings in VMAs Jason _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel