Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3793885ybk; Tue, 19 May 2020 13:06:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB1lfrJ/vJRkHwx2QoUDb+qu6e2utzQcl48iC3Aw8oMDtKGKnx7ixJ0f/KJ3JXI2IiKy68 X-Received: by 2002:aa7:d1ce:: with SMTP id g14mr509881edp.146.1589918798415; Tue, 19 May 2020 13:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589918798; cv=none; d=google.com; s=arc-20160816; b=bP/2CtYDJEMnQTxlBSwi7qcLO16qsAHTxJwFqvj22D+LiO61NnHBnVS3pOyF4+nNEm l3QTiBcpW/Jg1zCCtPSwIuQms+npl6Knf9QA9SPMCfVjHWgae1DdoF3jc+7PSx+H+6RA jewQyOkyhdNK7CmIj9devf4QErq6ArG55CiKI3T3NSFowJTJifsaR3Nju8YmgvKix3tl ooQon6J4BuULdhqAI52MPLDks8jRVOI/nXIuzh8QSEeaD/kpyFm7rOMKNtIZgyUlYUj6 CXrAPsRMCrGe0YMnlUG8z9pS9xfrGoG6Nmal2dUmZtEeT/xXCPIjAPfjGQJ6GyjPgktQ XwWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=I+orG+7rEdCJPZjUgf5aOsrGlbkMUn9fDowKMSsoZ2g=; b=E+C7gTVV6uR/TXJ8az7UMSf1XK0nOOAGBfuGPOeXiEeZccmTBE5DtSkzNtjHYkVnpz daydB9ySLbtBz7MOeHXK1ysTob+IKBgZUZJWE853c3P5/oxqd+II3qx+nnXHABc4wsDF POMsJI4GSIWIyslAY7D6QDgh8+5lKSJUO8qXwQFn+cZgcenO2CqYtDtaQDInnbF7/MPu CDCl792G9kSa4v6o1ZutkB/ZEugxjS3AYzScwN6o+lNEWuLvzrjMGNCi6TEQRjlB92wZ i4+JzdV+8zuKVLT1tLOQm9MmyAUep6pjzJ808xCac9NqxZw4SJ6ATxcTnpzlRZ3UEi/g 96Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=OeA0URDd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si244203edd.486.2020.05.19.13.06.12; Tue, 19 May 2020 13:06:38 -0700 (PDT) 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=@nvidia.com header.s=n1 header.b=OeA0URDd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728485AbgESUDE (ORCPT + 99 others); Tue, 19 May 2020 16:03:04 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:10958 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgESUDD (ORCPT ); Tue, 19 May 2020 16:03:03 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 19 May 2020 13:01:44 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 19 May 2020 13:03:03 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 19 May 2020 13:03:03 -0700 Received: from [10.2.90.179] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 19 May 2020 20:03:02 +0000 Subject: Re: [PATCH] tee: convert convert get_user_pages() --> pin_user_pages() To: LKML CC: Jens Wiklander , Sumit Semwal , , , , References: <20200519051850.2845561-1-jhubbard@nvidia.com> X-Nvconfidentiality: public From: John Hubbard Message-ID: Date: Tue, 19 May 2020 13:03:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200519051850.2845561-1-jhubbard@nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1589918504; bh=I+orG+7rEdCJPZjUgf5aOsrGlbkMUn9fDowKMSsoZ2g=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=OeA0URDdDEoYmrSyeZbmNSjYkOHX/p9wy63Apbm2XjDHgq3miJl/i0na08Vfn43RI YJi/E7JgJgoXCBwYik7RTdeSvY0bKSpoOinqqc+CK+NUow8VpXp3nz1wbytGFfkjN1 /2PyM61mbRSTw5aBh2po+7pSRo9zdFS3H+0b+8b7EHERtfPNskX7FcDvsyA2sWwjHg jAor6efO7gcQ8b6mDVRwikI8RefZr+5pssUoEpJQ3UMBkBTqLknnxmMKSilKMNGQos Pj5dDsBREkofQTJtBKeQFyv7wSW2CWQi7c09i+a2cQ0twqJbn0N6hitYffyPmO4hRw XOflF6r7EqEXw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-18 22:18, John Hubbard wrote: > This code was using get_user_pages*(), in a "Case 2" scenario > (DMA/RDMA), using the categorization from [1]. That means that it's > time to convert the get_user_pages*() + put_page() calls to > pin_user_pages*() + unpin_user_pages() calls. > Looks like I accidentally doubled a word on the subject line: "convert convert". :) I'd appreciate it a maintainer could remove one of those for me, while applying the patch, assuming that we don't need a v2 for other reasons. thanks, -- John Hubbard NVIDIA