All of lore.kernel.org
 help / color / mirror / Atom feed
From: Or Gerlitz <or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Jack Morgenstein
	<jackm-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>,
	Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Hal Rosenstock
	<hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Subject: Re: Quick mlx4 IB SR-IOV howto?
Date: Wed, 26 Sep 2012 22:22:58 +0200	[thread overview]
Message-ID: <CAJZOPZLZQVjFj0P3SrU8hmsz5XNM3QR7HEsxrn5C755hxkWszQ@mail.gmail.com> (raw)
In-Reply-To: <CAL1RGDU0XPCyS6fVeHHxnhLHpREjqi6kjKFCX8hBwrLuVD2HwA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Wed, Sep 26, 2012 at 7:14 PM, Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org> wrote:
> So I have SR-IOV enabled on a ConnectX-3 adapter, and I loaded the
> driver with num_vfs=1 probe_vf=1, so in the host I see:
>
> # The master device
> $ ibv_devinfo -d mlx4_1
> hca_id: mlx4_1
>         transport:                      InfiniBand (0)
>         fw_ver:                         2.11.500
>         node_guid:                      0002:c903:0036:6670
>         sys_image_guid:                 0002:c903:0036:6673
>         vendor_id:                      0x02c9
>         vendor_part_id:                 4099
>         hw_ver:                         0x0
>         board_id:                       MT_1100120019
>         phys_port_cnt:                  1
>                 port:   1
>                         state:                  PORT_ACTIVE (4)
>                         max_mtu:                2048 (4)
>                         active_mtu:             2048 (4)
>                         sm_lid:                 1
>                         port_lid:               2
>                         port_lmc:               0x00
>                         link_layer:             InfiniBand
>
> # The slave VF
> $ ibv_devinfo -d mlx4_3
> hca_id: mlx4_3
>         transport:                      InfiniBand (0)
>         fw_ver:                         2.11.500
>         node_guid:                      0014:0500:8c20:105c
>         sys_image_guid:                 0002:c903:0036:6673
>         vendor_id:                      0x02c9
>         vendor_part_id:                 4100
>         hw_ver:                         0x0
>         board_id:                       MT_1100120019
>         phys_port_cnt:                  1
>                 port:   1
>                         state:                  PORT_DOWN (1)
>                         max_mtu:                2048 (4)
>                         active_mtu:             2048 (4)
>                         sm_lid:                 1
>                         port_lid:               2
>                         port_lmc:               0x00
>                         link_layer:             InfiniBand
>
> What do I need for the slave VF's port to become active?
> I'm running opensm 3.3.13 on a different box, is that new enough?
> (does SR-IOV require any SM support?)

Yes, as Hal noted, at minimum you need opensm 3.3.14
(http://marc.info/?l=linux-rdma&m=133819320432335&w=2) as it is the
1st version to support alias-guid et al stuff needed for SRIOV, 3.3.15
is also out now, so you want the 2nd version that supports this...
basically you need IB link for the PPF and the slave to get an alias
guid registered for it @ the SM. We (IL team) were off Tues/Wed as of
a holiday, will try to get you further details tonight and if not, by
tomorrow, sure.

Or.
--
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

  parent reply	other threads:[~2012-09-26 20:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-26 17:14 Quick mlx4 IB SR-IOV howto? Roland Dreier
     [not found] ` <CAL1RGDU0XPCyS6fVeHHxnhLHpREjqi6kjKFCX8hBwrLuVD2HwA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-26 20:11   ` Hal Rosenstock
2012-09-26 20:22   ` Or Gerlitz [this message]
     [not found]     ` <CAJZOPZLZQVjFj0P3SrU8hmsz5XNM3QR7HEsxrn5C755hxkWszQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-26 21:30       ` Or Gerlitz
     [not found]         ` <CAJZOPZJPZfO60ZbVeYVCPjqRZXtfuzt3PNcvKpUM+Mm6KQefaQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-27  6:47           ` Roland Dreier
     [not found]             ` <CAL1RGDXNj3XH1kwvudJ5RatjgAgmshLQPD-DbbwONMAm_CUQQg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-27  7:50               ` Or Gerlitz
     [not found]                 ` <5064055A.6020902-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2012-09-27  8:22                   ` Roland Dreier
2012-12-08 10:09 ` Yi-Man Ma
     [not found]   ` <loom.20121208T110331-55-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2012-12-11 18:29     ` Dotan Barak

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=CAJZOPZLZQVjFj0P3SrU8hmsz5XNM3QR7HEsxrn5C755hxkWszQ@mail.gmail.com \
    --to=or.gerlitz-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=jackm-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=roland-BHEL68pLQRGGvPXPguhicg@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.