Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1948327pxa; Sun, 23 Aug 2020 23:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx24IDClWyYWNP9sBR9wYR3KFdel3R8UZZbreIdoEijkG53xPENAa6AE8xxKgCZnwZRwXbI X-Received: by 2002:a05:6402:b9c:: with SMTP id cf28mr4191547edb.63.1598252187128; Sun, 23 Aug 2020 23:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598252187; cv=none; d=google.com; s=arc-20160816; b=GXRev1v4TfOAwY64PMrzdqJsqJqJi68YJUPwwvC3Rvfa1KOEbSjlMvEqSu+NVtP+0r Wm632LP7cGVwVjaTR0NPF9gSRW2Nvk+ZEEQWYODT/klTxvu6+ygkc0wsXaGMDxgVKQsA WvCYqqAVyi32yFUpEad5QzARWYx4dvKbBHqIIYmrLIuZ96pCy2tD5eeEeh/sBLfzwSwk 9Ni+D/QbowOvkr3xuRTeGVRt/gtbu2wPwSt87hPln8ZmMKQRPdvPxiL4yX62EO+/Vxul Hej8cinIqxm92UyH867hYCa1PbEuWy8YpnL4Lq3TstohO5N3UaW3VmdNlvY8pKJi0qIu NzFQ== 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=PpxiLXTGal/wt3ks6BO05b4YlWK5pFB0UQ1qa3viVm4=; b=IEgMftGLYyhLDq+Lb/k3j4DIPy7xbDPvF7Syy6cJOyDcBUKC9pK/ymgiA65lirXonR 1sAIrSUlL08cJM6opV6G8wJx6Q+2o8lyqYSb/4ZwcDzoZ223MIhSXBlZzq87XkvVdwVq Fi46zQRCz/A3cnE5E0h4gHxRB3a+cE4dbdq0PHUzY3dUgTgacZbtQ6KjM1fuAnnzvp/w Re6i30gXSJ7eCjPjZAf7nYG3A3Qerh3tO60JUxRgZVBnm0nZhYww+sUscB1OWRgbpuXN C6hyNe7gP9woA80ecHVhdlJN8T/xZHC54klgFgFQuvHgqNqXCasCgCXelUupzFhcBFwm 15Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="thY/ZBCP"; 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 q25si6271092edr.402.2020.08.23.23.56.04; Sun, 23 Aug 2020 23:56:27 -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="thY/ZBCP"; 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 S1726181AbgHXGvT (ORCPT + 99 others); Mon, 24 Aug 2020 02:51:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgHXGvS (ORCPT ); Mon, 24 Aug 2020 02:51:18 -0400 Received: from mail-oo1-xc42.google.com (mail-oo1-xc42.google.com [IPv6:2607:f8b0:4864:20::c42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9908C061573 for ; Sun, 23 Aug 2020 23:51:18 -0700 (PDT) Received: by mail-oo1-xc42.google.com with SMTP id k63so1684775oob.1 for ; Sun, 23 Aug 2020 23:51:18 -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=PpxiLXTGal/wt3ks6BO05b4YlWK5pFB0UQ1qa3viVm4=; b=thY/ZBCPhvnCSfiETySrPCkEtlwF3IA4JcEb7+CvArxtKe42Nm8ATYMoU3SM07dIca +viAwtfw7spoq+oQu/5KgngzQqddDvW9QMP4dPQBvVJSScCMU0RozcVFsExAVsFXv5pk MYrTbyfxr74tKSqd757P/hwmx6T3hvsfJe/iJ7+Q55FcLg1dauWTnrmyGixeRg88Sbf5 Chxw13aO/9h9HHUa7G6dsVn7i5WgUrDqLOoiF5+5bNtjhA+Rd/Uuxc5rdjtZozliNdDm cxDBROoFbxmOeHAslfKOm8hU4iKYea2PtepHME2LYEot8P+MlH8dQiYI6LrmxU2VQ0F1 cClw== 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=PpxiLXTGal/wt3ks6BO05b4YlWK5pFB0UQ1qa3viVm4=; b=EcG9sqA9G9oqLx5LylZE3GAogT+MrXv7HfnlfOpvAgTL0dCVkpr+Ne2PrtzkED78dH eMSYXNvNCclEYMsLCqXsVXpM3kRTlR7IAA6tHowvQb6LBYQhFuywOEzbx6OsPYtmSelj bjeGNPj/NsYDfsJAqP4EjWInUuo2e5/8zO+VQhLQj/fFRzDBMKv2noV4PPnxgHI00Fju +JddgHVodNj9RzZGK9C2vorCBNvgKiLB6ukhlow3V62cQ/u6XW8009OY1VElF7HCXQTV XuGRDSerMASAVm+M6vDeWD7VxLzp9Ti33WDnPnv0w1MVOK725Or5YJF+s/HC/mVQDzf4 niaw== X-Gm-Message-State: AOAM531DD1Icz6m2pSrI8+7b2gG7OfkNM27O4R4a3ok6cqg1drUD2qIB pTdOSnSc5aqD/OMTEyUCKIw58CUqpXXQJdx4iXCAgw== X-Received: by 2002:a4a:e88c:: with SMTP id g12mr2812812ooe.49.1598251877951; Sun, 23 Aug 2020 23:51:17 -0700 (PDT) MIME-Version: 1.0 References: <20200526131259.GA97001@jade> <20200821184910.GB3407@lx2k> In-Reply-To: From: Jens Wiklander Date: Mon, 24 Aug 2020 08:51:06 +0200 Message-ID: Subject: Re: [GIT PULL] tee subsystem pin_user_pages for v5.8 To: Olof Johansson Cc: John Hubbard , 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 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? Thanks, Jens