From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8]) by dpdk.org (Postfix) with ESMTP id 5F17B293B for ; Wed, 12 Apr 2017 08:51:56 +0200 (CEST) Received: from localhost (scalar.blr.asicdesigners.com [10.193.185.94]) by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id v3C6psHb032413; Tue, 11 Apr 2017 23:51:55 -0700 Date: Wed, 12 Apr 2017 12:21:00 +0530 From: Rahul Lakkireddy To: gowrishankar muthukrishnan Cc: "dev@dpdk.org" , Kumar A S , Nirranjan Kirubaharan Message-ID: <20170412065058.GA31224@chelsio.com> References: <20170406090413.GA18323@chelsio.com> <7fcc232b-4226-d7cc-0df6-b6cb72679713@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7fcc232b-4226-d7cc-0df6-b6cb72679713@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [dpdk-dev] Segfault seen in netmap_compat app on Power8 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: Wed, 12 Apr 2017 06:51:58 -0000 On Thursday, April 04/06/17, 2017 at 15:06:03 +0530, gowrishankar muthukrishnan wrote: > With gcc 6.3.0, I find this app functioning w/o crash. > > Did disabling gcc optimization help ? (set EXTRA_CFLAGS='-O0' before > compile). > Yes, with optimization disabled, the app is not hitting the segfault. Thanks, Rahul > Regards, > Gowrishankar > On Thursday 06 April 2017 02:34 PM, Rahul Lakkireddy wrote: > > 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 > > > >