From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
To: Sachin Saxena <sachin.saxena@nxp.com>
Cc: Hemant Agrawal <hemant.agrawal@nxp.com>,
"dev@dpdk.org" <dev@dpdk.org>,
"nitin.saxena@cavium.com" <nitin.saxena@cavium.com>,
"narayanaprasad.athreya@cavium.com"
<narayanaprasad.athreya@cavium.com>
Subject: Re: [dpdk-dev] [PATCH] mk: change TLS model for ARMv8 and DPAA machine
Date: Sun, 24 Jun 2018 17:57:53 +0530 [thread overview]
Message-ID: <20180624122751.GA8285@jerin> (raw)
In-Reply-To: <HE1PR0401MB1772105D5596E248DF5C8E68E37D0@HE1PR0401MB1772.eurprd04.prod.outlook.com>
-----Original Message-----
> Date: Thu, 14 Jun 2018 06:42:40 +0000
> From: Sachin Saxena <sachin.saxena@nxp.com>
> To: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> CC: Hemant Agrawal <hemant.agrawal@nxp.com>, "dev@dpdk.org" <dev@dpdk.org>,
> "nitin.saxena@cavium.com" <nitin.saxena@cavium.com>,
> "narayanaprasad.athreya@cavium.com" <narayanaprasad.athreya@cavium.com>
> Subject: RE: [dpdk-dev] [PATCH] mk: change TLS model for ARMv8 and DPAA
> machine
>
>
> > -----Original Message-----
> > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com]
> > Sent: Monday, June 11, 2018 1:15 PM
> > To: Sachin Saxena <sachin.saxena@nxp.com>
> > Cc: Hemant Agrawal <hemant.agrawal@nxp.com>; dev@dpdk.org;
> > nitin.saxena@cavium.com; narayanaprasad.athreya@cavium.com
> > Subject: Re: [dpdk-dev] [PATCH] mk: change TLS model for ARMv8 and DPAA
> > machine
> >
>
> [....]
>
> > > > > Signed-off-by: Sachin Saxena <sachin.saxena@nxp.com>
> > > > > ---
> > > > > mk/machine/armv8a/rte.vars.mk | 3 +++
> > > > > mk/machine/dpaa/rte.vars.mk | 3 +++
> > > > > mk/machine/dpaa2/rte.vars.mk | 3 +++
> > > > > 3 files changed, 9 insertions(+)
> > > > >
> > > > > diff --git a/mk/machine/armv8a/rte.vars.mk
> > > > > b/mk/machine/armv8a/rte.vars.mk index 8252efb..6897cd6 100644
> > > > > --- a/mk/machine/armv8a/rte.vars.mk
> > > > > +++ b/mk/machine/armv8a/rte.vars.mk
> > > > > @@ -29,3 +29,6 @@
> > > > > # CPU_ASFLAGS =
> > > > >
> > > > > MACHINE_CFLAGS += -march=armv8-a+crc+crypto
> > > > > +
> > > > > +# To avoid TLS corruption issue.
> > > > > +MACHINE_CFLAGS += -mtls-dialect=trad
> > > >
> > > > This issue is not reproducible on Cavium ARMv8 platforms. Just
> > > > wondering, Do we need to change default ARMv8 config?
> > > [Sachin Saxena] The issue is currently visible On NXP platforms with VPP-
> > dpdk solution only. Similar behavior like random crashes or initialization
> > failures have been seen by Cavium guys on VPP but they are still
> > investigating whether the issues are related to TLS corruption.
> >
> > I checked with Cavium-VPP team. According to them, they are not facing any
> > issue related to TLS
> >
> [Sachin Saxena] Some more information. - The issue is appearing on NXP ARM platforms as DPDK drivers are also using __thread TLS variables. If the total number of TLS variables (main application + dpdk shared Lib) increases beyond Static TLS Size limit, one will start facing issue like Corruption in TLS variable values.
OK. Then it is generic problem. Any information on what is the limit of
number of __thread variable ? Is it possible to increase that limit by gcc command line arguments?
You may not have answers for this, but, could you ask in Linaro/gcc mailing list.
If it is fixed in some specific gcc/glibc version and applying blindly to
all GCC versions is not good IMO.
next prev parent reply other threads:[~2018-06-24 12:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 6:33 Hemant Agrawal
2018-06-10 11:07 ` Jerin Jacob
2018-06-11 4:05 ` Sachin Saxena
2018-06-11 7:45 ` Jerin Jacob
2018-06-14 6:42 ` Sachin Saxena
2018-06-24 12:27 ` Jerin Jacob [this message]
2018-07-04 9:54 ` [dpdk-dev] [PATCH v2] mk: change TLS model for " Hemant Agrawal
2018-07-12 11:11 ` Thomas Monjalon
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=20180624122751.GA8285@jerin \
--to=jerin.jacob@caviumnetworks.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=narayanaprasad.athreya@cavium.com \
--cc=nitin.saxena@cavium.com \
--cc=sachin.saxena@nxp.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).