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 59710A00C5; Thu, 11 Jun 2020 15:56:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 55E2A1B19; Thu, 11 Jun 2020 15:56:24 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D56D2F12 for ; Thu, 11 Jun 2020 15:56:22 +0200 (CEST) IronPort-SDR: ssZPdrF2QP4wAw42R+WqeMujc5xnMw/tCUVqrR2l7LHffXiMyIrw6MvRTJN2rTf6rQOZm2RoAZ Wb8oNyx3IDDw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2020 06:56:22 -0700 IronPort-SDR: g+emZPi2+rjVJZbbjDPUjYXr36eYyJct2GHsvpVIXSq1iyjPhUxIpRWFbV8bxNY2IUHUqY40og PXd2Gx9/qhAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,499,1583222400"; d="scan'208";a="296594198" Received: from ghynes1-mobl.ger.corp.intel.com (HELO [10.213.241.230]) ([10.213.241.230]) by fmsmga004.fm.intel.com with ESMTP; 11 Jun 2020 06:56:20 -0700 To: Jerin Jacob Cc: dpdk-dev , Beilei Xing , jia.guo@intel.com, "Richardson, Bruce" , "Ananyev, Konstantin" References: <1591870283-7776-1-git-send-email-radu.nicolau@intel.com> From: "Nicolau, Radu" Message-ID: <23762f7e-80f2-e969-893b-f9f1ea6a293a@intel.com> Date: Thu, 11 Jun 2020 14:56:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [dpdk-dev] [PATCH v1 1/2] eal/x86: add WC store function 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" On 6/11/2020 1:23 PM, Jerin Jacob wrote: > On Thu, Jun 11, 2020 at 3:41 PM Radu Nicolau wrote: >> Add rte_write32_wc function that implements a WC store >> using movdiri instruction. >> >> Signed-off-by: Radu Nicolau >> --- >> lib/librte_eal/x86/include/rte_io.h | 20 ++++++++++++++++++++ >> 1 file changed, 20 insertions(+) >> >> diff --git a/lib/librte_eal/x86/include/rte_io.h b/lib/librte_eal/x86/include/rte_io.h >> index 2db71b1..3d74bec 100644 >> --- a/lib/librte_eal/x86/include/rte_io.h >> +++ b/lib/librte_eal/x86/include/rte_io.h >> @@ -11,6 +11,26 @@ extern "C" { >> >> #include "generic/rte_io.h" >> >> +/** >> + * Write a 32-bit value to I/O device memory address *addr*. >> + * Uses MOVDIRI instruction to perform a direct-store operation using WC >> + * memory write protocol. > It will be an x86 specific API, Please change the API name to reflect that. > You mean something like rte_x86_write32_wc?