From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93E88C33CA1 for ; Mon, 20 Jan 2020 09:04:25 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 1A5CC2073D for ; Mon, 20 Jan 2020 09:04:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=monjalon.net header.i=@monjalon.net header.b="io+/yMbc"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZEckZemx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1A5CC2073D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7ECFB2C6A; Mon, 20 Jan 2020 10:04:23 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id A5CCD11A2; Mon, 20 Jan 2020 10:04:21 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 42EA321E92; Mon, 20 Jan 2020 04:04:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 20 Jan 2020 04:04:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=c9DRLq4rj0i+pvsj+2wLPhJu3XnV+zt6X4Hne6CBX7o=; b=io+/yMbcz2dO MpFMKR/6e8F0FKfI0HIaJlqXhNBsdX6ktCOao7chHH2O789HzG/lCSTC20C2PMGI 4v0gQ3f/ytXmnLR5aAn6nV7MjfoRKiORsK/X+UEKVhhlLQSp2lKWvylGghJKs9wz 0UY1GM6yBWTd/obrOYchfGkpDJ4bnT4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=c9DRLq4rj0i+pvsj+2wLPhJu3XnV+zt6X4Hne6CBX 7o=; b=ZEckZemx/WOdaRxbrF20AYyOYFhyQa1s6gAIFlfuxR4RixkFt7I7V6OcS hmvP6WZ9WG8e/7w+L4kWPcepQgweeIJZ3ea+CJwCjOLt3E+vHfmNHC+z2pulyItD Dn+Av1GCJuo5Z7YISfCXoaOwFfUafEMbJgZpbECsW3rttSP72phLtUDCzGs80axr +Uo8g0qUGk+oZ7nHVe3qXa2cZvk9zvNMSBWWoh9oZqeTMJ+Xx5QNi3f0sMgyySTA kk/bKmQ0FKevpUfBgaRLEh4JNri7nLUqF/9O1EcC0qukqR7G5SOpIfhrv7fE0Bom rw2SOAY8SeNv2XtTRE0LDy8OorEdA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeggdduvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 2F5DE8005B; Mon, 20 Jan 2020 04:04:20 -0500 (EST) From: Thomas Monjalon To: "Li, Xiaoyun" Cc: dev@dpdk.org, "stable@dpdk.org" , "Wu, Jingjing" , gavin.hu@arm.com Date: Mon, 20 Jan 2020 10:04:18 +0100 Message-ID: <2857314.xlVK0Xs8nM@xps> In-Reply-To: <9BB6961774997848B5B42BEC655768F8115C8E0D@SHSMSX103.ccr.corp.intel.com> References: <20191204151916.12607-1-xiaoyun.li@intel.com> <9BB6961774997848B5B42BEC655768F8115C8E0D@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] raw/ntb: fix write memory barrier issue 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" 26/12/2019 02:46, Wu, Jingjing: > From: Li, Xiaoyun > > All buffers and ring info should be written before tail register update. > > This patch relocates the write memory barrier before updating tail register > > to avoid potential issues. > > > > Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions") > > Cc: stable@dpdk.org > > > > Signed-off-by: Xiaoyun Li > Acked-by: Jingjing Wu v1 applied, thanks