From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Subject: Re: event/octeontx: add event timer adapter driver Date: Mon, 23 Apr 2018 14:14:34 +0530 Message-ID: <20180423084433.GA29406@ltp-pvn> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Ali Alnubani , Thomas Monjalon , Shahaf Shuler , Raslan Darawsheh , jerin.jacob@caviumnetworks.com Return-path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0085.outbound.protection.outlook.com [104.47.34.85]) by dpdk.org (Postfix) with ESMTP id 5F5C023B for ; Mon, 23 Apr 2018 10:45:00 +0200 (CEST) Content-Disposition: inline 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" Hi Ali, Looks like a compiler bug rather than code issue, I have verified this on x86 with gcc 4.8.5 and don't see an issue. Looking around I found that compiling with -O1 on aarch64 gcc 4.8.5 seems to fix the compiler bug. Thanks, Pavan. On Sun, Apr 22, 2018 at 04:03:36PM +0000, Ali Alnubani wrote: > Hi Pavan, > > The patchset http://dpdk.org/ml/archives/dev/2018-April/094928.html is causing a compilation error on QUALCOMM ARM with RHEL7.5 and gcc version 4.8.5: > > """ > /download/dpdk-next-net-mlx/drivers/event/octeontx/timvf_worker.c: In function 'timvf_timer_arm_burst_sp': > /download/dpdk-next-net-mlx/drivers/event/octeontx/timvf_worker.c:89:1: error: could not split insn > } > ^ > (insn 95 98 99 (parallel [ > (set (reg:DI 0 x0 [orig:98 D.8130 ] [98]) > (mem/v:DI (reg/f:DI 21 x21 [orig:88 D.8136 ] [88]) [-1 S8 A64])) > (set (mem/v:DI (reg/f:DI 21 x21 [orig:88 D.8136 ] [88]) [-1 S8 A64]) > (unspec_volatile:DI [ > (plus:DI (mem/v:DI (reg/f:DI 21 x21 [orig:88 D.8136 ] [88]) [-1 S8 A64]) > (const_int -281474976710656 [0xffff000000000000])) > (const_int 0 [0]) > ] UNSPECV_ATOMIC_OP)) > (clobber (reg:CC 66 cc)) > (clobber (reg:DI 1 x1)) > (clobber (reg:SI 2 x2)) > ]) /download/dpdk-next-net-mlx/drivers/event/octeontx/timvf_worker.h:95 1832 {atomic_fetch_adddi} > (expr_list:REG_UNUSED (reg:CC 66 cc) > (expr_list:REG_UNUSED (reg:SI 2 x2) > (expr_list:REG_UNUSED (reg:DI 1 x1) > (nil))))) > /download/dpdk-next-net-mlx/drivers/event/octeontx/timvf_worker.c:89:1: internal compiler error: in final_scan_insn, at final.c:2897 > Please submit a full bug report, > with preprocessed source if appropriate. > See for instructions. > PMDINFO opdl_evdev.o.pmd.c > CC opdl_evdev.o.pmd.o > LD opdl_evdev.o > PMDINFO sw_evdev.o.pmd.c > CC sw_evdev.o.pmd.o > LD sw_evdev.o > Preprocessed source stored into /tmp/ccmqxmH7.out file, please attach this to your bugreport. > make[6]: *** [timvf_worker.o] Error 1 > make[5]: *** [octeontx] Error 2 > make[5]: *** Waiting for unfinished jobs.... > AR librte_pmd_opdl_event.a > INSTALL-LIB librte_pmd_opdl_event.a > AR librte_pmd_sw_event.a > INSTALL-LIB librte_pmd_sw_event.a > make[4]: *** [event] Error 2 > make[3]: *** [drivers] Error 2 > make[2]: *** [all] Error 2 > make[1]: *** [pre_install] Error 2 > make: *** [install] Error > """ > > The compilation only passes with CONFIG_RTE_LIBRTE_OCTEONTX_PMD, CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF and CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL set to false. > It also passes if I upgrade gcc, but can we have a fix for old gcc versions? > > Thanks, > Ali