[PATCH]: ipoib with mlx4 initialisation ordering

Andreas Kempe kempe at lysator.liu.se
Wed Feb 26 21:30:36 UTC 2020


On Wed, Feb 26, 2020 at 10:08:09PM +0100, Hans Petter Selasky wrote:
> On 2020-02-26 22:05, Andreas Kempe wrote:
> > +module_exit_order(ipoib_cleanup_module, SI_ORDER_FIRST);
> 
> Try:
> 
> module_exit_order(ipoib_cleanup_module, SI_ORDER_FOURTH);
> 

Tried it, but the machine still hung. See patch:

Index: sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
===================================================================
--- sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c	(revision 356611)
+++ sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c	(working copy)
@@ -1739,7 +1739,7 @@
 }
 
 module_init(ipoib_init_module);
-module_exit(ipoib_cleanup_module);
+module_exit_order(ipoib_cleanup_module, SI_ORDER_FOURTH);
 
 static int
 ipoib_evhand(module_t mod, int event, void *arg)

> 
> Fourth is first,
> 
> first is last.
> 
> for exit.
> 

I see I should read some more man pages. :P

Cordially,
Andreas Kempe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-infiniband/attachments/20200226/c710ce8d/attachment.sig>


More information about the freebsd-infiniband mailing list