From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by dpdk.org (Postfix) with ESMTP id 5CEDD2A6C for ; Thu, 6 Apr 2017 11:36:10 +0200 (CEST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v369Yrkr026405 for ; Thu, 6 Apr 2017 05:36:09 -0400 Received: from e28smtp05.in.ibm.com (e28smtp05.in.ibm.com [125.16.236.5]) by mx0a-001b2d01.pphosted.com with ESMTP id 29nfmgkq0t-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 06 Apr 2017 05:36:09 -0400 Received: from localhost by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 6 Apr 2017 15:06:06 +0530 Received: from d28relay08.in.ibm.com (9.184.220.159) by e28smtp05.in.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 6 Apr 2017 15:06:04 +0530 Received: from d28av06.in.ibm.com (d28av06.in.ibm.com [9.184.220.48]) by d28relay08.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v369Yiv311468930 for ; Thu, 6 Apr 2017 15:04:44 +0530 Received: from d28av06.in.ibm.com (localhost [127.0.0.1]) by d28av06.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v369a3g2007416 for ; Thu, 6 Apr 2017 15:06:03 +0530 Received: from [9.109.223.90] ([9.109.223.90]) by d28av06.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v369a3jU007413; Thu, 6 Apr 2017 15:06:03 +0530 To: Rahul Lakkireddy , dev@dpdk.org References: <20170406090413.GA18323@chelsio.com> Cc: Kumar Sanghvi , Nirranjan Kirubaharan From: gowrishankar muthukrishnan Date: Thu, 6 Apr 2017 15:06:03 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170406090413.GA18323@chelsio.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable x-cbid: 17040609-0016-0000-0000-000004046B2E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17040609-0017-0000-0000-000028ED8A98 Message-Id: <7fcc232b-4226-d7cc-0df6-b6cb72679713@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-04-06_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1704060081 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: Thu, 06 Apr 2017 09:36:10 -0000 With gcc 6.3.0, I find this app functioning w/o crash. Did disabling gcc optimization help ? (set EXTRA_CFLAGS='-O0' before compile). 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 > >