Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4615461ybg; Mon, 8 Jun 2020 12:18:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7sA/y8sAShRk0V0eZ+VIXiHXoAIqyqygGRZzuWK2Jmd5nAXEeZrR6q0ZVxQNl+ChaAXat X-Received: by 2002:a17:906:f2c2:: with SMTP id gz2mr14847143ejb.260.1591643937616; Mon, 08 Jun 2020 12:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591643937; cv=none; d=google.com; s=arc-20160816; b=ze2+xGTfR/wrwlC5NqNe/FVHOyonDiJKDjStxjB5nWXK384sAUyJ+4V4aE0nxrBJdQ 3TpMtIE9wzsnz+mZgACjzkHE1oq4U7gnTon3XrYfaHPkqDXd352O6npqkGARmOlCPyJF dDsaG/QXa9jakKSHRGt2pWb5DtYv0v1yWMFSEeDK/5yluWdHKroTOl3FOqf05yOW4uQi FigQchHhqMxUl6SXD7x9XjHxnUXzvhr+r0ePSWE/kvPfOMf0IS7UZ0XX4Zs/d+9e3qyS PIZ8J3wMNJCcBjLfRFkVZ4PV7dqcspFJYv+v3PY81hlBz9bcTPOEXyVl7N7FPz2SP1IG QG0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jiswnTVgmED18kuC02a6ihAd3n7cwfYz+Q7lXljGX+c=; b=VZVyxA1JVvtNhWOkB6xxa60uVtig9xuvnyV67cuc2/7IIW1Fzcd2rZdDDnbF+qQo9Q yB/IYqHbXUgO+4RLJKghiYJVDPGIBSP+5c9Kz59yaXfMfxrM9AUPbApv81tZ/Vmg5Et0 9j9muUhI3vaTyFKzosm/JIW1ZYybbExmu5YISiheiI1/qYkUZ8f0St7aUlbHwNzMNT8+ bR42w6RUoGYDuMyKzbz1wBK2ORtrI27WJum5VejWluXFaOGOweYUE8HCQBp4pUj6E1Iv bgv3UmoJ8COjSrWk4m+ahfyfwN91xTEGicglc7kxbesVsC3zpGw3wSh870+YVktxtHfI tBpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=FooZzvkr; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v28si10241256edd.233.2020.06.08.12.18.34; Mon, 08 Jun 2020 12:18:57 -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=@oracle.com header.s=corp-2020-01-29 header.b=FooZzvkr; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbgFHTQw (ORCPT + 99 others); Mon, 8 Jun 2020 15:16:52 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:60564 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbgFHTQw (ORCPT ); Mon, 8 Jun 2020 15:16:52 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 058J2uB3031588; Mon, 8 Jun 2020 19:16:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=jiswnTVgmED18kuC02a6ihAd3n7cwfYz+Q7lXljGX+c=; b=FooZzvkr0pazIcONzEcKFgnFQlZT0bu5XIEkJhJdEDBNYS9KABxR/1ySQVEYv5gkkfH9 VjnBjlBwB+svIxIJ0CQubmhk1eD1pHJ9/+LaUyqutJ4jtdMAeVwdEL0UsD8KSWSTIAbH ZZnid8LNAYuOG9iMTKS5gSEfdiknCksCvPzZToYZoFhUCeP8vxz9Q1W2y9moWibCNZdx rUCyHpyApP6zieHLj3JQs3kPgks9zOvQM2tzXx4Yzw8UqVacU+5wHIvXU61GWTiv3DwN hawjnkU8TC4YdNLJTWxADwkRa/f7lDnjVxQZFpL1ZLX+HwaD89Tz4qCChsxLk38w2FFt Jg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 31g3smrfx3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 08 Jun 2020 19:16:44 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 058Ivcr6153482; Mon, 8 Jun 2020 19:16:44 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 31gn2vmfq5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 08 Jun 2020 19:16:44 +0000 Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 058JGgTK027691; Mon, 8 Jun 2020 19:16:42 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 08 Jun 2020 12:16:42 -0700 Date: Mon, 8 Jun 2020 22:16:35 +0300 From: Dan Carpenter To: John Hubbard Cc: Souptick Joarder , "open list:ANDROID DRIVERS" , Bharath Vedartham , harshjain32@gmail.com, Greg KH , linux-kernel@vger.kernel.org, Simon =?iso-8859-1?Q?Sandstr=F6m?= , jane.pnx9@gmail.com Subject: Re: [PATCH] staging: kpc2000: kpc_dma: Convert get_user_pages() --> pin_user_pages() Message-ID: <20200608191635.GA30374@kadam> References: <1590947491-11194-1-git-send-email-jrdr.linux@gmail.com> <7e725dd0-7423-b85b-ff56-9705419d13b9@nvidia.com> <5f0c68a0-2cc4-5724-d778-7e9d5fd7dfde@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f0c68a0-2cc4-5724-d778-7e9d5fd7dfde@nvidia.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9646 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 mlxlogscore=908 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006080135 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9646 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 cotscore=-2147483648 suspectscore=0 spamscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxscore=0 mlxlogscore=993 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006080135 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 08, 2020 at 12:05:57PM -0700, John Hubbard wrote: > On 2020-06-08 12:01, Souptick Joarder wrote: > > On Mon, Jun 1, 2020 at 7:15 AM John Hubbard wrote: > > > > > > On 2020-05-31 10:51, Souptick Joarder wrote: > > > > In 2019, we introduced pin_user_pages*() and now we are converting > > > > get_user_pages*() to the new API as appropriate. [1] & [2] could > > > > be referred for more information. > > > > > > > > When pin_user_pages() returns numbers of partially mapped pages, > > > > those pages were not unpinned as part of error handling. Fixed > > > > it as part of this patch. > > > > > > > > > > Hi Souptick, > > > > > > btw, Bharath (+cc) attempted to do the "put" side of this, last year. > > > That got as far as a v4 patch [1], and then I asked him to let me put > > > it into my tree. But then it didn't directly apply anymore after the > > > whole design moved to pin+unpin, and so here we are now. > > > > > > > > > If Bharath is still doing kernel work, you might offer him a Co-Developed-by: > > > tag (see https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html). > > > > Sure, will add him as *Co-Developed-by* > > > > > > Yes, but it's best to wait and see if he responds, before adding that tag, because > it also required a Signed-off-by from him. Souptick is porting patches from your tree? It's not clear to me how Bharath actually helped author this patch. regards, dan carpenter