Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1692479rwb; Wed, 5 Oct 2022 03:27:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70dCc8w54b0VF/MvnIpUNbCb0aeMTqORrvnEg5zpM7rZ6VhvaTEWb7UWVHnMdIlb9WJct3 X-Received: by 2002:a17:907:968e:b0:78d:580:eb2e with SMTP id hd14-20020a170907968e00b0078d0580eb2emr7503048ejc.235.1664965678008; Wed, 05 Oct 2022 03:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664965678; cv=none; d=google.com; s=arc-20160816; b=uQAu8KekSnQA+kvpB3cT73LEQHFwcBEmosKmwIfNMEbM7bT6tdWIPMDFiruSLUboQU OGm1cZIyOH3hVDSP4UfW6Rgb4HYv0XcLKXyLrYZhtmhhlTs/33V0rK14u0NeOIfUtkqd VtWWzGUUabgqmJenw7qRncKlDwdGJ8XysPfwgjcs2ETkf7Z5NDS97l1gjMJooJsbXPjT D+RKVRsGAeh36o56dnXLgKGf/U/DiYd/jpDiewe4hTQh02dr8lBg3EKdaDRuDFgA6V5I 4+ymLVJajCbHycyAIiUhjtM4kbeqbvfPAH0v+ckQoX6wUUbBcxFys8gS1UoYphWWpBV9 3YBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pXVo7Cs71/tg5/xPQSHIws0jZdPnU8iJoGi0JM0s6PA=; b=UZ29l4bu17RbobiVIqvpmiyz5fpNPEI1fJlK5APsOzqf3+fr15igq5B+weiZ3+/BSl Rjo0chirrdAYvEF1+7zh1z26qpGZaZSFG3i0h7fwuLlrpL571guNQMpeyYwUBKMvQGNZ U1hzut9N+GkJimUP1J84XHpZFCnuO/aId/mk9n/XNqj7theAhT70sy/FqnfiKeSQI6Cz z8YZrEvjWvei5/q78V9Xjnys4uJ+AL3RCqI0v3dtBFUwsCaLRXR4eCORgi8e8haLMxhe u8uAoab9ejTAPcf/1pPuSZDTZLgncVEZNyihvY6LiM8pcm0Fkw8tykD6gsl2zhBE7HWs IMuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="arPd/QQa"; 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=QUARANTINE dis=NONE) header.from=gmail.com 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.27.21; Wed, 05 Oct 2022 03:27:57 -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=@gmail.com header.s=20210112 header.b="arPd/QQa"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbiJEKPF (ORCPT + 99 others); Wed, 5 Oct 2022 06:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbiJEKO4 (ORCPT ); Wed, 5 Oct 2022 06:14:56 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E93FD06; Wed, 5 Oct 2022 03:14:51 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id qn17so1566783ejb.0; Wed, 05 Oct 2022 03:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=pXVo7Cs71/tg5/xPQSHIws0jZdPnU8iJoGi0JM0s6PA=; b=arPd/QQa9fe/Rw9XyvYa+vZ2+MI8iBZcEmBgqSvclDUSSOCqjMUw8AfpfDOdRZkgwB 7++563BWRst48OCU8+1Aoqz1dzmgrKYcNVIm21moPiu5O1k/dJQRQr+nIOjFHVZ00X7u BqjsgkRpQ3x7yD2qJj4YC7nHi8MPpsy9ykPxjvBV6hxz7YtAdHMhnzV5wu0BUEH1xvR3 nyGnCAbxnewCBtFjsERZJRJMEdiWbOgNCnHxpS8n3BJUhIS3GKh4D+1K7ULISreAfqnZ mpVpr4dNpM3P9TdAcDbYZD/LpXEnCMuYqrmNusywH0Ol+m9G3gpVwstYK3PVWFWEV5Yl KcsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=pXVo7Cs71/tg5/xPQSHIws0jZdPnU8iJoGi0JM0s6PA=; b=EhIy41kRFZjZih9yF19M9ovW/Evv8kwlp2in8SDb+hUgWa00s5FF0PQnAjSP45mlg3 DuqkFxWbozS7WvSLjz7AE4rikhTiH9p5xQg6x6Z/2LTlTnMvt32/4jpOZn6xx6ZCVHh4 n85mzwsgJiUyCPzuDWHG69SuWknzUx8Oe4K1Q7HOAgrElOCtgLJ/eEBHwBYQgG0hg41E 5OcSpgiLKjVq4yqYwshKCc4T9FqsY7a7RNOSil/UTNkFDMxisl6oAXesYf8vThqgCsGq YKgDx09KA3YKt3R24uaCyjeXrHRdrMrBKxUiryqo0D0/3+Q/48E4lv0XiJEiyNldoC92 5DcA== X-Gm-Message-State: ACrzQf0NfG9wqxpIa5duTQ78I09Xbxn38gZxS7Q0UUqumgO48WkYlZXl NNIFrTt73D2KZEEZ/3Bcx9WQzeCNvSvbsThqNx4= X-Received: by 2002:a17:906:5a4e:b0:78c:8106:9cc1 with SMTP id my14-20020a1709065a4e00b0078c81069cc1mr9072279ejc.196.1664964889317; Wed, 05 Oct 2022 03:14:49 -0700 (PDT) MIME-Version: 1.0 References: <20221003223222.448551-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221003223222.448551-3-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Wed, 5 Oct 2022 11:14:22 +0100 Message-ID: Subject: Re: [RFC PATCH v2 2/2] soc: renesas: Add L2 cache management for RZ/Five SoC To: Arnd Bergmann Cc: Conor Dooley , 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" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi Arnd, On Wed, Oct 5, 2022 at 10:58 AM Arnd Bergmann wrote: > > 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. > Totally agree it is related to the CPU core and not the SoC. During the BoF session it was agreed that unratified extensions code shouldnt go under the arch/riscv. Since the code has vendor specific SBI calls RISC-V maintainers asked to move it SoC specific so that maintenance of the code falls under SoC vendors. Cheers, Prabhakar