Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp774635rwl; Fri, 31 Mar 2023 02:06:05 -0700 (PDT) X-Google-Smtp-Source: AKy350YV6J/fd04l1Enii4QK9SFfvKmnZNJrnbMN3DBCM7wk864drQPxgcc/VQk8h8ByXqIsD7xZ X-Received: by 2002:a17:906:49:b0:930:aa02:f9cf with SMTP id 9-20020a170906004900b00930aa02f9cfmr4470910ejg.2.1680253565717; Fri, 31 Mar 2023 02:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680253565; cv=none; d=google.com; s=arc-20160816; b=buUKcBOPo7L9vo089F1J1C5rBedECr5zdqDOo/0Rh+SeU4pB419ZWzMFeinF4gYKD8 WgLmr+Gm0L2Gl6j0a2lq2yn4e5XHG2UE6dw46Si8bIw0D8/Lrlzgr4Mhoie4qy9GdGmc Po2AIuc47vEFZs4UVYPNqS2BkpvmmdOWTCfU09KAI/5XuiODN2S6YXYLPU5FliNmWdQM /zG8IhX5osTTyGFRFn4zihV24BtoTcuxlMqKQjwO20qg/0zbiltCZ0S7AZpl83+26BdR 57klLHfyErST0mEWM4sbewxkfjtSgNQPn7PLgUHH8rowy1NEP5UXXqKKrW4CxaUCx3Gm oaEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BWm2jI2yHpPi79Yy1CI28Qxt6CEyohh41n1LA0fGLDM=; b=S2dcXmVLhjn91Q0E3G/iJUOfhtiuwmSVdfuOGPdUlBXtze7zFE1d659e5c4pNBNB3j haXFjRbjphTiAUHtcavUsV0m7Md9A6djQLo0sx5OwSB2F+5RGbGAdApNol2milP06t2h KpJGjqfNsa/mW2BtTt/XJ5T30OFzxkX+ZAuT4RmhMrh3kIs77sGQCvB+IMTGk1KQMxQ0 U65gNp4SoTBu/H/h/X7ZolR0WDHSjFmIBDmOSz4/hZJP/ari9BVdQSCWtZgerecjrNqr I+VSDyuHznQwW1+us4w7z1UvuJC0i4JvQBYRFi4weZOLn93yIVD/gLkSvgxnZ/LW7Fu/ bH7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ma9CGEid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a1709061e4500b00932e6d5bd8asi160225ejj.980.2023.03.31.02.05.39; Fri, 31 Mar 2023 02:06:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ma9CGEid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbjCaJDC (ORCPT + 99 others); Fri, 31 Mar 2023 05:03:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231768AbjCaJCo (ORCPT ); Fri, 31 Mar 2023 05:02:44 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098A546A1 for ; Fri, 31 Mar 2023 02:02:13 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id m16so6279769ybk.0 for ; Fri, 31 Mar 2023 02:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680253322; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BWm2jI2yHpPi79Yy1CI28Qxt6CEyohh41n1LA0fGLDM=; b=ma9CGEidowfFcQ/RWwH9jcS3JpkuGTgIsGbkrjxNbpyIzTV0VWElAtIXD1pJ7GvLWW o7VY5XN4Af8jnZZ9O6VFKig0/95cqzaeDCJiUPwYZQl8VR+1dmIghX/+s6g86bp9ODnN MAzwUVCiMu/TmuzqPKTEsI7qk7BcH62AgPt5/bQM0gksa4J2iBNXg4d+1aT8ueqsMtsu j/o9cEOqf4x14P3d54vkcr4sulvwLKD3DWlzGUaFgwLRmbPD3v1X3PVwEGdEFSAXSvdX cX0K9wRov1LZHYLnnywTrm7QrejvefZ111ofD9/89zCLVipeznKpthRrdFZIrBFoD4rz Cj1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680253322; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BWm2jI2yHpPi79Yy1CI28Qxt6CEyohh41n1LA0fGLDM=; b=u6beEidmnY+YymnQ7DoZDs70ofMhgzddmmdYGE9sYuHnZFc3/s9DBUEMAeyT5BNnUa a48NNN+FNziTJMADVxr/EVfEuUv+rFXijBrmR4i9bsYNoilEdI8jIrpYyg6yrR47R6b4 XoePwcnIUzvIpTGealN0trWEucAgtYvZVn3EghHkc3UtVtCunhkiuM/AlLF6cILIoJZh k7FHet/m0PtftUaIIPCAPaQNua0DEHM4PD81pV0p1dry8ZJ/bBKlmmNoBU26IvfPbmF+ eRE+Q3VFtB8fPW44bL27v5pu++yhf5+9yh5RrRHVk9aVCzVaNUWUwyfkRueczGIDD1oG ponw== X-Gm-Message-State: AAQBX9eNhUpSGheAoqS45nhWeMq5NO6LAMLTo3z3nM83c/zIqXVvE2fs w6KCTT6rKHdO0F0Ip+HjamBzB6U32QG2ST8oMf67F5HdtOpUZQNksCs= X-Received: by 2002:a05:6902:1006:b0:b78:4b00:775f with SMTP id w6-20020a056902100600b00b784b00775fmr12714571ybt.4.1680253322494; Fri, 31 Mar 2023 02:02:02 -0700 (PDT) MIME-Version: 1.0 References: <20230327121317.4081816-1-arnd@kernel.org> <20230327121317.4081816-16-arnd@kernel.org> In-Reply-To: <20230327121317.4081816-16-arnd@kernel.org> From: Linus Walleij Date: Fri, 31 Mar 2023 11:01:51 +0200 Message-ID: Subject: Re: [PATCH 15/21] ARM: dma-mapping: always invalidate WT caches before DMA To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Vineet Gupta , Russell King , Neil Armstrong , Catalin Marinas , Will Deacon , Guo Ren , Brian Cain , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Dinh Nguyen , Stafford Horne , Helge Deller , Michael Ellerman , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Rich Felker , John Paul Adrian Glaubitz , "David S. Miller" , Max Filippov , Christoph Hellwig , Robin Murphy , Lad Prabhakar , Conor Dooley , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-oxnas@groups.io, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2023 at 2:16=E2=80=AFPM Arnd Bergmann wro= te: > From: Arnd Bergmann > > Most ARM CPUs can have write-back caches and that require > cache management to be done in the dma_sync_*_for_device() > operation. This is typically done in both writeback and > writethrough mode. > > The cache-v4.S (arm720/740/7tdmi/9tdmi) and cache-v4wt.S > (arm920t, arm940t) implementations are the exception here, > and only do the cache management after the DMA is complete, > in the dma_sync_*_for_cpu() operation. > > Change this for consistency with the other platforms. This > should have no user visible effect. > > Signed-off-by: Arnd Bergmann Looks good to me. Reviewed-by: Linus Walleij Yours, Linus Walleij