mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lukas Hejtmanek <xhejtman@ics.muni.cz>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: yinghai@kernel.org, linux-pci@vger.kernel.org, roland@kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: mellanox mlx4_core and SR-IOV
Date: Mon, 6 Aug 2012 17:10:43 +0200	[thread overview]
Message-ID: <20120806151043.GY25979@ics.muni.cz> (raw)
In-Reply-To: <20120806140706.GC3093@phenom.dumpdata.com>

On Mon, Aug 06, 2012 at 10:07:06AM -0400, Konrad Rzeszutek Wilk wrote:
> > good catch. I forgot to pass swiotl=force for DomU in Xen. So now, it seems
> > that mlx4_core works, mlx4_en (ethernet part) works as well. Unfortunately,
> > the IB part does not. IB layer complains that SR-IOV is currently unsupported
> > (kernel 3.5.0). So no luck here so far. 
> 
> Don't use swiotlb=force. That is for the old style kernels. Use iommu=soft.

OK.

> > There is OFED stack directly from Mellanox, that seems to support SR-IOV even
> > for IB layer, but they have buildable sources only for RHEL/SLES kernels
> > (2.6.32) and even correcting the sources to get it compile with 3.5.0 does not
> > make things work. The driver complains about interrupts not working in Dom0 or
> > even without Xen hypervisor at all.
> 
> So there is a bug that .. well, I thought I had fixed it with the
> IB layer but maybe not. It was about VM_IO having to be used on the vmaps
> being setup. But I can't recall the details. Perhaps the InfiniBand mailing
> list might have some ... ah here it is:
> http://old-list-archives.xen.org/archives/html/xen-devel/2011-01/msg00246.html

not sure what do you mean. This fix is for Mellanox OFED driver to work? Or for stock kernel?
Stock kernel contains explicit check for SR-IOV and refuses to load.

this is exact fail of the Mellanox OFED driver.

kernel: [    6.568433] mlx4_core: Mellanox ConnectX core driver v1.0-mlnx_ofed1.5.3 (November 3, 2011)
kernel: [    6.568526] mlx4_core: Initializing 0000:02:00.0
kernel: [    7.071292] mlx4_core 0000:02:00.0: Enabling sriov with:1 vfs
kernel: [    7.175587] mlx4_core 0000:02:00.0: Running in master mode
kernel: [   18.613383] mlx4_core 0000:02:00.0: command 0x31 timed out (go bit not cleared)
kernel: [   18.613475] mlx4_core 0000:02:00.0: NOP command failed to generate MSI-X interrupt IRQ 94).
kernel: [   18.613564] mlx4_core 0000:02:00.0: Trying again without MSI-X.
kernel: [   28.606086] mlx4_core 0000:02:00.0: command 0x31 timed out (go bit not cleared)
kernel: [   30.615093] mlx4_core: probe of 0000:02:00.0 failed with error -16


-- 
Lukáš Hejtmánek

  reply	other threads:[~2012-08-06 15:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-03 13:49 Konrad Wilk
2012-08-05  8:05 ` Lukas Hejtmanek
2012-08-06 14:07   ` Konrad Rzeszutek Wilk
2012-08-06 15:10     ` Lukas Hejtmanek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-08-01 13:38 Lukas Hejtmanek
2012-08-01 17:37 ` Roland Dreier
2012-08-01 18:29   ` Yinghai Lu
2012-08-01 20:28     ` Lukas Hejtmanek
2012-08-01 21:27       ` Yinghai Lu
2012-08-01 21:50         ` Lukas Hejtmanek
2012-08-01 20:56     ` Lukas Hejtmanek
2012-08-01 21:32       ` Yinghai Lu
2012-08-01 22:08         ` Lukas Hejtmanek
2012-08-01 23:36           ` Yinghai Lu
2012-08-03  8:33             ` Lukas Hejtmanek
2012-08-03 16:41               ` Yinghai Lu
2012-08-10 18:51               ` Chris Friesen
2012-08-10 22:34                 ` Lukas Hejtmanek

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=20120806151043.GY25979@ics.muni.cz \
    --to=xhejtman@ics.muni.cz \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=roland@kernel.org \
    --cc=yinghai@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

Powered by JetHome