From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rahul Lakkireddy Subject: Segfault seen in netmap_compat app on Power8 Date: Thu, 6 Apr 2017 14:34:14 +0530 Message-ID: <20170406090413.GA18323@chelsio.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Kumar Sanghvi , Nirranjan Kirubaharan To: dev@dpdk.org Return-path: Received: from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8]) by dpdk.org (Postfix) with ESMTP id 1C2962C35 for ; Thu, 6 Apr 2017 11:05:03 +0200 (CEST) Content-Disposition: inline List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, For netmap_compat bridge application on Power8, in netmap_regif function, the assignment to nmif->ring_ofs[i] is not getting reflected immediately. As a result, the subsequent call to netmap_ring_setup ends up writing data at wrong offset. This causes segfault in the app. If we print the nmif->ring_ofs[i] after assignment, then, we see the correct offset and application starts fine. So, probably, some kind of barrier or mechanism to flush write is required on Power8? BTW, this was tried with ToT dpdk git tree on RHEL 7.3 having below gcc version: gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) Thanks, Rahul