Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-28 Thread mythosmonkeyking
Hi,all,
I figured out why the igb_uio.ko file would not be generated, so I needed to 
modify the config file: CONFIG_RTE_EAL_IGB_UIO=y.
However, I encountered a new "error", but the compilation did not terminate. I 
looked at the compilation process and couldn't explain why the information was 
printed.

[mythos@localhost linux-3.10]$ pwd
/home/mythos/kernel/linux-3.10
[mythos@localhost linux-3.10]$ ls -l include/generated/autoconf.h
-rw-rw-r-- 1 mythos mythos 123335 Apr 28 18:36 include/generated/ autoconf.h
[mythos@localhost linux-3.10]$ ls -l include/config/auto.conf
-rw-rw-r-- 1 mythos mythos 81820 Apr 28 18:36 include/config/ auto.conf

KBUILD_EXTMOD="/home/mythos/dpdk/dpdk-20.02-silvermont/dpdk-20.02/build/build/kernel/linux/igb_uio"
 -f /home/mythos/kernel/linux-3.10/Makefile \

test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        
        \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are 
missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix 
it.";      \
echo >&2 ;                                                      \
/bin/false)
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16192): https://lists.fd.io/g/vpp-dev/message/16192
Mute This Topic: https://lists.fd.io/mt/72983203/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-28 Thread mythosmonkeyking
Hi,all,
I ran into a new problem: when I cross compiled DPDK and don't found igb_uio.ko 
generated, what went wrong?
compile command as follows:

make config T=x86_64-silvermont-linux-gcc 
RTE_KERNELDIR=/home/mythos/kernel/linux-3.10 V=1
make V=1

make examples T=x86_64-silvermont-linux-gcc 
RTE_KERNELDIR=/home/mythos/kernel/linux-3.10 V=1
make install DESTDIR=$PWD/../tmp

I looked at the kernel version of the compiled server, as follows:

[root@localhost x86_64-silvermont-linux-gcc]# uname -a
Linux localhost 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 
x86_64 x86_64 x86_64 GNU/Linux
[root@localhost x86_64-silvermont-linux-gcc]#

[root@localhost x86_64-silvermont-linux-gcc]# rpm -qa | grep kernel
kernel-headers-3.10.0-1062.12.1.el7.x86_64
kernel-devel-3.10.0-957.el7.x86_64
kernel-tools-libs-3.10.0-1062.12.1.el7.x86_64
abrt-addon-kerneloops-2.1.11-55.el7.centos.x86_64
kernel-tools-3.10.0-1062.12.1.el7.x86_64
kernel-3.10.0-1062.12.1.el7.x86_64
kernel-3.10.0-957.el7.x86_64
kernel-devel-3.10.0-1062.12.1.el7.x86_64
[root@localhost x86_64-silvermont-linux-gcc]#
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16172): https://lists.fd.io/g/vpp-dev/message/16172
Mute This Topic: https://lists.fd.io/mt/72983203/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-28 Thread mythosmonkeyking
Hi,all,
Thank you for your answers.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16169): https://lists.fd.io/g/vpp-dev/message/16169
Mute This Topic: https://lists.fd.io/mt/72983203/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-28 Thread mythosmonkeyking
Hi,Damjan Marion,
I figured out what the problem was. Atom had been replaced by silvermont, but 
in DPDK, instead of using code name, you should use abbreviations.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16168): https://lists.fd.io/g/vpp-dev/message/16168
Mute This Topic: https://lists.fd.io/mt/72983203/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-25 Thread Damjan Marion via lists.fd.io

looks like your compiler version is so old that it doesn’t know about 
silvermont. You need newer one suggest gcc-8 at least.

Also if i read it right, you use kernel 3.10, suggest using something newer. 
VPP uses syscalls which are not available in kernel 3.10

-- 
Damjan

> On 25 Apr 2020, at 04:05, mythosmonkeyk...@163.com wrote:
> 
> hi,Benoit Ganne,
> When I use 'silvermont', there are still errors.As follows:
> 
> [mythos@localhost dpdk-20.02]$ ls -l 
> config/defconfig_x86_64-silvermont-linux-gcc
> lrwxrwxrwx 1 mythos mythos 40 Apr 18 10:10 
> config/defconfig_x86_64-silvermont-linux-gcc -> 
> defconfig_x86_64-silvermont-linuxapp-gcc
> [mythos@localhost dpdk-20.02]$ cat mk/machine/silvermont/rte.vars.mk
> # SPDX-License-Identifier: BSD-3-Clause
> # Copyright(c) 2010-2014 Intel Corporation
>
> #
> # machine:
> #
> #   - can define ARCH variable (overridden by cmdline value)
> #   - can define CROSS variable (overridden by cmdline value)
> #   - define MACHINE_CFLAGS variable (overridden by cmdline value)
> #   - define MACHINE_LDFLAGS variable (overridden by cmdline value)
> #   - define MACHINE_ASFLAGS variable (overridden by cmdline value)
> #   - can define CPU_CFLAGS variable (overridden by cmdline value) that
> # overrides the one defined in arch.
> #   - can define CPU_LDFLAGS variable (overridden by cmdline value) that
> # overrides the one defined in arch.
> #   - can define CPU_ASFLAGS variable (overridden by cmdline value) that
> # overrides the one defined in arch.
> #   - may override any previously defined variable
> #
>
> # ARCH =
> # CROSS =
> # MACHINE_CFLAGS =
> # MACHINE_LDFLAGS =
> # MACHINE_ASFLAGS =
> # CPU_CFLAGS =
> # CPU_LDFLAGS =
> # CPU_ASFLAGS =
>
> MACHINE_CFLAGS = -march=silvermont
> [mythos@localhost dpdk-20.02]$ make config T=x86_64-silvermont-linux-gcc 
> RTE_KERNELDIR=/home/mythos/kernel/linux-3.10 V=1
> make -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkconfig.mk 
> config
> if [ 
> "/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/config/defconfig_x86_64-silvermont-linux-gcc"
>  != "" -a -f 
> "/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/config/defconfig_x86_64-silvermont-linux-gcc"
>  ]; then \
> cc -E -undef -P -x assembler-with-cpp \
> `cat /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/VERSION | \
> sed -e 's/-rc/.-rc./' -e 's/$/..99/' | \
> awk -F '.' '{print "-D__YEAR="int($1), "-D__MONTH="int($2), 
> "-D__MINOR="int($3), "-D__SUFFIX=\""$4"\"", "-D__RELEASE="int($5)}'` \
> -ffreestanding \
> -o /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/config/defconfig_x86_64-silvermont-linux-gcc
>  ; \
> config=$(cat 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp) ; \
> echo "$config" | awk -F '=' 'BEGIN {i=1} \
> /^#/ {pos[i++]=$0} \
> !/^#/ {if (!s[$1]) {pos[i]=$0; s[$1]=i++} \
> else {pos[s[$1]]=$0}} END \
> {for (j=1; j > 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp ; \
> if ! cmp -s 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config; then \
> cp 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config ; \
> cp 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config.orig ; \
> fi ; \
> rm -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
> ; \
> else \
> make -rRf 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkconfig.mk notemplate; \
> fi
> Configuration done using x86_64-silvermont-linux-gcc
> [mythos@localhost dpdk-20.02]$ make V=1
> make -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkconfig.mk 
> checkconfig
> make -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkconfig.mk \
> headerconfig NODOTCONF=1
> make -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkbuild.mk all
> cc1: error: bad value (silvermont) for -march= switch
> cc1: warning: unrecognized command line option 
> "-Wno-address-of-packed-member" [enabled by default]
> == Build lib
> make S=lib -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/lib/Makefile -C 
> /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/build/lib all
> cc1: error: bad value (silvermont) for -march= switch
> cc1: warning: unrecognized command line option 
> "-Wno-address-of-packed-member" [enabled by default]
> == Build lib/librte_kvargs
> cc1: error: bad value (silvermont) for -march= switch
> cc1: warning: unrecognized command line option 
> "-Wno-address-of-packed-member" [enabled by default]
> gcc -Wp,-MD,./.rte_kvargs.o.d.tmp  -m64 -pthread 
> 

Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-24 Thread mythosmonkeyking
hi,Benoit Ganne,
When I use 'silvermont', there are still errors.As follows:

[mythos@localhost dpdk-20.02]$ ls -l 
config/defconfig_x86_64-silvermont-linux-gcc
lrwxrwxrwx 1 mythos mythos 40 Apr 18 10:10 
config/defconfig_x86_64-silvermont-linux-gcc -> 
defconfig_x86_64-silvermont-linuxapp-gcc
[mythos@localhost dpdk-20.02]$ cat mk/machine/silvermont/rte.vars.mk
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2010-2014 Intel Corporation

#
# machine:
#
#   - can define ARCH variable (overridden by cmdline value)
#   - can define CROSS variable (overridden by cmdline value)
#   - define MACHINE_CFLAGS variable (overridden by cmdline value)
#   - define MACHINE_LDFLAGS variable (overridden by cmdline value)
#   - define MACHINE_ASFLAGS variable (overridden by cmdline value)
#   - can define CPU_CFLAGS variable (overridden by cmdline value) that
#     overrides the one defined in arch.
#   - can define CPU_LDFLAGS variable (overridden by cmdline value) that
#     overrides the one defined in arch.
#   - can define CPU_ASFLAGS variable (overridden by cmdline value) that
#     overrides the one defined in arch.
#   - may override any previously defined variable
#

# ARCH =
# CROSS =
# MACHINE_CFLAGS =
# MACHINE_LDFLAGS =
# MACHINE_ASFLAGS =
# CPU_CFLAGS =
# CPU_LDFLAGS =
# CPU_ASFLAGS =

MACHINE_CFLAGS = -march=silvermont
[mythos@localhost dpdk-20.02]$ make config T=x86_64-silvermont-linux-gcc 
RTE_KERNELDIR=/home/mythos/kernel/linux-3.10 V=1
make -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkconfig.mk config
if [ 
"/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/config/defconfig_x86_64-silvermont-linux-gcc"
 != "" -a -f 
"/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/config/defconfig_x86_64-silvermont-linux-gcc"
 ]; then \
cc -E -undef -P -x assembler-with-cpp \
`cat /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/VERSION | \
sed -e 's/-rc/.-rc./' -e 's/$/..99/' | \
awk -F '.' '{print "-D__YEAR="int($1), "-D__MONTH="int($2), 
"-D__MINOR="int($3), "-D__SUFFIX=\""$4"\"", "-D__RELEASE="int($5)}'` \
-ffreestanding \
-o /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/config/defconfig_x86_64-silvermont-linux-gcc
 ; \
config=$(cat /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp) ; \
echo "$config" | awk -F '=' 'BEGIN {i=1} \
/^#/ {pos[i++]=$0} \
!/^#/ {if (!s[$1]) {pos[i]=$0; s[$1]=i++} \
else {pos[s[$1]]=$0}} END \
{for (j=1; j /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp ; \
if ! cmp -s /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config; then \
cp /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config ; \
cp /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp 
/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config.orig ; \
fi ; \
rm -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/.config_tmp ; \
else \
make -rRf /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkconfig.mk 
notemplate; \
fi
Configuration done using x86_64-silvermont-linux-gcc
[mythos@localhost dpdk-20.02]$ make V=1
make -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkconfig.mk 
checkconfig
make -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkconfig.mk \
headerconfig NODOTCONF=1
make -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/mk/rte.sdkbuild.mk all
cc1: error: bad value (silvermont) for -march= switch
cc1: warning: unrecognized command line option "-Wno-address-of-packed-member" 
[enabled by default]
== Build lib
make S=lib -f /home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/lib/Makefile -C 
/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/build/lib all
cc1: error: bad value (silvermont) for -march= switch
cc1: warning: unrecognized command line option "-Wno-address-of-packed-member" 
[enabled by default]
== Build lib/librte_kvargs
cc1: error: bad value (silvermont) for -march= switch
cc1: warning: unrecognized command line option "-Wno-address-of-packed-member" 
[enabled by default]
gcc -Wp,-MD,./.rte_kvargs.o.d.tmp  -m64 -pthread 
-I/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/lib/librte_eal/linux/eal/include 
 -march=silvermont   
-I/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/include 
-DRTE_USE_FUNCTION_VERSIONING -include 
/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/build/include/rte_config.h 
-D_GNU_SOURCE -W -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align 
-Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef 
-Wwrite-strings -Wdeprecated -Wno-missing-field-initializers 
-Wno-address-of-packed-member 
-I/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/lib/librte_kvargs -O3 
-I/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/lib/librte_eal/common/include    
-o rte_kvargs.o -c 
/home/mythos/dpdk/dpdk-20.02-atom/dpdk-20.02/lib/librte_kvargs/rte_kvargs.c

Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-15 Thread Benoit Ganne (bganne) via lists.fd.io
As pointed to by Damjan, the issue is you are using the wrong arch parameter: 
you should be using 'silvermont' instead of 'atom' according to your cpu.

ben

> -Original Message-
> From: vpp-dev@lists.fd.io  On Behalf Of
> mythosmonkeyk...@163.com
> Sent: mercredi 15 avril 2020 11:31
> To: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] dpdk-20.02 compile error for Intel atom
> 
> hi, Damjan Marion, Benoit Ganne,
> I found the images hard to load, so I pasted the text.
> 
> compile server:
> 
> 
> [mythos@localhost ~]$ cat /proc/cpuinfo
> processor   : 0
> vendor_id   : GenuineIntel
> cpu family  : 6
> model   : 37
> model name  : Intel(R) Core(TM) i3 CPU   M 350  @ 2.27GHz
> stepping: 2
> microcode   : 0x11
> cpu MHz : 933.000
> cache size  : 3072 KB
> physical id : 0
> siblings: 4
> core id : 0
> cpu cores   : 2
> apicid  : 0
> initial apicid  : 0
> fpu : yes
> fpu_exception   : yes
> cpuid level : 11
> wp  : yes
> flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
> nonstop_tsc aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2
> ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ssbd ibrs ibpb stibp
> tpr_shadow vnmi flexpriority ept vpid dtherm arat spec_ctrl intel_stibp
> flush_l1d
> bogomips: 4522.43
> clflush size: 64
> cache_alignment : 64
> address sizes   : 36 bits physical, 48 bits virtual
> power management:
> 
> processor   : 1
> vendor_id   : GenuineIntel
> cpu family  : 6
> model   : 37
> model name  : Intel(R) Core(TM) i3 CPU   M 350  @ 2.27GHz
> stepping: 2
> 
> 
> target host:
> 
> 
> [root@domain ~]# cat /proc/cpuinfo
> processor   : 0
> vendor_id   : GenuineIntel
> cpu family  : 6
> model   : 77
> model name  : Intel(R) Atom(TM) CPU  C2558  @ 2.40GHz
> stepping: 8
> microcode   : 0x128
> cpu MHz : 2400.000
> cache size  : 1024 KB
> physical id : 0
> siblings: 4
> core id : 0
> cpu cores   : 4
> apicid  : 0
> initial apicid  : 0
> fpu : yes
> fpu_exception   : yes
> cpuid level : 11
> wp  : yes
> flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
> nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2
> ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes
> rdrand lahf_lm 3dnowprefetch epb tpr_shadow vnmi flexpriority ept vpid
> tsc_adjust smep erms dtherm arat
> bogomips: 4800.19
> clflush size: 64
> cache_alignment : 64
> address sizes   : 36 bits physical, 48 bits virtual
> power management:
> 
> processor   : 1
> vendor_id   : GenuineIntel
> cpu family  : 6
> model   : 77
> model name  : Intel(R) Atom(TM) CPU  C2558  @ 2.40GHz
> stepping: 8
> microcode   : 0x128
> cpu MHz : 1200.000
> cache size  : 1024 KB
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16082): https://lists.fd.io/g/vpp-dev/message/16082
Mute This Topic: https://lists.fd.io/mt/72983203/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-15 Thread mythosmonkeyking
hi, Damjan Marion, Benoit Ganne,
I found the images hard to load, so I pasted the text.

compile server:

[mythos@localhost ~]$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 37
model name      : Intel(R) Core(TM) i3 CPU       M 350  @ 2.27GHz
stepping        : 2
microcode       : 0x11
cpu MHz         : 933.000
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm 
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc 
aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm 
sse4_1 sse4_2 popcnt lahf_lm ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority 
ept vpid dtherm arat spec_ctrl intel_stibp flush_l1d
bogomips        : 4522.43
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 37
model name      : Intel(R) Core(TM) i3 CPU       M 350  @ 2.27GHz
stepping        : 2

target host:

