Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10267017imu; Wed, 5 Dec 2018 20:17:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/W+8I+MT+dfTPnyLomWKEaMbH48ExHeYKKo2DRj81IsU0yNsVLG+P0rRDG4ZLG54T/niOez X-Received: by 2002:a63:955a:: with SMTP id t26mr22967905pgn.449.1544069831728; Wed, 05 Dec 2018 20:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544069831; cv=none; d=google.com; s=arc-20160816; b=fvXcxRy9HNC3jrDzQnT2SKvQ0Z6RByCgW64WOYCRK7usp/Ye2lLw+GTab8XhGDwvod Syn8XUJd7H39HZiJ0w9NWhr85qcFFRiSxHwnkIP2qemLdAN85MOx9DIpaFJKYIJJBdc2 Sazyg7mJpStK67vcT05oycXMH5CyqODtISJ/RQcDeziOfrCPuzGVjGQC4Xz8HQsZBgfH +GJ12RBsTBtvQCuCF+5PpWeNsYwR1skHYk7adRhfP7iqVKTcIH3wyejA9NTnWWqKMIyz Wiq4/l1okA3CMCVarQ4WXBk+quiBHyyk477zoWPff6T97iqR3ndqhTTI/iopSDmauK+U qf1A== 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=PDYLUCmnxubR0jcu1AJIckvgK3t848Vd0QAvk7lM+ME=; b=ZXx/cd8ZdWKMfoIFUHvTeSpajTiwrDFjciJ8E7kSVntyrRojrfdmi16l6jUvxq2I5o DoADEcoRGg/6YpcY/Z+w4JY1Fb6GZ6lXbpnFH5B4l2vNyVyiceONIg0wsKH+b2KmDnmw KZdyhbk/164Gife/Z2nsWkXrQasVjvqHDNmSTS9YXbflY24gCVbLcUWH8zS4xq4mia5v hekLiSuF49KsKo8EsgVHR7nJE6AeGm11dFw6dGJDLCQZJmyIjswdowDbQvLlOf3sbACV E6QOuqoCzFEj3QVJYwoIPNLdWiC7kdAbW7pV8Kb3/AkuqP5XNOv0xHxv8LTQCjz9hL10 0dTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=RI5Wn6d4; 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 n125si20794485pga.179.2018.12.05.20.16.51; Wed, 05 Dec 2018 20:17:11 -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=RI5Wn6d4; 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 S1728764AbeLFEQH (ORCPT + 99 others); Wed, 5 Dec 2018 23:16:07 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:60326 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727695AbeLFEQG (ORCPT ); Wed, 5 Dec 2018 23:16:06 -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 wB64Eptl114475; Thu, 6 Dec 2018 04:15:56 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=PDYLUCmnxubR0jcu1AJIckvgK3t848Vd0QAvk7lM+ME=; b=RI5Wn6d4Va/RLEUsC1VzNdC41r0WpsB0JzuG9wXuC4US3qaFdXZ4eQSD9FAqkZXwWfiu FRwSkQM74zYubCVNLzQzuP0guz/yo00s0KL2NKJV5JMDHFG9xq2gOjofOpz8djiKoE5B DfrKPqdoOXGFWPtTj4N0Hmu9h7FXzyNZRvBmZh9mqnWmssM6mRLFheDjM3gypXQeQ/70 qXfZjHMaaygU3Pr4QpgQrBo6OmZsioqW6zZdlxisQF9BUAhzRMrer6e6Xpe++Fy2AL5c zoq7TzGjTY7clqhqToUJc3DPiKODXQKkhYAYIizl/YpTMAxmdjYto9WuzJCb3hV6yoz3 rQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2p3jxrnyc0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Dec 2018 04:15:56 +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 wB64FtVw005841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Dec 2018 04:15:55 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wB64FsAX024484; Thu, 6 Dec 2018 04:15:54 GMT Received: from linux.cn.oracle.com (/10.182.71.9) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 05 Dec 2018 20:15:53 -0800 From: Dongli Zhang To: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: konrad.wilk@oracle.com, hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com, dongli.zhang@oracle.com Subject: [PATCH 1/1] swiotlb: fix comment on swiotlb_bounce() Date: Thu, 6 Dec 2018 12:17:56 +0800 Message-Id: <1544069876-21185-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=9098 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=704 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812060037 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 045930e..0a5ec94 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -389,7 +389,7 @@ static int is_swiotlb_buffer(phys_addr_t paddr) } /* - * 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