[ewg] Will SLES 10 sp1 be supported in OFED 1.2
Erez Zilber
erezz at voltaire.com
Wed Mar 21 05:44:38 PDT 2007
Tziporet Koren wrote:
> Vladimir Sokolovsky wrote:
>> Erez Zilber wrote:
>>> Hi,
>>>
>>> Is there a plan to add SLES 10 sp1 support to OFED 1.2? Currently, I
>>> only see ofa_kernel-1.2/kernel_patches/backport/2.6.16_sles10. If yes,
>>> when will it be?
>>>
>>>
>> Hi Erez,
>> Yes, we plan to support SLES 10 sp1 in OFED-1.2.
>> Currently we have no sp1 beta installed here. Could you please send me
>> its kernel version.
>> Have you tried OFED installation on some SLES 10 sp1 beta?
>>
>>
> Erez,
> Can you also enhance backport patches if needed?
>
> Tziporet
>
Here's a starting point for SLES 10 sp1 support:
1) cp -r ofa_kernel-1.2/kernel_addons/backport/2.6.16_sles10 ofa_kernel-1.2/kernel_addons/backport/2.6.16_sles10_sp1
2) cp -r ofa_kernel-1.2/kernel_patches/backport/2.6.16_sles10 ofa_kernel-1.2/kernel_patches/backport/2.6.16_sles10_sp1
3) Apply the following patches:
a) configure script should check the PATCHLEVEL of SLES 10 (this will be useful also for sp2 in the future).
--- ofa_kernel-1.2/configure.orig 2007-03-21 13:45:41.000000000 +0200
+++ ofa_kernel-1.2/configure 2007-03-21 14:27:20.000000000 +0200
@@ -202,7 +202,15 @@ get_backport_dir()
echo 2.6.15
;;
2.6.16.*-*-*)
- echo 2.6.16_sles10
+ sp=$(grep PATCHLEVEL /etc/SuSE-release | cut -d" " -f3)
+ case ${sp} in
+ 1)
+ echo 2.6.16_sles10_sp1
+ ;;
+ *)
+ echo 2.6.16_sles10
+ ;;
+ esac
;;
2.6.16*)
echo 2.6.16
b) This patch is based on a patch by Preggna S (http://lists.openfabrics.org/pipermail/ewg/2007-February/002573.html):
--- ofa_kernel-1.2/kernel_addons/backport/2.6.16_sles10_sp1/include/linux/netdevice.h 2007-02-07 22:35:10.000000000 +0530
+++ ofa_kernel-1.2_new/kernel_addons/backport/2.6.16_sles10_sp1/include/linux/netdevice.h 2007-02-07 22:39:48.000000000 +0530
@@ -3,18 +3,6 @@
#include_next <linux/netdevice.h>
-static inline void netif_tx_lock(struct net_device *dev)
-{
- spin_lock(&dev->xmit_lock);
- dev->xmit_lock_owner = smp_processor_id();
-}
-
-static inline void netif_tx_unlock(struct net_device *dev)
-{
- dev->xmit_lock_owner = -1;
- spin_unlock(&dev->xmit_lock);
-}
-
#undef SET_ETHTOOL_OPS
#define SET_ETHTOOL_OPS(netdev, ops) \
(netdev)->ethtool_ops = (struct ethtool_ops *)(ops)
Now, when I try to build OFED, I get the following errors:
gcc -Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core/.iwcm.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.1.2/include -D__KERNEL__ -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/kernel_addons/backport/2.6.16_sles10_sp1/include/ -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include -Iinclude -Iinclude2 -I/usr/src/linux-2.6.16.37-0.9/include -include include/linux/autoconf.h -include /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/linux/autoconf.h -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-p
ointer-sign -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/debug -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/cxgb3 -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/rds -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(iwcm)" -D"KBUILD_MODNAME=KBUILD_STR(iw_cm)" -c -o /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core/.tmp_iwcm.o /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core/iwcm.c
gcc -Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core/.cma.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.1.2/include -D__KERNEL__ -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/kernel_addons/backport/2.6.16_sles10_sp1/include/ -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include -Iinclude -Iinclude2 -I/usr/src/linux-2.6.16.37-0.9/include -include include/linux/autoconf.h -include /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include/linux/autoconf.h -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-po
inter-sign -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/include -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/debug -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/cxgb3 -I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/net/rds -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(cma)" -D"KBUILD_MODNAME=KBUILD_STR(rdma_cm)" -c -o /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core/.tmp_cma.o /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core/cma.c
In file included from /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core/cma.c:40:
/usr/src/linux-2.6.16.37-0.9/include/net/tcp.h: In function ?tcp_skb_mss?:
/usr/src/linux-2.6.16.37-0.9/include/net/tcp.h:565: error: ?struct skb_shared_info? has no member named ?tso_size
make[6]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core/cma.o] Error 1
make[5]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband/core] Error 2
make[4]: *** [/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2/drivers/infiniband] Error 2
make[3]: *** [_module_/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.37-0.9-obj/x86_64/smp'
--
____________________________________________________________
Erez Zilber | 972-9-971-7689
Software Engineer, Storage Team
Voltaire – _The Grid Backbone_
__
www.voltaire.com <http://www.voltaire.com/>
<mailto:erezz at voltaire.com>
More information about the ewg
mailing list