Received: by 10.223.164.221 with SMTP id h29csp1903075wrb; Thu, 2 Nov 2017 02:47:17 -0700 (PDT) X-Google-Smtp-Source: ABhQp+T1j2sxboM9k0wD8fOyoIgQaBLmvKTKBe69h5T2uyrk5G6CWR7M4KFuAWrnTQMptx/9hbor X-Received: by 10.98.194.16 with SMTP id l16mr3067266pfg.139.1509616037840; Thu, 02 Nov 2017 02:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509616037; cv=none; d=google.com; s=arc-20160816; b=VWGA9FL2GId941oX3mom2HY0km8cGYXQu3sB4vLKvqcBl944JXGAPFDFT2et47Zg7E 0Fd9Bsq/DQO8T9u0cTqDVl8rsjLgQYILqBPQGXX8JliuS+VWEjnxHR991Sugi1a4vkxI x8xokMlBv62bj/WAyZjZXiVDpdncSd2ZDcfadVMRLb6nlkDEztJ2qMhoq6DnQkAzWCbC IenFp/kD+hgolOhY62nqAkgYbsje4Ol9AE7lXsI3euNfxGgn0+uutn3oTD2LaM1ZKZ1p urnz9pCVHuvSYpi3BcOGby95XcxySNZg/KZwAghpLQ6/aBUAVwNtH3PWWmjb2T7yczd7 LwMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature :arc-authentication-results; bh=Hi4Oe6hYS3De1RZ1Tz/In75q/qmzxkGdQ1BFboC60Eg=; b=s9Yo1hb2Nmm8Y4XlbSWkGq5P3aHE+UilqLgdFnsKs5Ax47gugefDJea+A0ooK83pxr eMIySc6uqdbn4nfcqqyYpLrZFqoRZWsum8NVi/NjZDo0bll545BObjZ1BQA95FWNAgeL X3zlkgwV2+ihKg87TaUMlcCYwN/khBMElKINb0G54HurGYbbOBdbm/MgLdurLWDCktYy WjBkUBUSzRQOiEWEWpiZzXO5MofL0ESwo8FkvUx6IXMqZwwISUspUY9DbgPC7sH52lsw dPEkvYehOJivhZkZiXJro0AqlOfhxFsa7l4LAUENje25TUrwC5LVcPWZRHAX1xwxBytX OUSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZFAaEyRv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si1866670pls.750.2017.11.02.02.47.03; Thu, 02 Nov 2017 02:47:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZFAaEyRv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755450AbdKBJqJ (ORCPT + 99 others); Thu, 2 Nov 2017 05:46:09 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51684 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752560AbdKBJqG (ORCPT ); Thu, 2 Nov 2017 05:46:06 -0400 Received: by mail-wm0-f65.google.com with SMTP id b9so9988366wmh.0; Thu, 02 Nov 2017 02:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Hi4Oe6hYS3De1RZ1Tz/In75q/qmzxkGdQ1BFboC60Eg=; b=ZFAaEyRvBqoBWXRU7bTnB+8mUk+C6LNywhsPGPTTbWfUk5RL/4F2mQWdmieIuffPd3 OktzuFckFZjWoSuJSOKaItIWN9z+I4H9Z3QevoVKxm2IvflE1lKE1SDWlPkM7yfEx6lP KVWTG7kmeyex5pXbH67bKNTbkCw7zg6mrou63M72RkMQNq7mIfxRFi/bkmxVYvrHHn8H eEzc+VpzQucq13Yi2FxzTCNc8EbMkUS3rUbZYETkIkILCTRn9NbTd/Lhy/r9F9yjn8wH Qi/UNSoAsuw+nO0Xo8J3OiRKCNK9dHKyFH7n81X0MKNFRd3lx+B74Zss7Y5Io22BKhCf pd8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=Hi4Oe6hYS3De1RZ1Tz/In75q/qmzxkGdQ1BFboC60Eg=; b=his08REivpThB0oLaOzW1Px+Dj8mGcPwp1+Xbwjjb3jHnR4QRyxu5hgvdaDkZ2MLfm +CIfC4qWxyPKPU23c5tnFGNxvUqYNtrmxKK53b75NoWRxHPEAtTCG67dtwqBlOp+gUwV mC9wJnkPC7GWFqC/+CzyS1fx917RUkjlwV7kqKZ+TU5KxspM4XFHOhaIdHVpanecE73b yWZ3Ruv9CwHbIO2cBllU0fPbtMQ77PGm7Eq/goCbqRXAD5LD6vyovnpLRC8PK/yjPVLv yDSkdGoi3Lh5bZHbTeViQbvwMnqez6LUaQpcdVKOfgxjwfDuYpVDPWYyxm0nlqQpfwDs hX8w== X-Gm-Message-State: AMCzsaV4La5JpAbM0KOg1m6pNBxlLHdHgyeM41m799++nRoPo7yxdgsF uP9vGN0TSJxrCQ2oG9uIfQl0yFRb X-Received: by 10.28.107.5 with SMTP id g5mr1015306wmc.125.1509615964992; Thu, 02 Nov 2017 02:46:04 -0700 (PDT) Received: from ?IPv6:2a02:908:1251:7981:141e:4e:6e78:f07? ([2a02:908:1251:7981:141e:4e:6e78:f07]) by smtp.gmail.com with ESMTPSA id r44sm3670896wrb.37.2017.11.02.02.45.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Nov 2017 02:45:59 -0700 (PDT) Reply-To: christian.koenig@amd.com Subject: Re: [PATCH] dma-buf: Cleanup comments on dma_buf_map_attachment() To: Liviu Dudau , Sumit Semwal Cc: LKML , DRI-devel , Linux Media ML References: <20171101140630.2884-1-Liviu.Dudau@arm.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <118709d7-07f7-7d81-4861-6cbff81e5ba7@gmail.com> Date: Thu, 2 Nov 2017 10:45:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171101140630.2884-1-Liviu.Dudau@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 01.11.2017 um 15:06 schrieb Liviu Dudau: > Mappings need to be unmapped by calling dma_buf_unmap_attachment() and > not by calling again dma_buf_map_attachment(). Also fix some spelling > mistakes. > > Signed-off-by: Liviu Dudau Reviewed-by: Christian König > --- > drivers/dma-buf/dma-buf.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c > index bc1cb284111cb..1792385405f0e 100644 > --- a/drivers/dma-buf/dma-buf.c > +++ b/drivers/dma-buf/dma-buf.c > @@ -351,13 +351,13 @@ static inline int is_dma_buf_file(struct file *file) > * > * 2. Userspace passes this file-descriptors to all drivers it wants this buffer > * to share with: First the filedescriptor is converted to a &dma_buf using > - * dma_buf_get(). The the buffer is attached to the device using > + * dma_buf_get(). Then the buffer is attached to the device using > * dma_buf_attach(). > * > * Up to this stage the exporter is still free to migrate or reallocate the > * backing storage. > * > - * 3. Once the buffer is attached to all devices userspace can inniate DMA > + * 3. Once the buffer is attached to all devices userspace can initiate DMA > * access to the shared buffer. In the kernel this is done by calling > * dma_buf_map_attachment() and dma_buf_unmap_attachment(). > * > @@ -617,7 +617,7 @@ EXPORT_SYMBOL_GPL(dma_buf_detach); > * Returns sg_table containing the scatterlist to be returned; returns ERR_PTR > * on error. May return -EINTR if it is interrupted by a signal. > * > - * A mapping must be unmapped again using dma_buf_map_attachment(). Note that > + * A mapping must be unmapped by using dma_buf_unmap_attachment(). Note that > * the underlying backing storage is pinned for as long as a mapping exists, > * therefore users/importers should not hold onto a mapping for undue amounts of > * time. From 1582925474450913477@xxx Thu Nov 02 04:02:49 +0000 2017 X-GM-THRID: 1582877017834169835 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread