OFED v3.2 update

KrishnamRaju ErapaRaju Krishna2 at chelsio.com
Tue Apr 26 14:26:31 UTC 2016


Hello Hans,


I could apply  OFED 3.2 patches cleanly to r298617 but failed to build(buildworld), below is the compile error:(more error log at the bottom of this mail)
            bmake[5]: bmake[5]: don't know how to make buf.c. Stop

I took the latest OFED 3.2 patchsets as of today. And applied the patches with commands: "patch --remove-empty-files -F 30 -i /usr/src/ofed3.2/D5790.diff"

Here is my config file:

diff -r 5615b648049d sys/amd64/conf/GENERIC
--- a/sys/amd64/conf/GENERIC    Tue Apr 26 05:21:27 2016 +0000
+++ b/sys/amd64/conf/GENERIC    Mon Apr 25 15:34:54 2016 +0530
@@ -21,8 +21,9 @@
-makeoptions    DEBUG=-g                # Build kernel with gdb(1) debug symbols
+makeoptions    DEBUG="-g -O0"          # Build kernel with gdb(1) debug symbols
+options KSTACK_PAGES=16
+options KTR
+options KTR_COMPILE=KTR_SPARE3
+options KTR_MASK=KTR_SPARE3
+options KTR_ENTRIES=65536
+options BREAK_TO_DEBUGGER
+options LINUXKPI


-------------------------------COMPILE ERROR LOG--------------------
cc   -O2 -pipe -I/usr/src/cddl/lib/libzpool/../../../sys/cddl/compat/opensolaris -I/usr/src/cddl/lib/libzpool/../../compat/opensolaris/include -I/usr/src/cddl/lib/libzpool/../../compat/opensolaris/lib/libumem -I/usr/src/cddl/lib/libzpool/../../contrib/opensolaris/lib/libzpool/common -I/usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/common/zfs -I/usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common -I/usr/src/cddl/lib/libzpool/../../contrib/opensolaris/head -I/usr/src/cddl/lib/libzpool/../../lib/libumem -I/usr/src/cddl/lib/libzpool/../../contrib/opensolaris/lib/libnvpair -DWANTS_MUTEX_OWNED -I/usr/src/cddl/lib/libzpool/../../../lib/libpthread/thread -I/usr/src/cddl/lib/libzpool/../../../lib/libpthread/sys -I/usr/src/cddl/lib/libzpool/../../../lib/libthr/arch/amd64/include -g -DDEBUG=1   -DNEED_SOLARIS_BOOLEAN -MD  -MF.depend.dmu_zfetch.o -MTdmu_zfetch.o -std=iso9899:1999 -fstack-protector-strong -Wno-pointer-sign -Wno-unknown-pragmas -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses  -Qunused-arguments  -c /usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c -o dmu_zfetch.o
--- contrib/ofed/usr.lib__L ---
bmake[5]: bmake[5]: don't know how to make buf.c. Stop

bmake[5]: stopped in /usr/src/contrib/ofed/usr.lib/libmlx5
--- kerberos5/lib__L ---
--- asn1_MechTypeList.c ---
--- contrib/ofed/usr.lib__L ---


Command used for compilation:
-> make  -j4 buildworld WITH_OFED=YES
-> make -j4  buildkernel WITH_OFED=YES





Am I missing something here?, please guide me in successfully building the kernel/world with OFED 3.2 pathes.

Thanks,
Krishna.
-----Original Message-----
From: owner-freebsd-infiniband at freebsd.org [mailto:owner-freebsd-infiniband at freebsd.org] On Behalf Of Hans Petter Selasky
Sent: Thursday, March 31, 2016 3:21 PM
To: freebsd-infiniband at freebsd.org
Subject: OFED v3.2 update

Dear users of infiniband in FreeBSD:


Mellanox is working on a big infiniband update towards mellanox OFED
v3.2 of the infiniband stack (ibcore), drivers (mlx4/mlx5) and libraries (librdma, libibverbs ...). Currently there are 10-patches in different areas of the FreeBSD kernel and userspace which you need to apply to 11-current as of today to get a working GENERIC kernel.

Compile world and kernel like this after applying the patches below:

make buildkernel WITH_OFED=YES
make buildworld WITH_OFED=YES


https://reviews.freebsd.org/D5790
https://reviews.freebsd.org/D5791
https://reviews.freebsd.org/D5792
https://reviews.freebsd.org/D5793
https://reviews.freebsd.org/D5794
https://reviews.freebsd.org/D5795
https://reviews.freebsd.org/D5796
https://reviews.freebsd.org/D5797
https://reviews.freebsd.org/D5798
https://reviews.freebsd.org/D5799


The patches are work in progress, though at a level where basic infiniband is working with MLX5.


Known issues:
- LINT build is broken (Will be fixed before committing. Waiting for 
solution from Navdeep)
- Need to unload ipoib before mlx5ib.

--HPS
_______________________________________________
freebsd-infiniband at freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-infiniband
To unsubscribe, send any mail to "freebsd-infiniband-unsubscribe at freebsd.org"


More information about the freebsd-infiniband mailing list