Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1990435imm; Sat, 29 Sep 2018 08:09:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ZiPznkNQWO0n82jbvsdRDaaQ0/VU15WDCW78UVdzTvFWkTEKkMfVm1q8xh7W+KVcQZ1ph X-Received: by 2002:a17:902:a58a:: with SMTP id az10-v6mr3628682plb.204.1538233760707; Sat, 29 Sep 2018 08:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538233760; cv=none; d=google.com; s=arc-20160816; b=D/c0UN1puQNKHJnP7gXhkPDMY4d6M54VG1K0GpvnDtA9w0oARS/SLFBRfA2KPSr3nk rBB2mmUS+EZd31AEjO9+8zqnB140nysbKDwRFgKOCoAJhXa8adwAp9n30a6F93NhVX+L rN4MADAT6u/c5TyDIoJMUWqPrL7Cns80+cp+6LUe0ppiotZ2YNB2GKpVgdePhyiqeuG8 3v+EQEWqi6ekmDXilb/2hA+Sypm7tj080ZnQi9Ljli1AZXS1a6IUs+zy5lSvI/u3TM8J qKOuIMkKo3qdpk4wlrTQKmxswwz6L3eoTztvmjA8N+mRgFhTubq6ThQMo2jY8bMkPpok nTdg== 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=QIapKJ5C6/NVrIxPE36UzEpfRK6LSrCqSxQ0PF+NJWA=; b=YUmOJARM76fzTdzbcaTD8JKqKIPLfPw1+sPQ7hXasUu1+AO5oIIDl3dq8SPliWGbbN V3pyfM7RVK6dvkNkxvdsb6WvOWNTzLjNklS2i2XIQnCzZ/NVAo6v/MN70Ho9UyG5qJty WLBchvtwDH+VtC54iUJ+3u+k2fyVpQWF1kFOUPjs4UEkW5IUXkmtYV7lzBbEXrJTDjw2 iKQ+0fZi6i484UtU0LPUup7Uu6WFKHpejcTr4FcYMnAnG1PnZ+05RFwMFM94G9KJHf4M zNaATZfBj1hAg6ZUhbejSbRJfpLdPXK0dDGNMbwdezXYhVAoyIhleDTn39qB95zRs9MV hzCQ== 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 z11-v6si3875337pgs.323.2018.09.29.08.09.04; Sat, 29 Sep 2018 08:09:20 -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 S1728356AbeI2Vho (ORCPT + 99 others); Sat, 29 Sep 2018 17:37:44 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:51802 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728111AbeI2Vho (ORCPT ); Sat, 29 Sep 2018 17:37:44 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1331467|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01e01546;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=18;RT=18;SR=0;TI=SMTPD_---.CxTsoio_1538233721; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CxTsoio_1538233721) by smtp.aliyun-inc.com(10.147.44.145); Sat, 29 Sep 2018 23:08:42 +0800 Date: Sat, 29 Sep 2018 23:08:41 +0800 From: Guo Ren To: Christoph Hellwig Cc: akpm@linux-foundation.org, arnd@arndb.de, daniel.lezcano@linaro.org, davem@davemloft.net, gregkh@linuxfoundation.org, jason@lakedaemon.net, marc.zyngier@arm.com, mark.rutland@arm.com, mchehab+samsung@kernel.org, peterz@infradead.org, robh@kernel.org, robh+dt@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, devicetree@vger.kernel.org, green.hu@gmail.com Subject: Re: [PATCH V6 20/33] csky/dma: fix up dma_mapping error Message-ID: <20180929150840.GA9311@guoren-Inspiron-7460> References: <378d4064bf29863785f4cc637999e07507e2e926.1538058840.git.ren_guo@c-sky.com> <20180928162116.GF19827@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180928162116.GF19827@infradead.org> 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 Fri, Sep 28, 2018 at 09:21:16AM -0700, Christoph Hellwig wrote: > On Fri, Sep 28, 2018 at 08:51:17AM +0800, Guo Ren wrote: > > The arch_sync_dma_for_cpu()/arch_sync_dma_for_device() implementation is > > broken for some combinations that end up in a BUG() instead of performing > > the necessary flushes. > > This should be folded into the original patch adding this code. Ok, I'll rebase it.