[dpdk-dev] [EXT] [PATCH v3] config/arm: split march cfg into arch and features

Juraj Linkeš juraj.linkes at pantheon.tech
Tue Jul 20 13:58:16 CEST 2021



> -----Original Message-----
> From: Pavan Nikhilesh Bhagavatula <pbhagavatula at marvell.com>
> Sent: Tuesday, July 20, 2021 9:25 AM
> To: Juraj Linkeš <juraj.linkes at pantheon.tech>; thomas at monjalon.net;
> david.marchand at redhat.com; bruce.richardson at intel.com;
> Honnappa.Nagarahalli at arm.com; Ruifeng.Wang at arm.com;
> fengchengwen at huawei.com; ferruh.yigit at intel.com; jerinjacobk at gmail.com;
> Jerin Jacob Kollanukkaran <jerinj at marvell.com>
> Cc: dev at dpdk.org
> Subject: RE: [EXT] [dpdk-dev] [PATCH v3] config/arm: split march cfg into arch
> and features
> 
> >Older compilers may not support all arch versions and all features that
> >the target SoC supports, in which case it's better to figure out the
> >highest arch version and features that the compiler supports.
> >Implement
> >a way to achieve this:
> >1. Find the highest arch version that the compiler supports, keeping in
> >mind the SoC arch version we're building. For example, if the SoC arch
> >version is arm8.2-a, but the compiler only supports arm8.1-a, use
> >arm8.1-a. On the other hand, if the compiler supports arm8.3-a (or
> >higher), use armv8.2-a.
> >2. With the architecture version locked, iterate over SoC features and
> >use all that are supported.
> >
> >In all cases, emit a warning if there's something unsupported by the
> >compiler.
> >
> >Signed-off-by: Juraj Linkeš <juraj.linkes at pantheon.tech>
> 
> 
> Should we add soc_features to allow individual SoCs to configure additional
> extensions they support?
> As we discussed previously [1] default Neoverse-n2 shouldn’t have crypto
> extension as it's an optional feature[2]. SoCs that are based on n2 can define it
> in soc_features.
> 
> 
> [1] http://patches.dpdk.org/project/dpdk/patch/20210505121423.850-1-
> pbhagavatula at marvell.com/
> [2] https://developer.arm.com/ip-products/processors/neoverse/neoverse-n2

Thanks for reminding me, there seemed to be an agreement between you and Honnappa about this, so I'll add it.


More information about the dev mailing list