Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3096625rwl; Sat, 1 Apr 2023 23:53:51 -0700 (PDT) X-Google-Smtp-Source: AKy350aMMhdw7hVu0LLbzRia4OeMfArAqp2jpUqXBL66/xwU5O6fQ/pUfZDblNqvBjqXtmThsQyV X-Received: by 2002:a17:90b:4a8b:b0:237:99b9:c415 with SMTP id lp11-20020a17090b4a8b00b0023799b9c415mr36451866pjb.38.1680418430870; Sat, 01 Apr 2023 23:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680418430; cv=none; d=google.com; s=arc-20160816; b=WemQnTcjpB249bsqj8/MaS9ujfluJL0QzeTQWbI6Mc7niu6kwlTE3sosUND4nZ7rDW HjDP4fvVWDt9TlzdIfL/j2aepu3wj/sXjZk572uYoDsSZPQlAM6vGJCjfTUpyysDMDIt D6kfn+EECiQoTSwLZmE9bGfR2rbN50xTkVITMv0AXHzfvMEOQZjKxZ6gNgKP3PFeO7Mv 71IrMNi8E9SBoLF0WG6DfxZdoZtEdzD3rZPEstag1q6neyWBqpeuFbpq7Bubz2/d2irn wlAh3EAP37D50izVYj38Wh93LwecHm9RvDJn5k9KAQWJ9XAibxhKh8xoQgYWtsXvz9db wFuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fcIjtspxWBF5ijLhFjJXuybxQWvAdo9USCLSaX9Zopw=; b=xgecTrRuG5toY73ekTHvavQ1mw0YlXaW1kmmdJ1JNufei0O0smQRPL9UHv4H22gbCO e8XTcmS12DuWf1fMVSYpgAp9tu/KJVe3O+D/8dC8wZsbpzXYfZqeOPbflYoStmXdirQ5 tCaL2O6qT9u2lAG0lecSSiyCCARD69yFJU1sG6eKYPI4Z82SgXpKJslZ1eWGopzxQfly GFCJ5HN/bi2M8IFdZnh81w+pmruPk9QxoNOKorWvrNXEikt+FogQBoIXFbfvYoNIcsIn GrL4yedoAwmdLJRPWTlEoRnRzDprmZRO3B+na5We4sKtY9hEN2Km8bFLW4CI0i4wQH1R QC0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pqQ8UGR2; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a170902d2d000b0019a95ab6b4esi6346101plc.407.2023.04.01.23.53.38; Sat, 01 Apr 2023 23:53:50 -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=@kernel.org header.s=k20201202 header.b=pqQ8UGR2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230044AbjDBGwP (ORCPT + 99 others); Sun, 2 Apr 2023 02:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbjDBGwN (ORCPT ); Sun, 2 Apr 2023 02:52:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEA601BD8; Sat, 1 Apr 2023 23:52:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8BE9DB80D9D; Sun, 2 Apr 2023 06:52:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 172F1C433EF; Sun, 2 Apr 2023 06:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680418330; bh=a/EFMMyTJLmdvL39oZFGsprYDxcAb3c4B++/AP48aI8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pqQ8UGR2W/sRFjxT8DARJF1gEKMVmWBdp+qDC9PGt0i4TRAg0xAwoG7YQQxAtDcdi 4Pb253Uxof3u9uF71S5Xrs095QXIy4AdVj3153ZRySY7w6oib4sTzQ8CqAmyQSRayG 2EAT/e6m3unLAUSKk8zn/YhBr3R6k1eBeKiApm9beA6GV7oD5h7f9NbOa+/z/XcUUq Wo1iHf9vVkeyRvdktceSDmuJx7kOOEGZtUZ6DOOxmfVTUgf0Rrb6I9FB+HQBZqNZ1B jIzLWCQM2V8D9tYxUPIRptyXw28M0O5YuIe+Fd2OoUguwXFRn6X5yntmmRZtkvx66T 3696IoVFPDlHA== Message-ID: <2b298e8c-e6fc-a973-9f42-b6a88e92838a@kernel.org> Date: Sun, 2 Apr 2023 12:22:20 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 13/21] arc: dma-mapping: skip invalidating before bidirectional DMA Content-Language: en-US To: Arnd Bergmann , linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Vineet Gupta , Russell King , Neil Armstrong , Linus Walleij , 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, Shahab Vahedi References: <20230327121317.4081816-1-arnd@kernel.org> <20230327121317.4081816-14-arnd@kernel.org> From: Vineet Gupta In-Reply-To: <20230327121317.4081816-14-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 CC Shahab On 3/27/23 17:43, Arnd Bergmann wrote: > From: Arnd Bergmann > > Some architectures that need to invalidate buffers after bidirectional > DMA because of speculative prefetching only do a simpler writeback > before that DMA, while architectures that don't need to do the second > invalidate tend to have a combined writeback+invalidate before the > DMA. > > arc is one of the architectures that does both, which seems unnecessary. > > Change it to behave like arm/arm64/xtensa instead, and use just a > writeback before the DMA when we do the invalidate afterwards. > > Signed-off-by: Arnd Bergmann Reviewed-by: Vineet Gupta Shahab can you give this a spin on hsdk - run glibc testsuite over ssh and make sure nothing strange happens. Thx, -Vineet