[root@domain ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 77
model name      : Intel(R) Atom(TM) CPU  C2558  @ 2.40GHz
stepping        : 8
microcode       : 0x128
cpu MHz         : 2400.000
cache size      : 1024 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm 
constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc 
aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm 
sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch 
epb tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm arat
bogomips        : 4800.19
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 77
model name      : Intel(R) Atom(TM) CPU  C2558  @ 2.40GHz
stepping        : 8
microcode       : 0x128
cpu MHz         : 1200.000
cache size      : 1024 KB
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16080): https://lists.fd.io/g/vpp-dev/message/16080
Mute This Topic: https://lists.fd.io/mt/72983203/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-15 Thread mythosmonkeyking
hi, Damjan Marion, Benoit Ganne,
I want to cross compile DPDK on the build server.The CPU of the target host is 
Intel atom.Therefore, I added the atom platform under the mk/machine/ directory 
of DPDK, but an error occurred.
And when I looked at the CPU features, I found that my build server supported 
the sse4.1 feature.Why is this still the case?
compile server:

target server:
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16079): https://lists.fd.io/g/vpp-dev/message/16079
Mute This Topic: https://lists.fd.io/mt/72983203/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-14 Thread Damjan Marion via lists.fd.io

+1, -march=atom is bad, you likely have newer ATOM CPU, so consider using 
-march={silvermont,goldmont,goldmont-plus}.

What exact CPU are you targeting?


— 
Damjan

> On 14 Apr 2020, at 12:13, Benoit Ganne (bganne) via lists.fd.io 
>  wrote:
> 
> Hi,
> 
> This is a dpdk issue, not a VPP issue. However, it looks like your target 
> does not support SSE4.1 which seems to be needed by librte_acl.
> 
> ben
> 
>> -Original Message-
>> From: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io> > <mailto:vpp-dev@lists.fd.io>> On Behalf Of
>> mythosmonkeyk...@163.com <mailto:mythosmonkeyk...@163.com>
>> Sent: lundi 13 avril 2020 11:52
>> To: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io>
>> Subject: [vpp-dev] dpdk-20.02 compile error for Intel atom
>> 
>> 
>> --
>> hi all,
>>I've added two files, content is as follows:
>> 
>> mk/machine/atom/rte. Vars. Mk
>> 
>> 
>> # SPDX-License-Identifier: BSD-3-Clause
>> # Copyright(c) 2010-2014 Intel Corporation
>> 
>> #
>> # machine:
>> #
>> #   - can define ARCH variable (overridden by cmdline value)
>> #   - can define CROSS variable (overridden by cmdline value)
>> #   - define MACHINE_CFLAGS variable (overridden by cmdline value)
>> #   - define MACHINE_LDFLAGS variable (overridden by cmdline value)
>> #   - define MACHINE_ASFLAGS variable (overridden by cmdline value)
>> #   - can define CPU_CFLAGS variable (overridden by cmdline value) that
>> # overrides the one defined in arch.
>> #   - can define CPU_LDFLAGS variable (overridden by cmdline value) that
>> # overrides the one defined in arch.
>> #   - can define CPU_ASFLAGS variable (overridden by cmdline value) that
>> # overrides the one defined in arch.
>> #   - may override any previously defined variable
>> #
>> 
>> # ARCH =
>> # CROSS =
>> # MACHINE_CFLAGS =
>> # MACHINE_LDFLAGS =
>> # MACHINE_ASFLAGS =
>> # CPU_CFLAGS =
>> # CPU_LDFLAGS =
>> # CPU_ASFLAGS =
>> 
>> MACHINE_CFLAGS = -march=atom
>> 
>> # On FreeBSD systems, sometimes the correct CPU type is not picked up.
>> # To get everything to compile, we need SSE4.2 support, so check if that
>> is
>> # reported by compiler. If not, check if the CPU actually supports it, and
>> if
>> # so, set the compilation target to be a corei7, minimum target with
>> SSE4.2.
>> SSE42_SUPPORT=$(shell $(CC) -march=native -dM -E - > SSE4_2)
>> ifeq ($(SSE42_SUPPORT),)
>>MACHINE_CFLAGS = -march=corei7
>> endif
>> 
>> config/defconfig_x86_64-atom-linuxapp-gcc:
>> 
>> 
>> # SPDX-License-Identifier: BSD-3-Clause
>> # Copyright(c) 2010-2014 Intel Corporation
>> 
>> #include "common_linux"
>> 
>> CONFIG_RTE_MACHINE="atom"
>> 
>> CONFIG_RTE_ARCH="x86_64"
>> CONFIG_RTE_ARCH_X86_64=y
>> CONFIG_RTE_ARCH_X86=y
>> CONFIG_RTE_ARCH_64=y
>> 
>> CONFIG_RTE_TOOLCHAIN="gcc"
>> CONFIG_RTE_TOOLCHAIN_GCC=y
>> 
>> However, I ran into the following problems while compiling:
>> make config T=x86_64-atom-linux-gcc
>> make V=1
>> 
>> The error message is as follows:
>> 
>> gcc -Wp,-MD,./.acl_run_sse.o.d.tmp  -m64 -pthread -I/home/wangj/code/dpdk-
>> 20.02/lib/librte_eal/linux/eal/include  -march=atom -
>> DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -
>> DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_MACHINE_CPUFLAG_SSSE3  -
>> I/home/wangj/code/dpdk-20.02/build/include -DRTE_USE_FUNCTION_VERSIONING -
>> include /home/wangj/code/dpdk-20.02/build/include/rte_config.h -
>> D_GNU_SOURCE -O3 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -
>> Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align
>> -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef
>> -Wwrite-strings -Wdeprecated -Wno-missing-field-initializers -Wno-address-
>> of-packed-member -I/home/wangj/code/dpdk-20.02/lib/librte_acl-o
>> acl_run_sse.o -c /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.c
>> In file included from /home/wangj/code/dpdk-
>> 20.02/lib/librte_acl/acl_run_sse.c:5:0:
>> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h: In function
>> ‘resolve_priority_sse’:
>> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h:84:4: warning:
>> implicit declaration of function ‘_mm_blendv_epi8’ [-Wimplicit-function-
>> declaration]
>>results = _mm_blendv_epi8(results, results1, selector);
>>^
>> /home/wangj/code/dpdk

