Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3257758rwb; Fri, 16 Dec 2022 12:14:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXtTs2q2jtF19hw8+1D3R3nadzrDUWOo/rOebfEYpTPC45A2lK6YEfmhzB5cCdQaYXZfPkhH X-Received: by 2002:a05:6402:248e:b0:473:283c:64fa with SMTP id q14-20020a056402248e00b00473283c64famr20073171eda.34.1671221660070; Fri, 16 Dec 2022 12:14:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671221660; cv=none; d=google.com; s=arc-20160816; b=AbpAfjT2WrEZEhoJ0EMwrYGA/ckcEU/FxHtKhuAzM1d+GQiEnUPbOevh6hceCrCW6Q s2hrOcbcBM4uyYjcovw9lTAQ+RCaNq1XA7vtCqpoopf800jUQiKUYGZEB0m1bqmoEc3b aRwyJlmLkARTxK1fDBzQJPtUJvToHpyKpqJMuQrm3I/7vmDbeEZXfVM8iU1Q44so/mqR S12yRAs0UYXBpacnFwAbJfAclVcbkKEeh6Zgj36kT1bm86QVL9SEkSZ0KQIgO+ss0W5p cQqCG6XtqiQFRObO5z9YnHCSgV8PxcS1UMd/HxSEdsVMXwW+eXz+VMyvyDOF1jvV25cV wIgA== 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=O1rTibXsTDpKm1zwzgUrVX4eUO+lIv2U3Oy/pW2+Uvc=; b=mpmwmlFIMd1pjKB2D86Vj+MMgCyKcd2TnJYSv91frhpRSfezUPmY71jbGxS1L1g3X9 ztmpHqJqIfIqIJUDL17fl3XXP/8JHAoRuSQHgi+CtAix2A0+t8Hi/QUaMC6psEby/lBV PRHEzC1iZBs5kE9+KTNpXexFRob3lPXNsXhdeCJRStKlHnB6oG7bmy/9ywWQVytJEDkK VG5TY6dBsIcv8pHjOMjGTg5ylThDqAUPiAsx/EuPHRle/dHeU1I3gCxd8uB9y+hFjf4/ 4q0gL6mcMdjfkKTt347tpv1atbKukU5vurm/uzLqpyeLRyIWz8CHaZIxOyac1XSwhbVF iIog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=kIOyZ7Vc; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="ECzPE/sR"; 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 y2-20020a056402440200b00475a6378758si3706621eda.554.2022.12.16.12.14.03; Fri, 16 Dec 2022 12:14:20 -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=@arndb.de header.s=fm1 header.b=kIOyZ7Vc; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="ECzPE/sR"; 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 S231860AbiLPUEu (ORCPT + 69 others); Fri, 16 Dec 2022 15:04:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbiLPUEr (ORCPT ); Fri, 16 Dec 2022 15:04:47 -0500 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EA6E2E9EC; Fri, 16 Dec 2022 12:04:44 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1EF755C006B; Fri, 16 Dec 2022 15:04:42 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 16 Dec 2022 15:04:42 -0500 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=fm1; t=1671221082; x=1671307482; bh=O1rTibXsTD pKm1zwzgUrVX4eUO+lIv2U3Oy/pW2+Uvc=; b=kIOyZ7VcxLykcDYk6fmZlffUP0 eq/C9CPSKulkOh7M4ACXPIGmhCGjBuffTTBPo0zaH7i4/VgE2Kp3x2QMwVQXCwgE 8xSRy4dVQ5TL94+OhCAiFhuZrZnDGot2bFVg2m+ZGOk4gON7zKa8NB9sthJZzTdf 4RZd0ZMZHFhREBQp9HudhBfSS8qSyjNL6C536YsVm41C0YzFRDzlzreybEX6+asD s+dLCINbGwBwv6p61SbitoWiiYaUo1c07UEe0Ib0YWWMeOf+E4LFTqiaNLm1HKZV FWKfHenFTjx9zI4YGD9e5CXupIIY35I+eUtbVzZHa2TfdqW8cCgHSC9HmxHQ== 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=1671221082; x=1671307482; bh=O1rTibXsTDpKm1zwzgUrVX4eUO+l Iv2U3Oy/pW2+Uvc=; b=ECzPE/sRKsp+dG/HXK2fj9a5OjOT7apv6OkOg9HBdRKA QneB5lTYdtF3FKJXeSFXUNpow71RXR16v/YbBqkDq+3TH6FsYjewTOMxouPRxXfj nwnrXhZOEUlBiiPPbHSf4xmtsZNpy+hO5lu+872yPJVQxm/XTmMyB5NjwbsCg5Pr MmVL+iuHqssCz6qcnE9+/Avwn9XLOLW4rHKhz8x8sRQ+tefLtkPWPFZi3JQ4mQ+G f4l1BGL/FE6Bnkdg66KN6og7yeTM4weCsmzNr797uQgnyWRi2N/QBHHrQ8oVrh7F fKV2dIJXJeyxtlTMu7GE8AhxMVKqbWsIxvPEb5oNyw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 943F7B60086; Fri, 16 Dec 2022 15:04:40 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1185-g841157300a-fm-20221208.002-g84115730 Mime-Version: 1.0 Message-Id: <32cf0901-a4a0-48a7-bf42-f2cdb34d1ee7@app.fastmail.com> In-Reply-To: References: Date: Fri, 16 Dec 2022 21:04:20 +0100 From: "Arnd Bergmann" To: linux-riscv@lists.infradead.org Cc: "Geert Uytterhoeven" , soc@kernel.org, "Conor Dooley" , Prabhakar , "Paul Walmsley" , "Albert Ou" , "Magnus Damm" , =?UTF-8?Q?Heiko_St=C3=BCbner?= , "Conor.Dooley" , "Samuel Holland" , guoren , "Rob Herring" , krzysztof.kozlowski+dt@linaro.org, "Jisheng Zhang" , "Atish Patra" , "Anup Patel" , "Andrew Jones" , "Nathan Chancellor" , "Philipp Tomsich" , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Linux-Renesas , linux-kernel@vger.kernel.org, "Biju Das" , "Lad, Prabhakar" , "Palmer Dabbelt" , "Christoph Hellwig" Subject: Re: [PATCH v5 6/6] 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Fri, Dec 16, 2022, at 17:32, Palmer Dabbelt wrote: > On Thu, 15 Dec 2022 23:02:58 PST (-0800), Christoph Hellwig wrote: >> On Thu, Dec 15, 2022 at 01:40:30PM -0800, Palmer Dabbelt wrote: >>> Given that we already moved the SiFive one out it seems sane to just start >>> with the rest in drivers/soc/$VENDOR. Looks like it was Christoph's idea to >>> do the move, so I'm adding him in case he's got an opinion (and also the SOC >>> alias, as that seems generally relevant). >> >> Well, it isn't an integral architecture feature, so it doesn't really >> beloing into arch. Even the irqchip and timer drivers that are more >> less architectural are in drivers/ as they aren't really core >> architecture code. > > That makes sense to me, it just looks like the SiFive ccache is the only > one that's in drivers/soc/$VENDOR, the rest are in arch. It looks like > mostly older ports that have vendor-specific cache files in arch (ie, > arm has it but arm64 doesn't). Maybe that's just because the newer > architectures sorted out standard ISA interfaces for these and thus > don't need the vendor-specific bits? I think we're likely to end up > with quite a few of these vendor-specific cache management schemes on > RISC-V. > > I'm always happy to keep stuff out of arch/riscv, though. So maybe we > just buck the trend here and stick to drivers/soc/$VENDOR like we did > for the first one? I don't particularly like drivers/soc/ to become more of a dumping ground for random drivers. If there are several SoCs that have the same requirement to do a particular thing, the logical step would be to put them into a proper subsystem, with a well-defined interface to dma-mapping and virtualization frameworks. The other things we have in drivers/soc/ are usually either soc_device drivers for identifying the system, or they export interfaces used by soc specific drivers. Arnd