linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "tan.shaopeng@fujitsu.com" <tan.shaopeng@fujitsu.com>
To: 'Arnd Bergmann' <arnd@arndb.de>, Will Deacon <will@kernel.org>
Cc: Linux ARM <linux-arm-kernel@lists.infradead.org>,
	SoC Team <soc@kernel.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Olof Johansson <olof@lixom.net>,
	James Morse <james.morse@arm.com>,
	"misono.tomohiro@fujitsu.com" <misono.tomohiro@fujitsu.com>,
	"tan.shaopeng@fujitsu.com" <tan.shaopeng@fujitsu.com>
Subject: RE: [PATCH RFC] soc: fujitsu: Add cache driver code
Date: Fri, 5 Mar 2021 07:48:45 +0000	[thread overview]
Message-ID: <OSAPR01MB214684169003710C7ECF0D9B8B969@OSAPR01MB2146.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAK8P3a2pFcNTw9NpRtQfYr7A5OcZ=As2kM0D_sbfFcGQ_J2Q+Q@mail.gmail.com>

> On Thu, Mar 4, 2021 at 11:46 AM Will Deacon <will@kernel.org> wrote:
> > On Thu, Mar 04, 2021 at 10:34:43AM +0000, tan.shaopeng@fujitsu.com
> wrote:
> > > > On Wed, Mar 3, 2021 at 10:38 AM tan.shaopeng
> > > > <tan.shaopeng@jp.fujitsu.com> wrote:
> > > > > +
> > > > > +config FUJITSU_CACHE
> > > > > +        tristate "FUJITSU Cache Driver"
> > > > > +        depends on ARM64_VHE || COMPILE_TEST
> > > > > +        help
> > > > > +          FUJITSU Cache Driver
> > > > > +
> > > > > +          This driver offers cache functions for A64FX system.
> > > > > +         Loading this cache driver, control registers will be set to
> enable
> > > > > +         these functions, and advanced settings registers will be set
> by
> > > > default
> > > > > +         values. After loading this driver, you can use the default
> values of
> > > > the
> > > > > +         advanced settings registers or set the advanced settings
> registers
> > > > > +         from EL0. Unloading this driver, control registers will be
> clear to
> > > > > +         disable these functions.
> > > > > +          When built as a module, this will be called as
> "fujitsu_cache".
> > > >
> > > > My feeling is that this code should be in arch/arm64/, as the cache
> > > > is generally considered part of the CPU, rather than part of the wider
> > > > SoC design, or something that can be controlled separately from the
> > > > core kernel and memory management code.
> > >
> > > Thanks for your advice. I also would like to hear the opinions from
> > > other soc&arm maintainers, and then consider whether to add this to
> > > arch/arm64/.
> >
> > Given that all of this is outside of the scope of the architecture, I don't
> > think that arch/arm64/ is the right place for it. Perhaps this would fit
> > into the resctrl rework that James has been doing for MPAM?
> 
> Indeed, that sounds like a good starting point. I don't understand enough
> about either of the two to be sure, but it sounds like there is some overlap
> in functionality, and ideally we would have one user interface that can
> deal with all the hardware implementations (intel, arm, fujitsu and any
> future ones).

I don't know resctrl well and I’m not sure if it can be used for sector cache now.
Also, it seems to me that resctrl has no control with hardware prefetch. 
I will learn more about resctrl.

Best regards, 
Tan Shaopeng
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-03-05  7:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-03  9:38 [PATCH RFC] Upstream A64FX cache driver tan.shaopeng
2021-03-03  9:38 ` [PATCH RFC] soc: fujitsu: Add cache driver code tan.shaopeng
2021-03-03 11:24   ` Arnd Bergmann
2021-03-04 10:34     ` tan.shaopeng
2021-03-04 10:46       ` Will Deacon
2021-03-04 10:58         ` Arnd Bergmann
2021-03-05  7:48           ` tan.shaopeng [this message]
2021-03-31  8:52           ` tan.shaopeng
2021-04-01 16:15             ` James Morse
2021-04-02  8:44               ` tan.shaopeng
2021-03-04 10:54       ` Arnd Bergmann
2021-03-05  8:10         ` tan.shaopeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OSAPR01MB214684169003710C7ECF0D9B8B969@OSAPR01MB2146.jpnprd01.prod.outlook.com \
    --to=tan.shaopeng@fujitsu.com \
    --cc=arnd@arndb.de \
    --cc=catalin.marinas@arm.com \
    --cc=james.morse@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=misono.tomohiro@fujitsu.com \
    --cc=olof@lixom.net \
    --cc=soc@kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).