From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0040.outbound.protection.outlook.com [104.47.1.40]) by dpdk.org (Postfix) with ESMTP id 452F21B1B6 for ; Thu, 25 Jan 2018 22:03:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=B/9nKJVVmAkDlzhZsQyP9tmDjnJ8nCWpzQ+qna0PYi4=; b=xBCPHCY6zNi3uJv77oiurXxfUuPfjnqGX9bPy1X+DDukTCdm1rIZZ//7NWDjLG/8k4VzKD11N6u1p8BjCwuf3PvGYaXy6tL/u/VVxfB0HBT03fI/bIsPoKmFY4xdQ/MaJS8oHF1ENd1BzbtipsHLlbelwEo3r6XYrwjeV4t9rD8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by DB6PR0501MB2037.eurprd05.prod.outlook.com (2603:10a6:4:6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Thu, 25 Jan 2018 21:03:24 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com, bruce.richardson@intel.com, konstantin.ananyev@intel.com, chaozhu@linux.vnet.ibm.com, jerin.jacob@caviumnetworks.com, jianbo.liu@arm.com Cc: arybchenko@solarflare.com, dev@dpdk.org, Yongseok Koh Date: Thu, 25 Jan 2018 13:02:49 -0800 Message-Id: <20180125210250.38233-9-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180125210250.38233-1-yskoh@mellanox.com> References: <20180119004430.15305-1-yskoh@mellanox.com> <20180125210250.38233-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: CY4PR15CA0014.namprd15.prod.outlook.com (2603:10b6:910:14::24) To DB6PR0501MB2037.eurprd05.prod.outlook.com (2603:10a6:4:6::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0d4f77b0-feda-46da-a3f7-08d5643713c8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB6PR0501MB2037; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2037; 3:hpAkXnL7ARPw/+B2qFR0UhsFH1kHE5RGP81glNxLVic/OsHHWQ2zoYNlER+7bHVYgO1eAfhlodj6AWRo/zRPjeG21cHRG2c58rmEMYIdvgZKMD11NfmnPIZObkSgprOLub+CygzH2V/2FFoQuFE+mfX9YdLsvJAUnbfHVscBkLQoco6ze6M1c97tVnsl6UCxuws/ABXSTiYY+95YyACTAZ0AlKC/Pt+7mMmFGOXJ0NEUdg8BusEPtYZsJ3Szt2mh; 25:1BRhjumbg5J5W5bcN3fqqGbJP1mw4Yul4U7x3/JfL71GabXrDnb05Xze2qwu6aE/GUFSlXDNhQiDn6r3oz+AqPlIYAPo+OXSAb7MrvJrNbJGVXit4CQ9y0CuVdxR9YrmshJNEdTrkyR6NFFpDGhRx0GX/RuZVX7Q/Ya7i6SU22mgI4sMn1BDKAhja7N2yOvRcK15BxuJc708Do9zVZ8L4GRXIOzcb2yLFeZ8d5AFGmYDk45dwQ+kQkhF0VUupMdjJXw1/nB7i08mS+7HissSTHMTID/N5HrbCFOUfzYTAcRaOeylODyZqFVE2ArSdOPVou02FcxqYyka69ulbBqgNA==; 31:YNEt2NmEih27ZTxTk91QOmmtnqid6gv0P1pa50gkD/SCvyVD11B7SRi6JZbgdNhgVpcvo3gXswCrMlrbV8zzBxZ1aKdpJK0VxaIM7L28O12xcfn48GP1pPSNOQLpbXnlBMXDTDaekPq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-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(2400081)(944501161)(10201501046)(3002001)(6055026)(6041288)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:DB6PR0501MB2037; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2037; X-Forefront-PRVS: 0563F2E8B7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(39860400002)(39380400002)(346002)(396003)(199004)(189003)(47776003)(66066001)(21086003)(69596002)(105586002)(106356001)(6116002)(26005)(3846002)(16526019)(478600001)(305945005)(7736002)(1076002)(2950100002)(6666003)(81166006)(8676002)(81156014)(76176011)(386003)(59450400001)(51416003)(52116002)(7696005)(186003)(2906002)(316002)(16586007)(5660300001)(48376002)(50466002)(97736004)(36756003)(53936002)(55016002)(8936002)(50226002)(68736007)(107886003)(4326008)(25786009)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2037; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2037; 23:i4payYrZYWiIGm7MRy+9PN6yLKMZimY575H2rCB?= =?us-ascii?Q?JP1gWwi4HL0my8Z4hy/1NSFJ8+gDjRl7q+IEP3ShMbOEsEXwAoRqIMo4sEyR?= =?us-ascii?Q?3CEX1sxdVA542a2GgbBL/k15wWE6C/0TqqzI4ZvhgwCUFNXwrryVC6Gdq2mH?= =?us-ascii?Q?UUkhLt30IyIekNQho/XE4ETu+FzdCQ9G/SUwRy5b5TgZ6e0vulVuMbe2dd0p?= =?us-ascii?Q?O5mZzPJtqG4Yp1oqUsUYBMB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OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2018 21:03:24.2874 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d4f77b0-feda-46da-a3f7-08d5643713c8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2037 Subject: [dpdk-dev] [PATCH v4 8/9] net/mlx5: replace I/O memory barrier with coherent version 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: , X-List-Received-Date: Thu, 25 Jan 2018 21:03:28 -0000 Signed-off-by: Yongseok Koh --- drivers/net/mlx5/mlx5_rxtx.c | 4 ++-- drivers/net/mlx5/mlx5_rxtx.h | 2 +- drivers/net/mlx5/mlx5_rxtx_vec.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 3b8f71c28..7a24d671d 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -1898,9 +1898,9 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n) return 0; /* Update the consumer index. */ rxq->rq_ci = rq_ci >> sges_n; - rte_io_wmb(); + rte_cio_wmb(); *rxq->cq_db = rte_cpu_to_be_32(rxq->cq_ci); - rte_io_wmb(); + rte_cio_wmb(); *rxq->rq_db = rte_cpu_to_be_32(rxq->rq_ci); #ifdef MLX5_PMD_SOFT_COUNTERS /* Increment packets counter. */ diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h index d4738b14c..30dfaf359 100644 --- a/drivers/net/mlx5/mlx5_rxtx.h +++ b/drivers/net/mlx5/mlx5_rxtx.h @@ -603,7 +603,7 @@ mlx5_tx_dbrec_cond_wmb(struct mlx5_txq_data *txq, volatile struct mlx5_wqe *wqe, uint64_t *dst = (uint64_t *)((uintptr_t)txq->bf_reg); volatile uint64_t *src = ((volatile uint64_t *)wqe); - rte_io_wmb(); + rte_cio_wmb(); *txq->qp_db = rte_cpu_to_be_32(txq->wqe_ci); /* Ensure ordering between DB record and BF copy. */ rte_wmb(); diff --git a/drivers/net/mlx5/mlx5_rxtx_vec.h b/drivers/net/mlx5/mlx5_rxtx_vec.h index 7d7f016f1..be133a481 100644 --- a/drivers/net/mlx5/mlx5_rxtx_vec.h +++ b/drivers/net/mlx5/mlx5_rxtx_vec.h @@ -135,7 +135,7 @@ mlx5_rx_replenish_bulk_mbuf(struct mlx5_rxq_data *rxq, uint16_t n) elts_idx = rxq->rq_ci & q_mask; for (i = 0; i < MLX5_VPMD_DESCS_PER_LOOP; ++i) (*rxq->elts)[elts_idx + i] = &rxq->fake_mbuf; - rte_io_wmb(); + rte_cio_wmb(); *rxq->rq_db = rte_cpu_to_be_32(rxq->rq_ci); } -- 2.11.0