[openib-general] [PATCH 1/7] libibverbs: Implement new method for finding and loading device-specific drivers

Steve Wise swise at opengridcomputing.com
Thu Jan 11 08:49:51 PST 2007


For some reason, the config entries don't show up as type DT_REG??
Their type is 0 (DT_UNKNOWN)...


294             while ((dent = readdir(conf_dir))) {
(gdb) n
295                     if (dent->d_type != DT_REG)
(gdb) p *dent
$10 = {d_ino = 446638, d_off = 1541991424, d_reclen = 32, d_type = 0 '\0',
  d_name = "mthca.driver\000\b\uffff\006\000\000\000\000\000\001\uffff\uffff[\000\000\000\000 \000\000cxgb3.driver", '\0' <repeats 211 times>}
(gdb) n
294             while ((dent = readdir(conf_dir))) {
(gdb) n
295                     if (dent->d_type != DT_REG)
(gdb) p *dent
$11 = {d_ino = 447496, d_off = 1541991425, d_reclen = 32, d_type = 0 '\0', d_name = "cxgb3.driver", '\0' <repeats 243 times>}
(gdb) n
294             while ((dent = readdir(conf_dir))) {
(gdb) n
301             closedir(conf_dir);
(gdb) n
302     }
(gdb)

vic13:/home/swise/git/librdmacm # file /usr/local/etc/libibverbs.d/*
/usr/local/etc/libibverbs.d/cxgb3.driver: ASCII text
/usr/local/etc/libibverbs.d/mthca.driver: ASCII text

vic13:/home/swise/git/librdmacm # cat /usr/local/etc/libibverbs.d/*
driver cxgb3
driver mthca



On Thu, 2007-01-11 at 10:19 -0600, Steve Wise wrote:
> Roland,
> 
> I'm having problems with these changes.  I built and installed
> libibverbs, libmthca, libcxgb3, and libamso.  I rebuild librdmacm, but I
> don't think I need to.
> 
> Trying rping gets this:
> 
> vic13:/home/swise/git/libibverbs # rping -c -VvC10 -a 192.168.71.144 -p 9999
> libibverbs: Warning: no userspace device-specific driver found for /sys/class/infiniband_verbs/uverbs0
> libibverbs: Warning: no userspace device-specific driver found for /sys/class/infiniband_verbs/uverbs0
> libibverbs: Warning: no userspace device-specific driver found for /sys/class/infiniband_verbs/uverbs0
> 
> 
> The files look like they got installed ok:
> 
> vic13:/etc/sysconfig # ls -l /usr/local/lib
> total 14830
> -rw-r--r-- 1 root root  145744 2007-01-11 10:06 libamso.a
> -rwxr-xr-x 1 root root     813 2007-01-11 10:06 libamso.la
> -rwxr-xr-x 1 root root   68436 2007-01-11 10:06 libamso-rdmav2.so
> lrwxrwxrwx 1 root root      17 2007-01-11 10:06 libamso.so -> libamso-rdmav2.so
> -rw-r--r-- 1 root root  228964 2007-01-11 10:01 libcxgb3.a
> -rwxr-xr-x 1 root root     820 2007-01-11 10:01 libcxgb3.la
> -rwxr-xr-x 1 root root  114238 2007-01-11 10:01 libcxgb3-rdmav2.so
> lrwxrwxrwx 1 root root      18 2007-01-11 10:01 libcxgb3.so -> libcxgb3-rdmav2.s o
> -rw-r--r-- 1 root root  310170 2007-01-11 10:08 libibverbs.a
> -rwxr-xr-x 1 root root     828 2007-01-11 10:08 libibverbs.la
> lrwxrwxrwx 1 root root      19 2007-01-11 10:08 libibverbs.so -> libibverbs.so.2 .0.0
> lrwxrwxrwx 1 root root      19 2007-01-11 10:08 libibverbs.so.2 -> libibverbs.so .2.0.0
> -rwxr-xr-x 1 root root  169793 2007-01-11 10:08 libibverbs.so.2.0.0
> -rw-r--r-- 1 root root  330322 2007-01-11 10:01 libmthca.a
> -rwxr-xr-x 1 root root     820 2007-01-11 10:01 libmthca.la
> -rwxr-xr-x 1 root root  166124 2007-01-11 10:01 libmthca-rdmav2.so
> lrwxrwxrwx 1 root root      18 2007-01-11 10:01 libmthca.so -> libmthca-rdmav2.s o
> 
> 
> I'm debugging, but thought I'd pass this along...
> 
> 
> 
> 
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
> 





More information about the general mailing list