Received: by 2002:a25:d80d:0:0:0:0:0 with SMTP id p13csp292405ybg; Sat, 23 May 2020 14:35:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlVPCdO0U+d2Dtc3Uj9hIhkUAIh4brOiQyzLpxScKrKOe4bdXvxbNNc5fOVyqfCDIeIADR X-Received: by 2002:a50:c906:: with SMTP id o6mr5428665edh.95.1590269711286; Sat, 23 May 2020 14:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590269711; cv=none; d=google.com; s=arc-20160816; b=gzY5tkVTEm+N4w6bdaEUUz38v675MSVTQL3MEH/QTE463h+1h6FFm/b5hPOhvvq0mb gbkaLgUEwC359Kr5n1oz6+4HlGA4BBrQmSlom26GUwkFGsXmb8p5+U3lg2dWkdmMMf39 EbNAa0jLslnIDTctKtWrRIj0RwRjQcHoMR2SyDnFwhdh8hyr7rrW0iv+EOpEMGtCOPVr E5aL9Npld6S9ZyuOnXyZzF5mHZAPJk8tLmv5PJ5BwQ4g0HrjwlqYSHcqAz0gNmOpwcRe AGaQmoRou1xLoQcf9OnCrKFnl7kydic91cm50JmYqr9gDdMqJQcEiQFAkS+AVrM9Q8al wQXg== 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=eRMBYMwT7HglaGDS/HEjHC3APgFjhB0IGthjLynCTmg=; b=mRToaYNyxTf0CGCjf3vmaStcEt93UN5b0Bl1r2m7wCNi30829HUhpNESf55bWXwIw7 jGm+D337HT3bAO/xDKT5v2nyNxL1ZF+6wzgBotRdhCkHtThfFmgPAAjpo7tmB34Hnnn+ tmhAv5dfQ6ykgtfqWOt+hMfxEIsCGyNHz+AvBNR0fyhiF0iP67N0/znRNyYhS2pSrAOW s+/8AI1VHRMrWJ1lDVS2dJqK++uJazg0OzeVWqzS4/szI0JjnowpcYaYx5ttcVCR/G6F IEYhgHvKC2Epq0k31KE4Tcp1fZXw7D8AYMhiGoY0UnszLGCav0PY6qLqKW/Uwp71+N9S V9RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=ehwpCzIY; 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 o10si6543438edf.122.2020.05.23.14.34.48; Sat, 23 May 2020 14:35:11 -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=ehwpCzIY; 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 S2388087AbgEWVdO (ORCPT + 99 others); Sat, 23 May 2020 17:33:14 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:18215 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387847AbgEWVdN (ORCPT ); Sat, 23 May 2020 17:33:13 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sat, 23 May 2020 14:30:46 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sat, 23 May 2020 14:33:13 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sat, 23 May 2020 14:33:13 -0700 Received: from [10.2.58.199] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sat, 23 May 2020 21:33:12 +0000 Subject: Re: [PATCH v2] fpga: dfl: afu: convert get_user_pages() --> pin_user_pages() To: Moritz Fischer CC: LKML , Xu Yilun , Wu Hao , References: <20200519201449.3136033-1-jhubbard@nvidia.com> <64aa1494-7570-5319-b096-ea354ff20431@nvidia.com> <20200523205717.GA443638@epycbox.lan> X-Nvconfidentiality: public From: John Hubbard Message-ID: Date: Sat, 23 May 2020 14:33:12 -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: <20200523205717.GA443638@epycbox.lan> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) 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=1590269446; bh=eRMBYMwT7HglaGDS/HEjHC3APgFjhB0IGthjLynCTmg=; 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=ehwpCzIY1PHJCvVslMEZpX9i9geALAhsYB0Ai9tSzWSshHQesNcmokU1NBC8Frg0s ZtF2HW3Gw1A3OMK8nFsWXTRNfXWuHlTa3L5atA0fNOmYrApWyNw7jTlozlSQdtURNQ jZNLBbCQA6uyLw5ZnnWP++axkxAdyC5CANl5+7GNztlv6U1UaYpWHZKnfkyfbj9HUy auMjf0YjOuvSPeGhSDw3U6EyZHmbHK3ix0JLsX70YvRqjxOU9O7EzjYbsxey5TGMpF byqhy153HPPvYVZPy1a+XMlQTzyS+y9+K2ieNfRTBIVcdFIJr8tAVrXcP0GuXgQkpM cx71DUtaXT3ug== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-23 13:57, Moritz Fischer wrote: > On Fri, May 22, 2020 at 06:52:34PM -0700, John Hubbard wrote: >> On 2020-05-19 13:14, John Hubbard wrote: >>> This code was using get_user_pages_fast(), in a "Case 2" scenario >>> (DMA/RDMA), using the categorization from [1]. That means that it's >>> time to convert the get_user_pages_fast() + put_page() calls to >>> pin_user_pages_fast() + unpin_user_pages() calls. >>> >>> There is some helpful background in [2]: basically, this is a small >>> part of fixing a long-standing disconnect between pinning pages, and >>> file systems' use of those pages. >>> >>> [1] Documentation/core-api/pin_user_pages.rst >>> >>> [2] "Explicit pinning of user-space pages": >>> https://lwn.net/Articles/807108/ >>> >>> Cc: Xu Yilun >>> Cc: Wu Hao >>> Cc: Moritz Fischer >>> Cc: linux-fpga@vger.kernel.org >>> Signed-off-by: John Hubbard >> >> >> Hi Moritz and FPGA developers, >> >> Is this OK? And if so, is it going into your git tree? Or should I >> send it up through a different tree? (I'm new to the FPGA development >> model). > > I can take it, sorry for sluggish response. > That's great news, thanks Moritz! Sorry to be pushy, just didn't want it to get lost. :) thanks, -- John Hubbard NVIDIA