Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1970180pxa; Mon, 24 Aug 2020 00:49:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyB0NgPKEUwjc4mZp2LanuEIPNUKeM/i+MTy+Sr8GhnEy1UJrEeoFbnoafyvk/jYOIi2rS X-Received: by 2002:a17:906:a40d:: with SMTP id l13mr4584953ejz.283.1598255376849; Mon, 24 Aug 2020 00:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598255376; cv=none; d=google.com; s=arc-20160816; b=gnTmtc9yLFDwKoSeWxFBdzRQH4CxUDAHqlUEaT2v0xCdbUkvRza6XWO0BNGqs+E5lS 9wHKX2wxuLDSN3rLcYFX1MidPjm1RNy623Uor4SCvQ+FqiUzKnaQ0J7FPVIzzWgh6IM3 l9+pnGKrze63Dkvv74qTJ8tERr6+IykdOfgy4mWOw5eBwigUb8XX3//9bNs2pCxCLNkr fNl1xn0WnmGPI5pe+JsclaYiauKefKEoXxY9G9rdzjReGmDbNnE6x26hq8ogoUpvx4bb noqjHDnGr9D+HBvUvcMORXZvcAK4EuqQXpqOGOQoxDy5VrghRCC5O7twtnLC6W1zLwSI SC5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gO8b4O8TpK8y9afKUQkLartHV1xAUGvXm6rGmn5Qr6o=; b=LBTj9sLgQULtAy00HJykw4q2tLlkcqREiJGIYk26ugswLj60pIuejXPjEmhMEhjJSL BqwC6aB52qKjJHTKKW58xs03jr8V8ghVhadgqtgF3bZW4SpGZLKB4dWXSM7kaYpUUNny zvSgFlKFA9WX9eZpe1ehAr8KCrOxQbNaRPyY9Fd8ckwfbH9NN8fTFifwiojgFbyI7BS/ ih8ooSA06FQ8oKYX636dN3rwrP6GYdRb65Mz3vB7lZs7+UL4SEFZTud8RmYk9Gh9VhPw kfUfOtN/oba1WI0qZ+m94nhHrEvjh1BifZn+Dq1QUpWaSLF7Y5HhTB3HlYXkgIou/SrN ZfRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h1hMdmwJ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si7214113eds.379.2020.08.24.00.49.14; Mon, 24 Aug 2020 00:49:36 -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=@linaro.org header.s=google header.b=h1hMdmwJ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726532AbgHXHqe (ORCPT + 99 others); Mon, 24 Aug 2020 03:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbgHXHqc (ORCPT ); Mon, 24 Aug 2020 03:46:32 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE032C061573 for ; Mon, 24 Aug 2020 00:46:32 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id u16so3095436otj.10 for ; Mon, 24 Aug 2020 00:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gO8b4O8TpK8y9afKUQkLartHV1xAUGvXm6rGmn5Qr6o=; b=h1hMdmwJt/qgS0tHc5thOhPRzz0fVcSe2EfLWpsOa2B7tmqzCSb/8yitvfVX2nvLH0 1SjzwnJm6CcMz6qcSWbwcY3Vt6r3mdiAoD6ko3r9TZ8X4ss6CkSCegvllZWNTIbPWnRE k3TjYia5vyX5Txd74fDG5JdtelMvwSPrnNuqN9OwoZDuReMAdnusiFYw5YxXjkSnk5vK BY2fAE54ylY030bRPItS6xkqhl7ussdMcmiV/ReCS8rRJzeqOj72RjToSGKhIeDlYxCz aAmUmdQrGW0ohgGN1jXzLVmMIA5tzwUIcHCzUlfMZWH21wic6kxPeEkJpohN6etL9Fwz KyfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gO8b4O8TpK8y9afKUQkLartHV1xAUGvXm6rGmn5Qr6o=; b=oJfPaxvoKbfuhSarsjMKwZjcwTROv+3JA6B3gch34Tl0aiER93Zb6lAc31JXs3d5u4 Ve2+C8yTkA3wmVNIfXWxh5M9hra88WnD92tZWXHRQbIJeLrNTvebhPt2gc1rqgSEtxU0 d2+ciNQrzgl+kXQe9AFzcvL2AKnsN2+BCZEeAlT/eAKtXTf75bpL7ZOZAAjN//vuC1D9 01okdLpxM4Ougq3spoqybWPTZCw+4E6xhNSCVw6HxM95rDrdTyl7F2bF/vAsK6kuBzJ+ ylCFDfTWofV7vVpnGTqOgApmJwFZnLnOxSnyv1HrzzqOulcbVfC3AOhDn7MYmQo90PrX 74tQ== X-Gm-Message-State: AOAM532c7NB6cgaDvQlBBTmZWWRDk4H2f6cRs/LqCdNe8JZzzYlnh06T wWMbSyp3W8Ju2/kdW4koSpgDA+5+G6vPqr8Pow0HIA== X-Received: by 2002:a05:6830:20c8:: with SMTP id z8mr2826170otq.324.1598255192051; Mon, 24 Aug 2020 00:46:32 -0700 (PDT) MIME-Version: 1.0 References: <20200526131259.GA97001@jade> <20200821184910.GB3407@lx2k> In-Reply-To: From: Jens Wiklander Date: Mon, 24 Aug 2020 09:46:21 +0200 Message-ID: Subject: Re: [GIT PULL] tee subsystem pin_user_pages for v5.8 To: John Hubbard Cc: Olof Johansson , ARM-SoC Maintainers , SoC Team , Linux Kernel Mailing List , Linux ARM , "tee-dev @ lists . linaro . org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 9:18 AM John Hubbard wrote: > > On 8/23/20 11:51 PM, Jens Wiklander wrote: > > On Fri, Aug 21, 2020 at 11:19 PM Olof Johansson wrote: > >> > >> On Fri, Aug 21, 2020 at 12:58 PM John Hubbard wrote: > >>> > >>> On 8/21/20 11:49 AM, Olof Johansson wrote: > >>>> On Tue, May 26, 2020 at 03:12:59PM +0200, Jens Wiklander wrote: > >>>>> Hello arm-soc maintainers, > >>>>> > >>>>> Please pull this small patch converting the tee subsystem to use > >>>>> pin_user_pages() instead of get_user_pages(). > >>>>> > >>>>> Thanks, > >>>>> Jens > >>>>> > >>>>> The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936: > >>>>> > >>>>> Linux 5.7-rc2 (2020-04-19 14:35:30 -0700) > >>>>> > >>>>> are available in the Git repository at: > >>>>> > >>>>> git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/tee-pin-user-pages-for-5.8 > >>>>> > >>>>> for you to fetch changes up to 37f6b4d5f47b600ec4ab6682c005a44a1bfca530: > >>>>> > >>>>> tee: convert get_user_pages() --> pin_user_pages() (2020-05-26 10:42:41 +0200) > >>>> > >>>> Hi, I noticed this never got merged, but I don't see any follow-up here that > >>>> retracts it. Is it still pending merge such that I should queue it for v5.10? > >>>> > >>> > >>> I think so. I had marked it in my notes as "accepted, and the maintainer will > >>> eventually merge it", and I left it at that. It's still desirable. > >>> > >> > >> Looks like it conflicts with some of the later work. Jens, given the > >> timelines here it's probably easiest all around if you rebase/respin > >> and send a fresh pull request. I could fix it up but you'd still need > >> to review that so the amount of work is probably less if you do it > >> directly. > > > > Agree, I'll send a fresh pull request once we have this rebased. > > The conflict is with the recently added call to get_kernel_pages() > > when kernel memory is shared. > > The conflict isn't trivial, I guess we need to handle the different > > types of pages differently when releasing them. > > John, would you mind rebasing and posting the patch again? > > > > Sure. Should it be against 5.9-rc2, or something else? I can do this in the morning, > about 10 hrs from now. 5.9-rc2 sounds good. Thanks, Jens