Comment 16 for bug 1539775

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-09-01 23:10 EDT-------
Regarding build error reported for ppc64el as in dev03 and dev 04 builds:
https://launchpad.net/~paelzer/+archive/ubuntu/deb-dpdk-16.07

Removing "CONFIG_RTE_LIBRTE_PMD_BOND=n" from config/
defconfig_ppc_64-power8-linuxapp-gcc should help us proceeding
further. so, dpdk.spec needs this change.

You would also need to patch .debian/ as below:

--- dpdk-16.07.org/debian/librte-eal2.symbols 2016-08-30 02:40:26.000000000 -0400
+++ dpdk-16.07/debian/librte-eal2.symbols 2016-08-31 06:13:52.365436013 -0400
@@ -122,6 +122,7 @@ librte_eal.so.2 librte-eal2 #MINVER#
rte_openlog_stream@DPDK_2.0 16.04
rte_realloc@DPDK_2.0 16.04
(arch=!arm64)rte_rtm_supported@DPDK_16.07 16.07~rc3
+ (arch=!ppc64el)rte_rtm_supported@DPDK_16.07 16.07~rc3
rte_set_application_usage_hook@DPDK_2.0 16.04
rte_set_log_level@DPDK_2.0 16.04
rte_set_log_type@DPDK_2.0 16.04

--- dpdk-16.07.org/debian/control 2016-08-31 09:36:22.063819444 -0400
+++ dpdk-16.07/debian/control 2016-08-31 09:37:42.760626875 -0400
@@ -131,7 +131,7 @@ Depends: ${misc:Depends},
librte-pmd-vhost1 (= ${binary:Version}),
librte-pmd-virtio1 (= ${binary:Version}),
librte-pmd-vmxnet3-uio1 (= ${binary:Version}),
- librte-pmd-xenvirt1 (= ${binary:Version}),
+ librte-pmd-xenvirt1 (= ${binary:Version}) [amd64 arm64 i386],
librte-port3 (= ${binary:Version}),
librte-power1 (= ${binary:Version}),
librte-reorder1 (= ${binary:Version}),

--- dpdk-16.07.org/debian/dpdk.conf 2016-08-30 02:40:26.000000000 -0400
+++ dpdk-16.07/debian/dpdk.conf 2016-08-31 09:49:40.299580656 -0400
@@ -6,6 +6,13 @@
# NR_2M_PAGES=64
#
+# The number of 16M hugepages to reserve on system boot
+#
+# Default is 0
+# To e.g. let it reserve 32x 16M Hugepages set:
+# NR_16M_PAGES=64
+
+#
# The number of 1G hugepages to reserve on system boot
#
# Default is 0

--- dpdk-16.07.org/debian/dpdk-init 2016-08-30 02:40:26.000000000 -0400
+++ dpdk-16.07/debian/dpdk-init 2016-08-31 09:30:26.288573196 -0400
@@ -124,6 +124,9 @@ mount_hugetlbfs() {
if [ -n "${NR_2M_PAGES}" -a -z "" ]; then
_mount_hugetlbfs 2M
fi
+ if [ -n "${NR_16M_PAGES}" -a -z "" ]; then
+ _mount_hugetlbfs 16M
+ fi
if [ -n "${NR_1G_PAGES}" -a -z "" ]; then
_mount_hugetlbfs 1G
fi
@@ -166,6 +169,7 @@ setup_hugepages() {
. /etc/dpdk/dpdk.conf
_setup_hugepages "hugepages-2048kB" "$NR_2M_PAGES"
+ _setup_hugepages "hugepages-16384kB" "$NR_16M_PAGES"
_setup_hugepages "hugepages-1048576kB" "$NR_1G_PAGES"

# dpdk uses 2*#hugepages mappings, increase for huge systems LP #1507921

I can build dpdk packages successfully following above changes. I just need to
get familiar with your enablepowerpc branch on your git. Considering round trip
time I need to push above changes, can I request you to apply changes as above
and share us .deb for dpdk.

Btw, could you please also share IRC group name and server to join chat with you.

Thanks,
Gowrishankar