From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Ram Amrani <Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>,
Steve Wise
<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>,
Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Jarod Wilson <jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH v2 rdma-core 0/6] Common udev/systemd based module auto loading
Date: Fri, 28 Jul 2017 10:56:14 -0600 [thread overview]
Message-ID: <20170728165614.GA14302@obsidianresearch.com> (raw)
In-Reply-To: <1501260065.4572.47.camel-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
On Fri, Jul 28, 2017 at 06:41:05PM +0200, Benjamin Drung wrote:
> Am Freitag, den 28.07.2017, 09:47 -0600 schrieb Jason Gunthorpe:
> > On Fri, Jul 28, 2017 at 05:42:05PM +0200, Benjamin Drung wrote:
> >
> > > $ journalctl | grep mlx
> > > mlx4_core: Mellanox ConnectX core driver v3.3-1.0.4 (03 Jul 2016)
> > > mlx4_core: Initializing 0000:02:00.0
> > > mlx4_core: device is working in RoCE mode: Roce V1
> >
> > So you are running purely in roce mode?
>
> I want to use mlx4_ib and IPoIB. The output is the same for a properly
> working system, but these system will load mlx4_ib and then more logs
> will appear.
This approach relies on this patch in upstream:
commit b046ffe54dc13ff8ae918c83bedb71aa7919d63b
Author: Eyal Perry <eyalpe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Date: Tue Oct 15 16:55:24 2013 +0200
net/mlx4_core: Load higher level modules according to ports type
Mellanox ConnectX architecture is: mlx4_core is the lower level
PCI driver which register on the PCI id, and protocol specific drivers
are depended on it: mlx4_en - for Ethernet and mlx4_ib for Infiniband.
NIC could have multiple ports which can change their type dynamically.
We use the request_module() call to load the relevant protocol driver
when needed: on loading time or at port type change event.
$ git describe --contains b046ffe54dc13ff8ae918c83bedb71aa7919d63b
v3.13-rc1~105^2~189^2
And it works fine on my 4.13 stock systems with mlx4.
Are you using an initrd? If you have mlx4_core in the initrd then you
must also have mlx4_ib and mlx4_en as well, otherwise the kernel
triggered autoload will fail to find the module in the initrd and it
will not be retried.
Try rmmod mlx4_core; modprobe mlx4_core right after booting, if that
triggers all the module loads then the above is likely the problem.
> > What does this say:
> >
> > $ udevadm info /sys/class/net/XXX
> >
> > Where 'XXX' is the ethernet device for the mlx4?
>
> The net device is missing. When I load mlx4_ib manually, they will
> appear and show:
Right, you are using IB mode not ROCE mode, so there is no ethernet
device expected. I didn't mean the ipoib device..
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-07-28 16:56 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-27 22:31 [PATCH v2 rdma-core 0/6] Common udev/systemd based module auto loading Jason Gunthorpe
[not found] ` <1501194685-9447-1-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-07-27 22:31 ` [PATCH v2 rdma-core 1/6] Common infrastructure for auto loading rdma modules Jason Gunthorpe
[not found] ` <1501194685-9447-2-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-07-28 21:48 ` Chien Tin Tung
[not found] ` <20170728214855.GA13840-TZeIlv3TuzOfrEmaQUPKxl95YUYmaKo1UNDiOz3kqAs@public.gmane.org>
2017-07-28 23:01 ` Jason Gunthorpe
2017-07-27 22:31 ` [PATCH v2 rdma-core 2/6] Move umad udev rules to rdma-core Jason Gunthorpe
2017-07-27 22:31 ` [PATCH v2 rdma-core 3/6] debian: Cause udev to evaluate the installed rules after install Jason Gunthorpe
2017-07-27 22:31 ` [PATCH v2 rdma-core 4/6] redhat: Remove cxgb3/4.modprobe files Jason Gunthorpe
2017-07-27 22:31 ` [PATCH v2 rdma-core 5/6] srp_daemon: Autoload the SRP kernel module if required Jason Gunthorpe
2017-07-27 22:31 ` [PATCH v2 rdma-core 6/6] iwpmd: Autoload iwpmd " Jason Gunthorpe
2017-07-28 13:54 ` [PATCH v2 rdma-core 0/6] Common udev/systemd based module auto loading Steve Wise
2017-07-28 16:11 ` Jason Gunthorpe
2017-07-28 15:42 ` Benjamin Drung
[not found] ` <1501256525.4572.44.camel-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2017-07-28 15:47 ` Jason Gunthorpe
[not found] ` <20170728154749.GA9646-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-07-28 16:41 ` Benjamin Drung
[not found] ` <1501260065.4572.47.camel-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2017-07-28 16:56 ` Jason Gunthorpe [this message]
[not found] ` <20170728165614.GA14302-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-03 12:00 ` Benjamin Drung
[not found] ` <1501761659.3581.2.camel-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2017-08-03 17:52 ` Jason Gunthorpe
[not found] ` <20170803175242.GA31628-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-04 16:22 ` Benjamin Drung
[not found] ` <1501863751.3581.19.camel-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2017-08-08 22:38 ` Jason Gunthorpe
[not found] ` <20170808223851.GE29372-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-09 17:43 ` Benjamin Drung
[not found] ` <1502300630.1259.4.camel-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2017-08-09 19:54 ` Jason Gunthorpe
[not found] ` <20170809195430.GB7013-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-09 20:00 ` Jason Gunthorpe
[not found] ` <20170809200040.GA7167-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-10 7:55 ` Benjamin Drung
2017-08-09 17:54 ` Doug Ledford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170728165614.GA14302@obsidianresearch.com \
--to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
--cc=Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
--cc=benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.