From: Tom Talpey <tom@talpey.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: Leon Romanovsky <leonro@nvidia.com>,
Bernard Metzler <bmt@zurich.ibm.com>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH] Add missing ib_uverbs dependency from SoftiWARP
Date: Wed, 7 Sep 2022 09:57:43 -0400 [thread overview]
Message-ID: <0b035368-5da3-73c6-4d6f-1e22bcc70ecb@talpey.com> (raw)
In-Reply-To: <Yxih3M3rym7Abt0P@nvidia.com>
On 9/7/2022 9:51 AM, Jason Gunthorpe wrote:
> On Wed, Sep 07, 2022 at 09:45:07AM -0400, Tom Talpey wrote:
>> When loading the siw module, ib_uverbs is needed so that consumers may
>> access it. However, siw references only inline functions in ib_uverbs.h,
>> so the kernel linker can not detect this, and the module is not loaded
>> automatically. Add a module dependency to ensure ib_uverbs is present.
>
> No, that is not how things work.
>
> Modern rdma-core will auto-load uverbs when something uses it, we
> shouldn't have things like this.
But, it doesn't, for the reason stated - siw only consumes
inline functions from ib_uverbs.h, and the kernel linker has
no clue.
You can test it easily, just load siw on a laptop without any
other RDMA provider. The ib_uverbs module will not be loaded,
and the siw provider won't be seen, rping -s will run but peers
cannot connect for example.
My workaround has been to add a modprobe.d file, but it's a
hack and very non-obvious. Is there a simpler way to allow
ib_uverbs to be auto-loaded for siw?
Tom.
next prev parent reply other threads:[~2022-09-07 13:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-07 13:45 [PATCH] Add missing ib_uverbs dependency from SoftiWARP Tom Talpey
2022-09-07 13:51 ` Jason Gunthorpe
2022-09-07 13:57 ` Bernard Metzler
2022-09-07 13:57 ` Tom Talpey [this message]
2022-09-07 14:06 ` Jason Gunthorpe
2022-09-07 15:24 ` Tom Talpey
2022-09-07 16:48 ` Jason Gunthorpe
2022-09-07 17:54 ` Tom Talpey
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=0b035368-5da3-73c6-4d6f-1e22bcc70ecb@talpey.com \
--to=tom@talpey.com \
--cc=bmt@zurich.ibm.com \
--cc=jgg@nvidia.com \
--cc=leonro@nvidia.com \
--cc=linux-rdma@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox