From: Linhaifeng <haifeng.lin@huawei.com>
To: David Marchand <david.marchand@redhat.com>
Cc: Jerin Jacob <jerinjacobk@gmail.com>, Gavin Hu <Gavin.Hu@arm.com>,
"dev@dpdk.org" <dev@dpdk.org>,
"thomas@monjalon.net" <thomas@monjalon.net>,
chenchanghu <chenchanghu@huawei.com>,
xudingke <xudingke@huawei.com>,
"Lilijun (Jerry)" <jerry.lilijun@huawei.com>,
Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>,
Steve Capper <Steve.Capper@arm.com>, nd <nd@arm.com>
Subject: Re: [dpdk-dev] [PATCH v6] eal/arm64: fix rdtsc precise version
Date: Thu, 12 Mar 2020 00:57:21 +0000 [thread overview]
Message-ID: <4099DE2E54AFAD489356C6C9161D53339729FF11@DGGEML502-MBX.china.huawei.com> (raw)
In-Reply-To: <CAJFAV8w31hn7WQSH56k2SovuHmTM+1n7TPVyH_BRheC4CcHzqQ@mail.gmail.com>
> > +static inline void
> > +isb(void)
> > +{
> > + asm volatile("isb" : : : "memory"); }
>
> NAK.
>
> Don't export badly named stuff like this.
>
Just use asm volatile("isb" : : : "memory") in rte_rdtsc_precise or which file I should use to define this maco
> > +
> > +static inline void
> > +__rte_arm64_cntvct_el0_enforce_ordering(uint64_t val) {
> > + uint64_t tmp;
> > +
> > + asm volatile(
> > + " eor %0, %1, %1\n"
> > + " add %0, sp, %0\n"
> > + " ldr xzr, [%0]"
> > + : "=r" (tmp) : "r" (val));
> > +}
> > +
>
> I can see no point in exporting this.
> Please move this inline of rte_rdtsc_precise().
> If one day, ARM needs this elsewhere, we can reevaluate and introduce a
> helper, but I don't see this atm.
>
Ok. I will remove it.
>
> --
> David Marchand
prev parent reply other threads:[~2020-03-12 0:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-11 7:24 Linhaifeng
2020-03-11 9:38 ` David Marchand
2020-03-12 0:57 ` Linhaifeng [this message]
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=4099DE2E54AFAD489356C6C9161D53339729FF11@DGGEML502-MBX.china.huawei.com \
--to=haifeng.lin@huawei.com \
--cc=Gavin.Hu@arm.com \
--cc=Honnappa.Nagarahalli@arm.com \
--cc=Steve.Capper@arm.com \
--cc=chenchanghu@huawei.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=jerinjacobk@gmail.com \
--cc=jerry.lilijun@huawei.com \
--cc=nd@arm.com \
--cc=thomas@monjalon.net \
--cc=xudingke@huawei.com \
/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).