Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1693547rwb; Wed, 5 Oct 2022 03:29:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4kbYg6yQSB09nGFVA7Xa8+Jakn9DNMW+3QSh7m9ZLXSDiBXoiID1orG334FMu1C82qP2p9 X-Received: by 2002:a17:906:eecb:b0:73c:5c85:142b with SMTP id wu11-20020a170906eecb00b0073c5c85142bmr22989857ejb.433.1664965757929; Wed, 05 Oct 2022 03:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664965757; cv=none; d=google.com; s=arc-20160816; b=ILGmboXPIsadD8W/MIjZkUyorofsUdG2aI/+aH6aBxmj/S52weVOja+PGbxyDyrrS9 8F1hVZs0YYY/P1bKGWA1EKaNe0fk3vOj9Wcf9ZDIRnPwIgtjnoxMdqjnwAJp+jO1DAWT kLilPitISykYWy/1avSP1GLUY+l8MHsCxHTYsFhAHRNhlgvqHNJW1mrIOWOLmBM9q6VD mst2bj6TWnM3GcDwqCpdDTojsazzczjvS8yrr4dTXtR7KR5AW5T5vmjiB89Za8n3o2yE uiiSOR9Ipuf7yjcxJS3Q6roCt3QpDJeEyJEg5eMly4J5hgQUBemN7oSxUxvYHPMgSouF QPng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=MxxMRDfEHOQi5+nDumNVbTgRThG0gUKh/x3oMnocNco=; b=KJ3dZgCbdOwoOIZa9h615NWRGW1RsenuyKOvbrM4Me29zGJi+RqICYCV89ZnF1Qw3z /HSDa680dqo+R4GUrWwpKk0rbPLCkjLunuR+3LZoWnqBIg5yFAGULaUCu1FJK258EPwm hajd0k/lfjJj3L2ArBb3suJttSW5bcVQZCHklc0Fz5KX2VQQP5vARU6TrJvORyYIFc2W jCYuCBjfcg67yYuSJwBnnHMQlmQ3KrpQtQkkv5xxSElXxrY1z6a57Qye93h3bzFEaLV/ K7n0BTq3MB+rQptrechXztuSpP4OmC9T2fErr75lA5PYfumE6qVvzro8duoBg3qlxohP zN+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=mG+OYpQF; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="k/LgWYEQ"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw8-20020a170907a0c800b007721f88d3e0si7723816ejc.554.2022.10.05.03.28.49; Wed, 05 Oct 2022 03:29:17 -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=@arndb.de header.s=fm2 header.b=mG+OYpQF; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="k/LgWYEQ"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbiJEJ62 (ORCPT + 99 others); Wed, 5 Oct 2022 05:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiJEJ6Y (ORCPT ); Wed, 5 Oct 2022 05:58:24 -0400 Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D71336EF34; Wed, 5 Oct 2022 02:58:23 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id B466F580390; Wed, 5 Oct 2022 05:58:20 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Wed, 05 Oct 2022 05:58:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1664963900; x=1664967500; bh=MxxMRDfEHO Qi5+nDumNVbTgRThG0gUKh/x3oMnocNco=; b=mG+OYpQFz6324WqipXqg6d0xeZ sOq4/cKAkQH8uMWu7ERXlX8iP1Ccrr/uOmLRnO4STFcbI8UOsVMmKR+Mlq6PVMDb 7jV0TmdAG060BvIT2ovC/7OJqIi1T25dGQ0poIeHjAHC3gf+CJgtfYHhDVveNWbB DNSnTXnQcBS5x2UWo4L43Emmx9bq2PDeyaj6fh+izC0Rj0Z0ms7HGEedp9xFRJRT IdleXCv/KYBMWtSLdzVZqmI6UqC3Am1OdlEB6c0ShG0ZPd6l0oSoq3MYdxL8bF0M Ov+gd2C+VGRFCfGX579aS1NNGEYeMepl06UpC2pdW3NSJoAMVSxSfwjINqNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1664963900; x=1664967500; bh=MxxMRDfEHOQi5+nDumNVbTgRThG0 gUKh/x3oMnocNco=; b=k/LgWYEQ4plZKY81euqM1y9WWeZpyTgDh+Utx34fiWcH tueYqOx5ygZOjcRzXtNynTSKRum33aGLXXYtpWzAsiyR4KG0rClWluF7MG3i4CTc pwANzyzUR1uO0zMrqE6l78D8A7QLD8ylv7V1vzM1SdapxxFE/qsqdWgWUvvoX1t4 UOvy4qeEWoYZkjxQTfhuJ/Fshddg2fA9iCKgLsAFgDTLXoBeH2noSZ8ALEQDtLtP 26DvVFoQ7dHTRuL3yNpBlN69M0gTX8IxnGvy9JZg0YWD4LM2iHIXNES/XOPVQKrt VF6PMWY1KO8yK3qVWtvxh4+Ywj1IyxC0PTBNsbKIig== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeifedgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D5467B60086; Wed, 5 Oct 2022 05:58:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1015-gaf7d526680-fm-20220929.001-gaf7d5266 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20221003223222.448551-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221003223222.448551-3-prabhakar.mahadev-lad.rj@bp.renesas.com> Date: Wed, 05 Oct 2022 11:57:58 +0200 From: "Arnd Bergmann" To: "Conor Dooley" , Prabhakar Cc: "Geert Uytterhoeven" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Rob Herring" , "Krzysztof Kozlowski" , "Magnus Damm" , =?UTF-8?Q?Heiko_St=C3=BCbner?= , guoren , "Conor.Dooley" , "Philipp Tomsich" , "Nathan Chancellor" , "Atish Patra" , "Anup Patel" , Linux-Renesas , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, "Biju Das" , "Lad, Prabhakar" Subject: Re: [RFC PATCH v2 2/2] soc: renesas: Add L2 cache management for RZ/Five SoC Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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, Oct 4, 2022, at 7:42 PM, Conor Dooley wrote: > On Mon, Oct 03, 2022 at 11:32:22PM +0100, Prabhakar wrote: >> >> Signed-off-by: Lad Prabhakar >> --- >> arch/riscv/include/asm/cacheflush.h | 8 + >> arch/riscv/include/asm/errata_list.h | 2 + >> arch/riscv/include/asm/sbi.h | 1 + >> arch/riscv/mm/dma-noncoherent.c | 20 ++ > > Stupid question maybe, but I assume you mixed the driver addition and > the changes to arch/riscv for the sake of easily creating the RFC? > >> drivers/soc/renesas/Makefile | 4 + >> drivers/soc/renesas/rzf/Makefile | 3 + >> drivers/soc/renesas/rzf/ax45mp_cache.c | 365 +++++++++++++++++++++++++ >> drivers/soc/renesas/rzf/rzf_sbi.h | 27 ++ My feeling is that L2 cache behavior should live in arch/riscv rather than drivers/soc/, since this is not specific to a SoC family but rather the CPU core. I would also expect that the actual implementation and DT binding can be shared with non-renesas SoCs using the same CPU core. Arnd