Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp646673oof; Tue, 25 Sep 2018 02:46:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV63OkBTPe2M2rdg6Gm2afNchNdxBSs5vzKa5QxJFKGXK75TMM/X7W7aLgiUvKQwwk1XODTzd X-Received: by 2002:a17:902:988a:: with SMTP id s10-v6mr290134plp.200.1537868819163; Tue, 25 Sep 2018 02:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537868819; cv=none; d=google.com; s=arc-20160816; b=eVV0BwAiYremXlfrwKBUHyXuqo0rt2ye+i4qpFB8hgtFfhOVyNus9Ekub5HAOrcOoO b4kLRsZrJl2xImQZYC035Ap/T0h5J6sZD0teA7ew887dbAQyYk5waK1EMweqy6JjjHhw TWKc6MtsogNwzxHddMLMrPjW2CC2T8bMUZ2Xz0akKB9SgRyZE4CKXKo0bSoaa8Ows8bz Na4mHPtXn8B6wzO0BGmfGC06rBQyaMrMLOr5Rvj9dhz6rVLzk6qhKlu/DQRPpdAQe98y BWy9eIGC/j4hiSDzeUl5SlC9pQJ9e4gdV2k9oGl0+1EIqnp6+O7rfiBoN/iL0NNI/aCc WOwQ== 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; bh=CtP/5qsSAHV0aljygw2ES9BPj3P7+Iz9hgxGpwfPcbY=; b=uLAW3hFXRma9/ECHrpcAMuWiUM4KxlSsuuhE64LM0YCLhL3zJBRT7TXKMaNvvyVSGp NuUz8qw8COnBR/mU+R5e4XBaVeqrHlueHybDQ7PgDdbhWWG6i3LWMZa/458h82tFXeaM dku8LACD51+zrHK6dbS3cODuPdCElCGnSYdq4Aw+K1SWHS6G8AKDpGFEQa5A1XJycfb1 A7iJtpTvr3ALnyY1ulcIWx53487TVV5zTf5LOw5YGOUHj0gKtJzGpEo6iygIWPnDlK/s i6LjZsBfVtT4xtbnPMCyPg02Qw8Xr5ySuUUc/XOkrejEDbjkzRx3MxttU/gleiFsgjxb bK+g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si847852plk.255.2018.09.25.02.46.43; Tue, 25 Sep 2018 02:46:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728676AbeIYPxV (ORCPT + 99 others); Tue, 25 Sep 2018 11:53:21 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:36555 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727114AbeIYPxV (ORCPT ); Tue, 25 Sep 2018 11:53:21 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07863218|-1;CH=blue;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03272;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=14;RT=14;SR=0;TI=SMTPD_---.CvbiEzD_1537868763; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CvbiEzD_1537868763) by smtp.aliyun-inc.com(10.147.40.26); Tue, 25 Sep 2018 17:46:04 +0800 Date: Tue, 25 Sep 2018 17:46:03 +0800 From: Guo Ren To: Arnd Bergmann Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Rob Herring , Stephen Rothwell , Linux Kernel Mailing List , DTML , linux-arch , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, Greentime Hu Subject: Re: [PATCH V7 1/2] csky/dma: bugfix dma_sync_for_cpu/device Message-ID: <20180925094601.GA2102@guoren> References: <1ccf1bed89758a5a9b57ac2ce6d11ca898a1b9ae.1537276837.git.ren_guo@c-sky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 24, 2018 at 10:38:04PM +0200, Arnd Bergmann wrote: > On Tue, Sep 18, 2018 at 3:48 PM Guo Ren wrote: > > > > ref: https://lkml.org/lkml/2018/5/18/1068 > > > > map for_cpu for_device unmap > > TO_DEV writeback none writeback none > > TO_CPU invalidate invalidate* invalidate invalidate* > > BIDIR writeback invalidate writeback invalidate > > > > Signed-off-by: Guo Ren > > Same comment as for the other patch: Explain why the original > version is wrong first. When giving a reference to some other > discussion, use the "Link" tag above your Signed-off-by line. > To point to a discussion on lkml, lore.kernel.org is the > recommended archive, so it would become > > Link: https://lore.kernel.org/lkml/20180518215548.GH17671@n2100.armlinux.org.uk/ Ok, I'll improve the comment: Fixup dma_mapping error in linux-4.19-rc3, and we must implement all DMA_TO_DEVICE/FROM_DEVICE/BIDIRECTIONAL for both sync_dma_for_device/cpu. The implementation of arch should follow the following rules: map for_cpu for_device unmap TO_DEV writeback none writeback none TO_CPU invalidate invalidate* invalidate invalidate* BIDIR writeback invalidate writeback invalidate Link: https://lore.kernel.org/lkml/20180518215548.GH17671@n2100.armlinux.org.uk/ Signed-off-by: Guo Ren Best Regards Guo Ren