Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2888161rwe; Mon, 29 Aug 2022 01:59:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR5zrUqrVtLDlqgD9U5iF0jq6sn9SLaNqomv3RjasWgfZmIiPizYEDC2KBRJtxXupYX18+fl X-Received: by 2002:a17:902:8603:b0:172:ede7:6076 with SMTP id f3-20020a170902860300b00172ede76076mr15818375plo.72.1661763588503; Mon, 29 Aug 2022 01:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661763588; cv=none; d=google.com; s=arc-20160816; b=Xs9mJnZ2opOMxvTv2ZKH9IO2ZRW+KA7XcN/k8CQ5ucfpxxWnW1Y2ESUnhEE5AaDcHm 9351bbEL1ebMmoA8fAyGwTgaEv/XhuWRQXP7q0okgmAxaq5DZseIDVPjmfBAmyJVi+8T 5DUtW2IG0cTHViqSNm8u3R+v8kI+mWWvRMZ0rgB1KgN6PInRYK9hry2Se/fTk50fgYAo VIRvT2x4LOP0ZXIACZm63QoVs5Ck3Y6Mlq2SuA6/DsOsOUTs5xPeceEnmHhg1D8vDsB2 JrB0YKi2U1hMFbXNMwQAuO0qcatVkILCM5WY60dC+d1Oy/GY1JWaCLfgxDKRIP8mEGim yDUw== 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=urj00kIYa+B8ezfb71MD/Cc6TzQ7WWNtN3ZjlvZ1ObM=; b=GD1EiDlIGdNXaDT5lAJ863zmo1vAaGqBMxTOeZWEAC/2KuMm6pL9MF/qibax2NEVBF TFTw6ORAPkhtOOA3wqki/Rd6jlhCFJHwRS3hryBEUrcMSs2d0ykbOBCDh8upgq3WdaPa 3/mJl/OvNEgwctmbdZgws5l3eXzeKFcmOKC5obZzlLkmIcX00kbeKGb5VCh2eM1jExyh aqjId0owqCPUigpWX2n+HMXQlJMLi7e6NY9jOrBggdHHof2fgC5pyu/uyTCCDofjsRAu NCX79wg6GCfmpby5cOqpcwc0bLqn+GWPnosQ2J49x/dSLkFhF0ffH7Qva+PdM1JUM6W7 iIfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=KOP4VcjF; 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 d24-20020a17090ad3d800b001ef6ea57d7esi8377263pjw.55.2022.08.29.01.59.37; Mon, 29 Aug 2022 01:59:48 -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=@sifive.com header.s=google header.b=KOP4VcjF; 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 S230030AbiH2IlF (ORCPT + 99 others); Mon, 29 Aug 2022 04:41:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230018AbiH2Ik5 (ORCPT ); Mon, 29 Aug 2022 04:40:57 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D7C558B5A for ; Mon, 29 Aug 2022 01:40:51 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id z25so10163103lfr.2 for ; Mon, 29 Aug 2022 01:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=urj00kIYa+B8ezfb71MD/Cc6TzQ7WWNtN3ZjlvZ1ObM=; b=KOP4VcjFaefTv2+kUQRPBBtpJXA+bI6F3Ko4FfkH9viTYTk7tFxEq/3C2WZGHxBG26 RSi2bWS1cX7+2Q/v2sAGeDN33gOga7FzMKF1MeJxZvtdxr6chaEeGRoHHN09ECAeyj8A StEJbmAWiehuWuzGQZ1WIGj2wnD/pbNuXvVKabmpRpiyj7GAHuX/cawb9uH89/zCgF99 lyznl9ejiG7JS27tcQqBhW+8x7NANMGfF3l1Y1/TksGrBs/cislSWio5RZQRAGMJZHQi QU3LA8dEpXYHplXHw+5UZBpm0xsN2xc3UViB4MkPEm4lt8rdNrI6p7n11FKx8N0V5M6U 0HaQ== 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; bh=urj00kIYa+B8ezfb71MD/Cc6TzQ7WWNtN3ZjlvZ1ObM=; b=XzfpRt5W+royYzUobSMduIiCmbV1YWemGmp8gsAtMTajR1WvsTuvXakPTsjZXKdt2v zV8k4D45W0TKaKQW+NY/e7Y0RnYsKMP4MMItdbGEwf2OvAmi6I6mOHBHFb+f6Y8IzOlW baHwrdKWTx9RXctU+mb2U266RJlpOaopShTgfczs2SFexqnfYNyuuSf9lx9hZ4VqGOk8 h3PyGgAyjgp4V6oKlii4Q1xVM+T7a79957vkaHLA+abU74qPQUF0MwRs4ei0CrLXeEC2 yqrqE8mFjJKuRxxFmL62K2Imz0C8pgZnzac9BgadhkmkOfzeFdfcURsSRaxoel/DHseq C45A== X-Gm-Message-State: ACgBeo2Uy8/E8dSXbJFvd8QEkR/sudzgOS+Z7FJrPWNxQkJvbH6zM2+4 lT2lsdfYzdk4/hKllt3brX3LnSJl9+f/3Ja1t3PQCg== X-Received: by 2002:ac2:4c4f:0:b0:48b:1358:67e3 with SMTP id o15-20020ac24c4f000000b0048b135867e3mr5703843lfk.441.1661762449195; Mon, 29 Aug 2022 01:40:49 -0700 (PDT) MIME-Version: 1.0 References: <20220829062202.3287-1-zong.li@sifive.com> <20220829062202.3287-3-zong.li@sifive.com> <1a0da77e-8b26-a6aa-4af2-bf852470230a@microchip.com> In-Reply-To: <1a0da77e-8b26-a6aa-4af2-bf852470230a@microchip.com> From: Zong Li Date: Mon, 29 Aug 2022 16:40:36 +0800 Message-ID: Subject: Re: [PATCH 2/3] soc: sifive: l2 cache: Rename SiFive L2 cache to composible cache. To: Conor Dooley Cc: Rob Herring , krzysztof.kozlowski+dt@linaro.org, Palmer Dabbelt , Paul Walmsley , Albert Ou , Greentime Hu , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-riscv , "linux-kernel@vger.kernel.org List" 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, Aug 29, 2022 at 3:05 PM wrote: > > Hey Zong, > > On 29/08/2022 07:22, Zong Li wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > From: Greentime Hu > > > > Since composible cache may be L3 cache if pL2 cache exists, we should use > > its original name composible cache to prevent confusion. > > > > Signed-off-by: Greentime Hu > > Signed-off-by: Zong Li > > --- > > drivers/soc/sifive/Kconfig | 7 +- > > drivers/soc/sifive/Makefile | 2 +- > > drivers/soc/sifive/sifive_ccache.c | 221 +++++++++++++++++++++++++ > > drivers/soc/sifive/sifive_l2_cache.c | 237 --------------------------- > > Where did the 16 lines go? Could you please split renames off from any > other changes so that it is easier to see what has changed? As your suggestion, we should separate the difference from this patch > > > include/soc/sifive/sifive_ccache.h | 16 ++ > > include/soc/sifive/sifive_l2_cache.h | 16 -- > > 6 files changed, 242 insertions(+), 257 deletions(-) > > create mode 100644 drivers/soc/sifive/sifive_ccache.c > > delete mode 100644 drivers/soc/sifive/sifive_l2_cache.c > > create mode 100644 include/soc/sifive/sifive_ccache.h > > delete mode 100644 include/soc/sifive/sifive_l2_cache.h > > > > diff --git a/drivers/soc/sifive/Kconfig b/drivers/soc/sifive/Kconfig > > index 58cf8c40d08d..3d65d2771f9a 100644 > > --- a/drivers/soc/sifive/Kconfig > > +++ b/drivers/soc/sifive/Kconfig > > @@ -2,9 +2,10 @@ > > > > if SOC_SIFIVE > > > > -config SIFIVE_L2 > > - bool "Sifive L2 Cache controller" > > +config SIFIVE_CCACHE > > + bool "Sifive composable Cache controller" > > + default y > > Changing this to default on is not a rename of the file.. > This should be in a different patch. Okay, let me separate it to another patch, but I guess we could remove it, and enable it by user. What is your perspective on it? > > > help > > - Support for the L2 cache controller on SiFive platforms. > > + Support for the composable cache controller on SiFive platforms. > > > > endif > > diff --git a/drivers/soc/sifive/Makefile b/drivers/soc/sifive/Makefile > > index b5caff77938f..1f5dc339bf82 100644 > > --- a/drivers/soc/sifive/Makefile > > +++ b/drivers/soc/sifive/Makefile > > @@ -1,3 +1,3 @@ > > # SPDX-License-Identifier: GPL-2.0 > > > > -obj-$(CONFIG_SIFIVE_L2) += sifive_l2_cache.o > > +obj-$(CONFIG_SIFIVE_CCACHE) += sifive_ccache.o > > diff --git a/drivers/soc/sifive/sifive_ccache.c b/drivers/soc/sifive/sifive_ccache.c > > new file mode 100644 > > index 000000000000..46ce33db7d30 > > --- /dev/null > > +++ b/drivers/soc/sifive/sifive_ccache.c > > @@ -0,0 +1,221 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * SiFive composable cache controller Driver > > + * > > + * Copyright (C) 2018-2019 SiFive, Inc. > > + * > > + */ > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#define SIFIVE_CCACHE_DIRECCFIX_LOW 0x100 > > +#define SIFIVE_CCACHE_DIRECCFIX_HIGH 0x104 > > +#define SIFIVE_CCACHE_DIRECCFIX_COUNT 0x108 > > + > > +#define SIFIVE_CCACHE_DATECCFIX_LOW 0x140 > > +#define SIFIVE_CCACHE_DATECCFIX_HIGH 0x144 > > +#define SIFIVE_CCACHE_DATECCFIX_COUNT 0x148 > > + > > +#define SIFIVE_CCACHE_DATECCFAIL_LOW 0x160 > > +#define SIFIVE_CCACHE_DATECCFAIL_HIGH 0x164 > > +#define SIFIVE_CCACHE_DATECCFAIL_COUNT 0x168 > > + > > +#define SIFIVE_CCACHE_CONFIG 0x00 > > +#define SIFIVE_CCACHE_WAYENABLE 0x08 > > +#define SIFIVE_CCACHE_ECCINJECTERR 0x40 > > From what I can see, you've also changed these around too? > Please generate the patch's diff so that the rename is detected & the > diff shows only what changed in the file. The -M option is what you > are looking for. > > I have a couple other comments to make about what's changed here other, > thatn the rename but I will do so against a v2 where the diff is usable. > Let me sent the v2 patch, and separate the rename and diff part > Thanks, > Conor. > > > + > > +#define SIFIVE_CCACHE_MAX_ECCINTR 3