Re: [vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-14 Thread Benoit Ganne (bganne) via lists.fd.io
Hi,

This is a dpdk issue, not a VPP issue. However, it looks like your target does 
not support SSE4.1 which seems to be needed by librte_acl.

ben

> -Original Message-
> From: vpp-dev@lists.fd.io  On Behalf Of
> mythosmonkeyk...@163.com
> Sent: lundi 13 avril 2020 11:52
> To: vpp-dev@lists.fd.io
> Subject: [vpp-dev] dpdk-20.02 compile error for Intel atom
> 
> 
> --
> hi all,
> I've added two files, content is as follows:
> 
> mk/machine/atom/rte. Vars. Mk
> 
> 
> # SPDX-License-Identifier: BSD-3-Clause
> # Copyright(c) 2010-2014 Intel Corporation
> 
> #
> # machine:
> #
> #   - can define ARCH variable (overridden by cmdline value)
> #   - can define CROSS variable (overridden by cmdline value)
> #   - define MACHINE_CFLAGS variable (overridden by cmdline value)
> #   - define MACHINE_LDFLAGS variable (overridden by cmdline value)
> #   - define MACHINE_ASFLAGS variable (overridden by cmdline value)
> #   - can define CPU_CFLAGS variable (overridden by cmdline value) that
> # overrides the one defined in arch.
> #   - can define CPU_LDFLAGS variable (overridden by cmdline value) that
> # overrides the one defined in arch.
> #   - can define CPU_ASFLAGS variable (overridden by cmdline value) that
> # overrides the one defined in arch.
> #   - may override any previously defined variable
> #
> 
> # ARCH =
> # CROSS =
> # MACHINE_CFLAGS =
> # MACHINE_LDFLAGS =
> # MACHINE_ASFLAGS =
> # CPU_CFLAGS =
> # CPU_LDFLAGS =
> # CPU_ASFLAGS =
> 
> MACHINE_CFLAGS = -march=atom
> 
> # On FreeBSD systems, sometimes the correct CPU type is not picked up.
> # To get everything to compile, we need SSE4.2 support, so check if that
> is
> # reported by compiler. If not, check if the CPU actually supports it, and
> if
> # so, set the compilation target to be a corei7, minimum target with
> SSE4.2.
> SSE42_SUPPORT=$(shell $(CC) -march=native -dM -E -  SSE4_2)
> ifeq ($(SSE42_SUPPORT),)
> MACHINE_CFLAGS = -march=corei7
> endif
> 
> config/defconfig_x86_64-atom-linuxapp-gcc:
> 
> 
> # SPDX-License-Identifier: BSD-3-Clause
> # Copyright(c) 2010-2014 Intel Corporation
> 
> #include "common_linux"
> 
> CONFIG_RTE_MACHINE="atom"
> 
> CONFIG_RTE_ARCH="x86_64"
> CONFIG_RTE_ARCH_X86_64=y
> CONFIG_RTE_ARCH_X86=y
> CONFIG_RTE_ARCH_64=y
> 
> CONFIG_RTE_TOOLCHAIN="gcc"
> CONFIG_RTE_TOOLCHAIN_GCC=y
> 
> However, I ran into the following problems while compiling:
> make config T=x86_64-atom-linux-gcc
> make V=1
> 
> The error message is as follows:
> 
> gcc -Wp,-MD,./.acl_run_sse.o.d.tmp  -m64 -pthread -I/home/wangj/code/dpdk-
> 20.02/lib/librte_eal/linux/eal/include  -march=atom -
> DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -
> DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_MACHINE_CPUFLAG_SSSE3  -
> I/home/wangj/code/dpdk-20.02/build/include -DRTE_USE_FUNCTION_VERSIONING -
> include /home/wangj/code/dpdk-20.02/build/include/rte_config.h -
> D_GNU_SOURCE -O3 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -
> Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align
> -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef
> -Wwrite-strings -Wdeprecated -Wno-missing-field-initializers -Wno-address-
> of-packed-member -I/home/wangj/code/dpdk-20.02/lib/librte_acl-o
> acl_run_sse.o -c /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.c
> In file included from /home/wangj/code/dpdk-
> 20.02/lib/librte_acl/acl_run_sse.c:5:0:
> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h: In function
> ‘resolve_priority_sse’:
> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h:84:4: warning:
> implicit declaration of function ‘_mm_blendv_epi8’ [-Wimplicit-function-
> declaration]
> results = _mm_blendv_epi8(results, results1, selector);
> ^
> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h:84:4: warning:
> nested extern declaration of ‘_mm_blendv_epi8’ [-Wnested-externs]
> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h:84:12: error:
> incompatible types when assigning to type ‘xmm_t’ from type ‘int’
> results = _mm_blendv_epi8(results, results1, selector);
> ^
> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h:85:13: error:
> incompatible types when assigning to type ‘xmm_t’ from type ‘int’
> priority = _mm_blendv_epi8(priority, priority1,
>  ^
> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h: In function
> ‘acl_match_check_x4’:
> /home/wangj/code/dpdk-20.02/lib/librte_acl/acl_run_sse.h:136:2: warning:
> implicit declaration of function ‘_mm_testz_si128’ [-Wimplicit-function-
> declaration]
>   

[vpp-dev] dpdk-20.02 compile error for Intel atom

2020-04-13 Thread mythosmonkeyking
--
hi all,
I've added two files, content is as follows:

*mk/machine/atom/rte. Vars. Mk*

# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2010-2014 Intel Corporation

#
# machine:
#
#   - can define ARCH variable (overridden by cmdline value)
#   - can define CROSS variable (overridden by cmdline value)
#   - define MACHINE_CFLAGS variable (overridden by cmdline value)
#   - define MACHINE_LDFLAGS variable (overridden by cmdline value)
#   - define MACHINE_ASFLAGS variable (overridden by cmdline value)
#   - can define CPU_CFLAGS variable (overridden by cmdline value) that
#     overrides the one defined in arch.
#   - can define CPU_LDFLAGS variable (overridden by cmdline value) that
#     overrides the one defined in arch.
#   - can define CPU_ASFLAGS variable (overridden by cmdline value) that
#     overrides the one defined in arch.
#   - may override any previously defined variable
#

# ARCH =
# CROSS =
# MACHINE_CFLAGS =
# MACHINE_LDFLAGS =
# MACHINE_ASFLAGS =
# CPU_CFLAGS =
# CPU_LDFLAGS =
# CPU_ASFLAGS =

MACHINE_CFLAGS = -march=atom

# On FreeBSD systems, sometimes the correct CPU type is not picked up.
# To get everything to compile, we need SSE4.2 support, so check if that is
# reported by compiler. If not, check if the CPU actually supports it, and if
# so, set the compilation target to be a corei7, minimum target with SSE4.2.
SSE42_SUPPORT=$(shell $(CC) -march=native -dM -E - -=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16055): https://lists.fd.io/g/vpp-dev/message/16055
Mute This Topic: https://lists.fd.io/mt/72983203/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-