All of lore.kernel.org
 help / color / mirror / Atom feed
From: "ishii.shuuichir@fujitsu.com" <ishii.shuuichir@fujitsu.com>
To: 'Peter Maydell' <peter.maydell@linaro.org>,
	Richard Henderson <richard.henderson@linaro.org>
Cc: "qemu-arm@nongnu.org" <qemu-arm@nongnu.org>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"ishii.shuuichir@fujitsu.com" <ishii.shuuichir@fujitsu.com>
Subject: RE: [RFC] Adding the A64FX's HPC funtions.
Date: Thu, 3 Jun 2021 08:49:13 +0000	[thread overview]
Message-ID: <OS3PR01MB61511B004E64F0FC09C22B9FE93C9@OS3PR01MB6151.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAFEAcA8-KXp204HD=LcUo8CHQX-ioCMzL8kaOyHTUP9KQz-TAA@mail.gmail.com>

Hi, peter.

Thank you for your comment.

> I think it would be worth scoping out how much work the a64fx CPU would
> require (ie what else does it need beyond these extensions and whatever
> features we currently implement?). If that's not a lot of work it might be simpler
> to just add it (possibly even add it but with one or two of its features as
> not-yet-implemented.)

I don't think it will take much effort if you just implement the A64FX extended function register. 
As you pointed out, we are investigating the possibility of adding function processing, 
but in that case, we think it will take some time to verify, including the creation of test tools. 

Also, as we proceed with the implementation of the "-cpu max" option as the first step, 
we expect to receive useful comments from the community. 
If there are no problems, we would like to implement the -cpu max option in the first step.
What do you think?

Best regards.

> -----Original Message-----
> From: Peter Maydell <peter.maydell@linaro.org>
> Sent: Thursday, June 3, 2021 4:11 AM
> To: Richard Henderson <richard.henderson@linaro.org>
> Cc: Ishii, Shuuichirou/石井 周一郎 <ishii.shuuichir@fujitsu.com>;
> qemu-arm@nongnu.org; qemu-devel@nongnu.org
> Subject: Re: [RFC] Adding the A64FX's HPC funtions.
> 
> On Wed, 2 Jun 2021 at 20:02, Richard Henderson
> <richard.henderson@linaro.org> wrote:
> > On 6/1/21 8:21 AM, Peter Maydell wrote:
> > >>> 2) Is it OK to specify the option to set the HPC extension of
> > >>> A64FX as follows, for example?
> > >>>
> > >>> -M virt -cpu max,a64fx-hpc-sec=on (*sector cache function) -M virt
> > >>> -cpu max,a64fx-hpc-hwpf=on (*hardware prefetvh assist function) -M
> > >>> virt -cpu max,a64fx-hpc-hwb=on (*hardware barrier function)
> > >>>
> > >>> It is also possible to implement something like -cpu a64fx, but
> > >>> since we don't know if we can implement it immediately, we assume
> > >>> that we will use the -cpu max option first.
> >
> > My first thought is that -cpu max can simply enable the extensions,
> > without extra flags.  The max cpu has all of the features that we can
> > enable, and as I see it this is just one more.
> 
> I dunno, because it's not an architectural feature, it's an implementation
> feature. We can rely on architectural features not to step on each others'
> toes, but there's no guarantee that some other impdef feature might not clash
> with these a64fx ones.
> 
> Also, how does the guest OS typically detect the presence of these features? If
> it does it by looking for MIDR etc values that say "this is an A64FX" then -cpu
> max won't trigger that.
> 
> > I would like to add -cpu a64fx at some point.  But as you say, that
> > need not happen right away.
> 
> I think it would be worth scoping out how much work the a64fx CPU would
> require (ie what else does it need beyond these extensions and whatever
> features we currently implement?). If that's not a lot of work it might be simpler
> to just add it (possibly even add it but with one or two of its features as
> not-yet-implemented.)
> 
> thanks
> -- PMM



  reply	other threads:[~2021-06-08 17:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OS3PR01MB61515F08F0709D9E22B8DDDFE9249@OS3PR01MB6151.jpnprd01.prod.outlook.com>
     [not found] ` <TYCPR01MB6160FB4A9712F3F5E14D8BBAE93E9@TYCPR01MB6160.jpnprd01.prod.outlook.com>
2021-06-01 15:21   ` [RFC] Adding the A64FX's HPC funtions Peter Maydell
2021-06-02 19:02     ` Richard Henderson
2021-06-02 19:10       ` Peter Maydell
2021-06-03  8:49         ` ishii.shuuichir [this message]
2021-06-03  8:17       ` ishii.shuuichir
2021-06-03 20:08         ` Richard Henderson
2021-06-04  8:29           ` ishii.shuuichir
2021-06-04  9:00             ` Peter Maydell
2021-06-07  8:52               ` ishii.shuuichir
2021-06-07 10:14               ` Alex Bennée

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=OS3PR01MB61511B004E64F0FC09C22B9FE93C9@OS3PR01MB6151.jpnprd01.prod.outlook.com \
    --to=ishii.shuuichir@fujitsu.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.