Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7972525rwl; Tue, 10 Jan 2023 07:34:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXuxYOOJXPeoTZwVrmnKczovHJ5AorY5GfQu4/8eTCrFSbTq95xxs8KrXl9nqsW3k6fiooWq X-Received: by 2002:a17:90a:bd96:b0:228:7eea:3bb1 with SMTP id z22-20020a17090abd9600b002287eea3bb1mr3654258pjr.13.1673364884258; Tue, 10 Jan 2023 07:34:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673364884; cv=none; d=google.com; s=arc-20160816; b=NVlbPIBdEhG6t4+WbQ2fFRWVNeuTjNvOHiGD4pfgy7KQurquxDkRZb7CcVD642XIV8 dJ+5Wpf2I8H3GT09Ld6y0Qu8WE7fweZX5paAIah7xolDGEZweyfTaf0e7tHJ42LBFqUU LX2I8GnjIuyKcQFiPkWfRxdzpX6QV+1JdbyNAg6EOn71TPF2qFOKi27ii0FSV07Zrezb 99vFZvoZ200sudSD+j8adE4Itdvq3mkRBwkhpUoSb9jxpkpeYxBKx2AzeHjlFTTot01K 2+OF7zc8S+q7TVQ0XRsn6cFb0sSkHsslsGYKjC2PIPflHI59n23yIg6iVyCMY3PQadsk aFbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Ya4NLZPBlwLdQJ0NQjG5l7mQGtXmDVWD+uOo79lvUis=; b=GPIUMUMzK8sohYt1qC5JneSGpenrSFJZzwhpOgrjQhTXdSUGUyV7vkmaRxVKlFv8Nf Uh12ebAab9UL/aJ4htb0dgJM6HM12CmdTRgphNZkwq4/PlMod3Uhv1FYuNwz5/B7aXRJ q1RgjUUonTDlw2MtjMkfqU/1swkxyd3LgX2oVtYUBSmq++Ee9Utjg2wuP3KZMS2E1Xhj PUsg4jlk375XJk64OkT2iuvGCb8GIkRgRRB2R6xNu68l5at1cyRDJt1bh4Y/NK70Fbrq Q30tSY1BBaSKydS0rjt4hYeYCVQSZ1PwLRqOVRKMXbQYNmJpPoMgU+nV87tJ82GFIJnl zfZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pdF0lCsE; 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 n10-20020a63b44a000000b00478b774f0ebsi11359059pgu.635.2023.01.10.07.34.36; Tue, 10 Jan 2023 07:34:44 -0800 (PST) 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=pdF0lCsE; 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 S238943AbjAJPM1 (ORCPT + 53 others); Tue, 10 Jan 2023 10:12:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238897AbjAJPLw (ORCPT ); Tue, 10 Jan 2023 10:11:52 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EB5F49154; Tue, 10 Jan 2023 07:11:29 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id A2AC461779; Tue, 10 Jan 2023 15:11:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 383B7C433EF; Tue, 10 Jan 2023 15:11:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673363488; bh=uKrtRn6CDrdTBnWrc0AschRz5jiayfkSvYCIjkppPHQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pdF0lCsEFYZpu4mxGFlTO0ahbX8LHqTV7NEYRJEBBh+C2qhCkIwgCoR/x4C9avokB 3ss3e/Q1hq3fAN7hq4OS2m91Sm+jMc78d2yAv4KL73z8Ml/7zVqwg8H8K9WW0afZsE 3HvXIxNn9QVb2rAhneAxn8MTA9hnAf6KGlmvCAis/JuQ5/1OBfs7ioJecEKspWjF+n 87x8wx8RgGnqA+nJA+k5JFPxlcuuRaTm5AX+4XO3IKqkvcxC37NRn/lIOxnxn5/dsj oO/Z7sGXLoaO7w2rss9wtYhrUyVikTEslbYoeamv8Hwkb2+ZUwMXRY67UtYNU8TWOd zrMWLsyc2vMWQ== Date: Tue, 10 Jan 2023 15:11:20 +0000 From: Will Deacon To: Arnd Bergmann Cc: Christoph Hellwig , Prabhakar , "Conor.Dooley" , Geert Uytterhoeven , Heiko =?iso-8859-1?Q?St=FCbner?= , guoren , Andrew Jones , Paul Walmsley , Palmer Dabbelt , Albert Ou , "open list:RISC-V ARCHITECTURE" , open list , devicetree@vger.kernel.org, Linux-Renesas , "Lad, Prabhakar" , Philipp Tomsich , Nathan Chancellor , Atish Patra , Anup Patel , Tsukasa OI , Jisheng Zhang , Mayuresh Chitale Subject: Re: [RFC PATCH v6 1/6] riscv: mm: dma-noncoherent: Switch using function pointers for cache management Message-ID: <20230110151119.GA9436@willie-the-truck> References: <20230106185526.260163-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20230106185526.260163-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <6f7d06ef-d74d-4dfc-9b77-6ae83e0d7816@app.fastmail.com> <9017adf0-acd4-4c43-8aea-3579b214b477@app.fastmail.com> <45d6eb0c-cbe3-4a83-aa12-3483638473ae@app.fastmail.com> <20230110070144.GG10289@lst.de> <02988e70-b099-46fd-b260-2d537c50543a@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02988e70-b099-46fd-b260-2d537c50543a@app.fastmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, Jan 10, 2023 at 04:03:06PM +0100, Arnd Bergmann wrote: > On Tue, Jan 10, 2023, at 08:01, Christoph Hellwig wrote: > > On Mon, Jan 09, 2023 at 01:59:12PM +0100, Arnd Bergmann wrote: > >> I had another look at the arm64 side, which (like the zicbom > >> variant) uses 'clean' on dma_sync_single_for_device(DMA_FROM_DEVICE), > >> as that has changed not that long ago, see > >> > >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c50f11c6196f45c92ca48b16a5071615d4ae0572 > > > > which IIRC has been reverted recently. > > To clarify: I was looking at arch_sync_dma_for_device(), which > changed from 'invalidate' to 'clean' last June in commit > c50f11c6196f ("arm64: mm: Don't invalidate FROM_DEVICE buffers > at start of DMA transfer"). I don't see a revert for that. > > The one that was reverted recently is arch_dma_prep_coherent, which > was changed and reverted in > > c44094eee32 Aug 23 2022 flush->clean > b7d9aae4048 Dec 6 2022 clean->flush > > I'm primarily interested in the streaming mappings (arch_sync_*) > at the moment. Just as an FYI, but we plan to revert the revert (i.e. go back to 'clean') here once Qualcomm's modem firmware loader has been updated: https://lore.kernel.org/r/20230109034843.23759-1-quic_sibis@quicinc.com Will