[dpdk-dev] [PATCH v7 03/10] eal: add intrinsics support check infrastructure

Ruifeng Wang Ruifeng.Wang at arm.com
Fri Oct 16 11:02:59 CEST 2020


> -----Original Message-----
> From: Anatoly Burakov <anatoly.burakov at intel.com>
> Sent: Thursday, October 15, 2020 8:04 PM
> To: dev at dpdk.org
> Cc: Jan Viktorin <viktorin at rehivetech.com>; Ruifeng Wang
> <Ruifeng.Wang at arm.com>; David Christensen <drc at linux.vnet.ibm.com>;
> Ray Kinsella <mdr at ashroe.eu>; Neil Horman <nhorman at tuxdriver.com>;
> Bruce Richardson <bruce.richardson at intel.com>; Konstantin Ananyev
> <konstantin.ananyev at intel.com>; david.hunt at intel.com;
> liang.j.ma at intel.com; jerinjacobk at gmail.com; thomas at monjalon.net;
> timothy.mcdaniel at intel.com; gage.eads at intel.com;
> chris.macnamara at intel.com
> Subject: [PATCH v7 03/10] eal: add intrinsics support check infrastructure
> 
> Currently, it is not possible to check support for intrinsics that are platform-
> specific, cannot be abstracted in a generic way, or do not have support on all
> architectures. The CPUID flags can be used to some extent, but they are only
> defined for their platform, while intrinsics will be available to all code as they
> are in generic headers.
> 
> This patch introduces infrastructure to check support for certain platform-
> specific intrinsics, and adds support for checking support for IA power
> management-related intrinsics for UMWAIT/UMONITOR and TPAUSE.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> Acked-by: David Christensen <drc at linux.vnet.ibm.com>
> Acked-by: Jerin Jacob <jerinj at marvell.com>
> ---
> 
> Notes:
>     v6:
>     - Fix the comments
> 
>  lib/librte_eal/arm/rte_cpuflags.c             |  6 +++++
>  lib/librte_eal/include/generic/rte_cpuflags.h | 26 +++++++++++++++++++
>  .../include/generic/rte_power_intrinsics.h    | 12 +++++++++
>  lib/librte_eal/ppc/rte_cpuflags.c             |  7 +++++
>  lib/librte_eal/rte_eal_version.map            |  1 +
>  lib/librte_eal/x86/rte_cpuflags.c             | 12 +++++++++
>  6 files changed, 64 insertions(+)
> 
Acked-by: Ruifeng Wang <ruifeng.wang at arm.com>


More information about the dev mailing list