[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+ZOyaip+HFQiyHmX5fF+aMWtUK-kKnjhN-1VMk96DiXaQjQrA@mail.gmail.com>
Date: Tue, 6 Sep 2022 09:52:05 +0800
From: Zong Li <zongbox@...il.com>
To: Conor.Dooley@...rochip.com
Cc: zong.li@...ive.com, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, palmer@...belt.com,
paul.walmsley@...ive.com, aou@...s.berkeley.edu,
greentime.hu@...ive.com, ben.dooks@...ive.com, bp@...en8.de,
devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/6] soc: sifive: ccache: Rename SiFive L2 cache to
Composable cache.
<Conor.Dooley@...rochip.com> 於 2022年9月6日 週二 凌晨2:46寫道:
>
> Hey Zong Li,
> Couple comments on this patch.
>
> On 05/09/2022 09:31, Zong Li wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> >
> > From: Greentime Hu <greentime.hu@...ive.com>
> >
> > Since composable cache may be L3 cache if pL2 cache exists, we should use
>
> What is a pL2 cache?
The pL2 is stand for private L2 cache, it is a L2 cache in our system.
Perhaps I should change the pL2 to L2 in the description for more
generic.
>
> > its original name composable cache to prevent confusion.
> >
> > Apart from renaming, we also add the compatible "sifive,ccache0" into ID
> > table.
> >
> > Signed-off-by: Greentime Hu <greentime.hu@...ive.com>
> > Signed-off-by: Zong Li <zong.li@...ive.com>
> > ---
> > drivers/soc/sifive/Kconfig | 6 +-
> > drivers/soc/sifive/Makefile | 2 +-
> > .../{sifive_l2_cache.c => sifive_ccache.c} | 163 +++++++++---------
> > .../{sifive_l2_cache.h => sifive_ccache.h} | 16 +-
> > 4 files changed, 94 insertions(+), 93 deletions(-)
> > rename drivers/soc/sifive/{sifive_l2_cache.c => sifive_ccache.c} (35%)
> > rename include/soc/sifive/{sifive_l2_cache.h => sifive_ccache.h} (12%)
>
> If you're going to rename the header, you need to update all references to
> it too, otherwise the other user (the EDAC) is going to have build issues,
> i.e. patch 6 needs to get squashed into this one.
>
Ok, let me merge these two patches, as you mentioned, we probably
don't want to see the build is broken in git bisect as well.
>
> > diff --git a/drivers/soc/sifive/sifive_l2_cache.c b/drivers/soc/sifive/sifive_ccache.c
> > similarity index 35%
> > rename from drivers/soc/sifive/sifive_l2_cache.c
> > rename to drivers/soc/sifive/sifive_ccache.c
> > index 59640a1d0b28..1b16a196547f 100644
> > --- a/drivers/soc/sifive/sifive_l2_cache.c
> > +++ b/drivers/soc/sifive/sifive_ccache.c
>
> > -static const struct of_device_id sifive_l2_ids[] = {
> > +static const struct of_device_id sifive_ccache_ids[] = {
> > { .compatible = "sifive,fu540-c000-ccache" },
> > { .compatible = "sifive,fu740-c000-ccache" },
> > + { .compatible = "sifive,ccache0" },
> > { /* end of table */ },
>
> For v3, I think you should drop the , from the end of the table while
> we are already editing it.
Thanks, I will remove it.
> Thanks,
> Conor.
>
> > };
> >
>
Powered by blists - more mailing lists