From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal/ppc: remove fix of memory barrier for IBM POWER Date: Fri, 22 Mar 2019 18:51:17 +0100 Message-ID: <4334064.10fvSv6A2r@xps> References: <1552913893-43407-1-git-send-email-dekelp@mellanox.com> <11283309.AIL3tCH6tf@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: bruce.richardson@intel.com, Chao Zhu , Dekel Peled , dev@dpdk.org, David Christensen , honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com, ola.liljedahl@arm.com, Ori Kam , Shahaf Shuler , David Wilder , Yongseok Koh To: Pradeep Satyanarayana Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id C9FE31B6F0 for ; Fri, 22 Mar 2019 18:51:23 +0100 (CET) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 22/03/2019 16:30, Pradeep Satyanarayana: > Thomas Monjalon wrote on 03/22/2019 01:49:03 AM: > > 22/03/2019 02:40, Pradeep Satyanarayana: > > > - rte_[rw]mb (general memory barrier) --> should be lwsync > > > > This is what may be discussed. > > The assumption is that the general memory barrier should cover > > all cases (CPU caches, SMP and I/O). > > That's why we think it should "sync" for Power. > > In that case, at a minimum we must de-link rte_smp_[rw]mb from rte_[rw]mb > and retain it as lwsync. Agreed? I have no clue about what is needed for SMP barrier in Power. As long as it works as expected, no problem. > > > - rte_smp_[rw]mb (SMP memory barrier) -->should be lwsync > > > - rte_io_[rw]mb (I/O memory barrier) --> should be sync > > > - rte_cio_[rw]mb (coherent I/O memory barrier) -->should be sync > > > > > > lwsync is appropriate for cases where CPUs are accessing cacheable > > > memory (i.e. Memory Coherence Required) while the sync instruction > > > should be used in all other cases.