Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2845273imu; Thu, 17 Jan 2019 23:53:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN6QKI+oWNPTz9Gs+7TImUasfuQ9hT7O54mKvV5aLi1Aj0lwHeS2/YfjR9G4rQ8e8fDvghX3 X-Received: by 2002:a17:902:6113:: with SMTP id t19mr17708229plj.248.1547798030989; Thu, 17 Jan 2019 23:53:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547798030; cv=none; d=google.com; s=arc-20160816; b=EyHf9m/wWlLy0K5oYdmoatVMgDTd3tTXWCIuGzLQ+ZVwFReF0dvwMS46zW8MWPcBio CAt2X7O6sSlhTcdnW7Ru3Xm2zZnRxDxk9JG3WMxbFk9xGFR1h4OmkbeG5xGKvK/qZzKB ebPzV2Gw/yJTFm6nW5Hge2OsOqX9wQIR1fEYIKF+Q/mca79e6HXQWydtioja6Bm7d8tm wZoY1S5mwqIj8rl+DkaQlws0z2PQujGxz+oQVrhHkSYprB37t2g5XGc+7MO6hGQ7ybZn 9w8QcL+I3gW7WJJbeC6bmYIVk1/krW4+3UcA30zuAtmnkZtOMurB1Y5x7eI73Z/yw7eP dB1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=vLNiKQ7cLr4NNUDnnRzs3azMc/POr/UV7CezxjOM8zw=; b=DrxgI5+T6d+BcMjSqGNcLUYFQ+c/3lEted9m1ffFyV/mWV/7D3nLOW8YU6B0nfuj1E M4Yrlw27j9ge9k66cOXHLbGa72rGszwzCLAwfK6J0K1TyNSaLVt38xdSf5yyoCwg2TDr vfsY2co2XEyHKQuTol1gzNSpBDmjZWUlYII6aWC5xWvZjc9KLK61p9TTJ20jiXP5conQ epxSpCfXi+KcWEa+Pi/9uo/SpVnZdkEvd8gX55gJ/1HxFIFAXbu9DQS5ruPPq5vSdoku rYC85PaLjWrBOYGqSEFpTanrHl3pMmAqOpgt/i8T29rUIx7knVZA1ChMaKh9J36j0ixO BGhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=oHuBADgF; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z17si4159957pgc.364.2019.01.17.23.53.34; Thu, 17 Jan 2019 23:53:50 -0800 (PST) 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=@oracle.com header.s=corp-2018-07-02 header.b=oHuBADgF; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727223AbfARHI3 (ORCPT + 99 others); Fri, 18 Jan 2019 02:08:29 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:51382 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727080AbfARHI3 (ORCPT ); Fri, 18 Jan 2019 02:08:29 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0I73jqV104279; Fri, 18 Jan 2019 07:08:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=vLNiKQ7cLr4NNUDnnRzs3azMc/POr/UV7CezxjOM8zw=; b=oHuBADgFyAc7zX723JM0vXcxLY+w3Rm23W/jQiXuFt1jZT7mzPfnQWV/jsvvJ9KXt7o3 O7ZuhmFM33XSBQeknnS0GRwF56jSGUMTqbviL/soL3PMS2Ozs1565ZrSmGXdJuBsGXvK uezfOpvtO6WrISu5fKJkEJtPsGJyDRx/rZ8MFhd1ggPqNf/3t461/r5qtDrMnruNkgTF 7nLKpoapMMVZOpFSwZCsBwIDGOUrmjTnh8c9FBNRa3M5IA1Exd6BpvOfCFyHStMPZL5m v1XW25T2Fxnl3mvhIWo8H1R9Jk12eUrWqO08lzAcbv4tLaJnHtRDBRozyTn3d4fLuw+4 Kg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2pybjsm025-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Jan 2019 07:08:17 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x0I78GBP018784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Jan 2019 07:08:16 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x0I78FXL013325; Fri, 18 Jan 2019 07:08:15 GMT Received: from linux.cn.oracle.com (/10.182.71.41) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Jan 2019 23:08:14 -0800 From: Dongli Zhang To: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Cc: konrad.wilk@oracle.com, hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com, joe.jin@oracle.com, dongli.zhang@oracle.com Subject: [PATCH v3 1/3] swiotlb: fix comment on swiotlb_bounce() Date: Fri, 18 Jan 2019 15:10:26 +0800 Message-Id: <1547795428-10595-1-git-send-email-dongli.zhang@oracle.com> X-Mailer: git-send-email 2.7.4 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9139 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=727 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901180054 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the comment as swiotlb_bounce() is used to copy from original dma location to swiotlb buffer during swiotlb_tbl_map_single(), while to copy from swiotlb buffer to original dma location during swiotlb_tbl_unmap_single(). Signed-off-by: Dongli Zhang --- kernel/dma/swiotlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 1fb6fd6..1d8b377 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -385,7 +385,7 @@ void __init swiotlb_exit(void) } /* - * Bounce: copy the swiotlb buffer back to the original dma location + * Bounce: copy the swiotlb buffer from or back to the original dma location */ static void swiotlb_bounce(phys_addr_t orig_addr, phys_addr_t tlb_addr, size_t size, enum dma_data_direction dir) -- 2.7.4