From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3F9AA057B; Tue, 24 Mar 2020 12:51:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A0C7D1C1A9; Tue, 24 Mar 2020 12:49:49 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 551F71C191 for ; Tue, 24 Mar 2020 12:49:42 +0100 (CET) IronPort-SDR: tLQFbd0zn3GOUX4SpvYeQ57jgcyhCPo3zLuhjn/DLhZh2WqYMI3woxFeJ55JzIlEK8t8tKivLQ HbMLkZUxFKQQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2020 04:49:42 -0700 IronPort-SDR: iVv/uCegrI8jaiCwhvO50iCWX0Z5NMOcG1rPfYnSwO8W6XB2wooe6vt+efDZ7agNegDedZRJjH 6Ea2inDU8pyw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,300,1580803200"; d="scan'208";a="270356360" Received: from silpixa00399838.ir.intel.com (HELO silpixa00399838.ger.corp.intel.com) ([10.237.222.98]) by fmsmga004.fm.intel.com with ESMTP; 24 Mar 2020 04:49:41 -0700 From: Kevin Laatz To: dev@dpdk.org Cc: bruce.richardson@intel.com, harry.van.haaren@intel.com, Kevin Laatz Date: Tue, 24 Mar 2020 11:49:18 +0000 Message-Id: <20200324114921.7184-15-kevin.laatz@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200324114921.7184-1-kevin.laatz@intel.com> References: <20200324114921.7184-1-kevin.laatz@intel.com> Subject: [dpdk-dev] [PATCH 14/17] eal/cpuflags: add cache line demote X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add the CPU flag for cache line demote instructions. Signed-off-by: Kevin Laatz --- lib/librte_eal/common/arch/x86/rte_cpuflags.c | 1 + lib/librte_eal/common/include/arch/x86/rte_cpuflags.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/librte_eal/common/arch/x86/rte_cpuflags.c b/lib/librte_eal/common/arch/x86/rte_cpuflags.c index 0b1458d77..ac1de715d 100644 --- a/lib/librte_eal/common/arch/x86/rte_cpuflags.c +++ b/lib/librte_eal/common/arch/x86/rte_cpuflags.c @@ -134,6 +134,7 @@ const struct feature_entry rte_cpu_feature_table[] = { FEAT_DEF(AVX512VNNI, 0x00000007, 0, RTE_REG_ECX, 11) FEAT_DEF(AVX512BITALG, 0x00000007, 0, RTE_REG_ECX, 12) FEAT_DEF(AVX512VPOPCNTDQ, 0x00000007, 0, RTE_REG_ECX, 14) + FEAT_DEF(CLDEMOTE, 0x00000007, 0, RTE_REG_ECX, 25) }; int diff --git a/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h b/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h index 63281ef5e..3a60f3e68 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h +++ b/lib/librte_eal/common/include/arch/x86/rte_cpuflags.h @@ -126,6 +126,7 @@ enum rte_cpu_flag_t { RTE_CPUFLAG_AVX512VNNI, /**< AVX512 Vector Neural Network Instructions */ RTE_CPUFLAG_AVX512BITALG, /**< AVX512 Bit Algorithms */ RTE_CPUFLAG_AVX512VPOPCNTDQ, /**< AVX512 Vector Popcount */ + RTE_CPUFLAG_CLDEMOTE, /**< Cache Line Demote */ /* The last item */ RTE_CPUFLAG_NUMFLAGS, /**< This should always be the last! */ -- 2.17.1