|
From: Sergey G. <ser...@me...> - 2018-07-23 16:24:00
|
Hi,
I have reproduced " iscsi_scst: Unknown symbol backport_dependency_symbol" error on RHEL7.5 with MLNX_OFED-4.4. And I guess I found a reason of the error.
iscsi-scst/Makefile:
125 PRE_CFLAGS = $(OFED_CFLAGS) \
126 -DOFED_FLAVOR=$(OFED_FLAVOR) \
127 $(shell for t in $(CONFTESTS); do \
128 cat $$t/result-$(KVER).txt 2>/dev/null; \
129 done)
130
131 mods: include/iscsi_scst_itf_ver.h Modules.symvers Module.symvers \
132 $(CONFTEST_OUTPUTS)
133 $(MAKE) -C $(KDIR) SCST_INC_DIR=$(SCST_INC_DIR) SUBDIRS=$(KMOD) \
134 PRE_CFLAGS="$(PRE_CFLAGS)" modules
135 echo "$@: INFINIBAND_ENABLED = $(INFINIBAND_ENABLED)"
136 if $(INFINIBAND_ENABLED); then \
137 echo " Building against $(OFED_FLAVOR) InfiniBand kernel headers."; \
138 $(MAKE) -C $(KDIR) SCST_INC_DIR=$(SCST_INC_DIR) SUBDIRS=$(ISERTMOD) \
139 PRE_CFLAGS="$(PRE_CFLAGS)" \
140 KBUILD_EXTRA_SYMBOLS=$(ISER_SYMVERS) modules; \
141 fi
We build the iscsi-scst module with PRE_CFLAGS, which include OFED_CFLAGS, but without OFED symbols. So we have unknown symbols in the iscsi-scst module.
I looked at iscsi-scst and found no dependency to the OFED. So I guess we can just remove OFED_CFLAGS for iscsi-scst. I tested the following patch to check my guess:
--- iscsi-scst/Makefile (revision 7442)
+++ iscsi-scst/Makefile (working copy)
@@ -122,12 +122,15 @@
echo $$t/result-$(KVER).txt; \
done)
-PRE_CFLAGS = $(OFED_CFLAGS) \
- -DOFED_FLAVOR=$(OFED_FLAVOR) \
- $(shell for t in $(CONFTESTS); do \
+PRE_CFLAGS = $(shell \
+ for t in $(CONFTESTS); do \
cat $$t/result-$(KVER).txt 2>/dev/null; \
done)
+ISER_CFLAGS = $(OFED_CFLAGS) \
+ -DOFED_FLAVOR=$(OFED_FLAVOR) \
+ $(PRE_CFLAGS)
+
mods: include/iscsi_scst_itf_ver.h Modules.symvers Module.symvers \
$(CONFTEST_OUTPUTS)
$(MAKE) -C $(KDIR) SCST_INC_DIR=$(SCST_INC_DIR) SUBDIRS=$(KMOD) \
@@ -136,7 +139,7 @@
if $(INFINIBAND_ENABLED); then \
echo " Building against $(OFED_FLAVOR) InfiniBand kernel headers."; \
$(MAKE) -C $(KDIR) SCST_INC_DIR=$(SCST_INC_DIR) SUBDIRS=$(ISERTMOD) \
- PRE_CFLAGS="$(PRE_CFLAGS)" \
+ PRE_CFLAGS="$(ISER_CFLAGS)" \
KBUILD_EXTRA_SYMBOLS=$(ISER_SYMVERS) modules; \
fi
The patch works fine for me.
Regards,
Sergey
> -----Original Message-----
> From: Carsten Aulbert [mailto:car...@ae...]
> Sent: Tuesday, July 17, 2018 12:54 PM
> To: scs...@li...
> Subject: [Scst-devel] iscsi_scst: Unknown symbol
> backport_dependency_symbol
>
> Hi again,
>
> on our voyage from FibreChannel via iSCSI over TCP/IP we are currently
> testing Infiniband and gravitated to another problem.
>
> On a recent Debian Stretch (9.5) box with kernel
>
> Linux fc1 4.9.0-7-amd64 #1 SMP Debian 4.9.110-1 (2018-07-05) x86_64
> GNU/Linux
>
> We first tried the old in-kernel Mellanox drivers with scst. It sort of worked,
> but a couple of panics due to missing contiguous memory stopped that
> attempt[1].
>
> Then, we tried Mellanox' OFED version both 4.3 and 4.4 (only ones
> supporting Debian 9's 4.9 kernel) with the released 3.2 version but
> apparently Mellanox file layout changed enough forcing us to go to scst 3.3.x
> or svn-trunk (revision 7425 which is what threw the error below).
>
> Installing MLNX_OFED_LINUX-4.4-1.0.0.0-debian9.1-x86_64.tgz via
> ./mlnxofedinstall --skip-distro-check --force worked nicely, compiling and
> installing scst/iscsi/scstadmin afterwards as well.
>
> However, when trying to load iscsi-scst it fails with
>
> modprobe: ERROR: could not insert 'iscsi_scst': Invalid argument
>
> or via dmesg:
>
> [ 8332.096497] iscsi_scst: no symbol version for
> backport_dependency_symbol [ 8332.097763] iscsi_scst: Unknown symbol
> backport_dependency_symbol (err -22)
>
> and I have no clue how to proceed here and thankful for any hints.
>
> Cheers
>
> Carsten
>
> PS: While browsing the docs/list archive I also found 'make dpkg' which
> seems to work nicely, thank you for that option! Obviously, it also fails with
> same error.
>
> [1] as soon as the initiator tried to access the target, a kernel dump appeared
> - unfortunately I don't have a full record handy at the moment.
> We tried different settings for the kernel, e.g. swiotlb=1024 or force or 8192
> but to no avail. iscsi-scst tried to allocate about 4MB but seemingly there was
> not enough room. I can trigger this one again if needed.
>
> --
> Dr. Carsten Aulbert, Max Planck Institute for Gravitational Physics,
> Callinstraße 38, 30167 Hannover, Germany
> Phone: +49 511 762 17185
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most engaging
> tech sites, Slashdot.org!
> https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm
> .link%2Fslashdot&data=02%7C01%7Csergeygo%40mellanox.com%7C50
> 0cbf68d434493eba7d08d5ebcb620d%7Ca652971c7d2e4d9ba6a4d149256f461b
> %7C0%7C0%7C636674181133406325&sdata=2sbGruf7VQP%2BoE%2Blv2
> Z6hrwZlHUHz6xgPM9OtnFcF20%3D&reserved=0
> _______________________________________________
> Scst-devel mailing list
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
> s.sourceforge.net%2Flists%2Flistinfo%2Fscst-
> devel&data=02%7C01%7Csergeygo%40mellanox.com%7C500cbf68d434
> 493eba7d08d5ebcb620d%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0
> %7C636674181133406325&sdata=BxnEDfMzXHz0miOu2tcVu1NFgQLLZdT
> bAhrilGxbFw0%3D&reserved=0
|