All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: aditr-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org
Cc: Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	"linux-rdma
	(linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
	"liranl-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org"
	<liranl-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Majd Dibbiny <majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: rdma-core: pvrdma init issue
Date: Thu, 19 Jan 2017 16:48:17 +0200	[thread overview]
Message-ID: <20170119144817.GU32481@mtr-leonro.local> (raw)
In-Reply-To: <b13a0a91-f93a-1072-0e5a-e9841660cf00-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1910 bytes --]

And now with correct email address.

On Thu, Jan 19, 2017 at 04:05:36PM +0200, Yishai Hadas wrote:
> Hi Adit,
>
> Working with latest rdma-core stuff that includes the pvrdma provider,
> encountered below issue, would appreciate your input on.
>
> While libibverbs loads the drivers there are few "annoying" warnings that
> are printed from pvrdma per uverbs sysfs entry coming from
> 'pvrdma_driver_init_shared'.
>
> "pvrdma: ABI version 4 of /sys/class/infiniband_verbs/uverbs0 is not
> supported (supported 3)
> pvrdma: ABI version 1 of /sys/class/infiniband_verbs/uverbs1 is not
> supported (supported 3)
> ...
> "
>
> Similar messages basically appear in other drivers after some pre- detection
> that the sysfs entry relates to their driver based on vendor id, device name
> but the ABI is not supported.(see mlx5_driver_init)
>
> In the pvrdma driver you are using the ABI version as the detection and as a
> result print some redundant/annoying messages into stdout when working with
> some other device. (e.g. ibv_rc_pingpong -d mlx5_0).
>
> In addition,
> Can you please explain the detection logic itself ? your code chose the
> value of 3 (i.e. PVRDMA_UVERBS_ABI_VERSION) with some comment as of:
> "We support only a single ABI version for now".
>
> What if some other kernel driver uses that value as well or in the future
> you'll add some value that is already in use ? It might cause that pvrdma
> user driver will be used for that device without a real plan by the
> application.
>
> For example if mlx4_0 will report same ABI version the call will end-up with
> an ib_device having below information:
> "dev_name=uverbs0, drive_name=pvrdma, name=mlx4_0"
>
> Yishai
> --
> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-01-19 14:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19 14:05 rdma-core: pvrdma init issue Yishai Hadas
     [not found] ` <b13a0a91-f93a-1072-0e5a-e9841660cf00-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-01-19 14:48   ` Leon Romanovsky [this message]
2017-01-19 16:27   ` Adit Ranadive

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=20170119144817.GU32481@mtr-leonro.local \
    --to=leonro-vpraknaxozvwk0htik3j/w@public.gmane.org \
    --cc=aditr-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=liranl-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=majd-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=yishaih-VPRAkNaXOzVWk0Htik3J/w@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.