From: Jason Gunthorpe <jgg@ziepe.ca>
To: Mark Zhang <markzhang@nvidia.com>
Cc: WANG Chao <chao.wang@ucloud.cn>, linux-rdma@vger.kernel.org
Subject: Re: Mellanox CX6DX switchdev mode VF fails rdma-core tests.test_mlx5_dc.DCTest
Date: Tue, 18 May 2021 13:52:22 -0300 [thread overview]
Message-ID: <20210518165222.GS1096940@ziepe.ca> (raw)
In-Reply-To: <4eb5c13e-6e9a-5d79-da7d-bd4219eef447@nvidia.com>
On Tue, May 18, 2021 at 09:00:29PM +0800, Mark Zhang wrote:
> On 5/18/2021 8:44 PM, WANG Chao wrote:
> > External email: Use caution opening links or attachments
> >
> >
> > On 05/18/21 at 08:30P, Mark Zhang wrote:
> > > On 5/18/2021 5:25 PM, WANG Chao wrote:
> > > > External email: Use caution opening links or attachments
> > > >
> > > >
> > > > Hi All
> > > >
> > > > I'm running tests from https://github.com/linux-rdma/rdma-core/tree/master and
> > > > got the following errors from all tests.test_mlx5_dc.DCTest tests:
> > > >
> > > > build/bin/run_tests.py --dev mlx5_2 --port 1 tests.test_mlx5_dc.DCTest.test_dc_rdma_write
> > > > E
> > > > ======================================================================
> > > > ERROR: test_dc_rdma_write (tests.test_mlx5_dc.DCTest)
> > > > Traceback (most recent call last):
> > > > File "/data/rdma-core.master/tests/test_mlx5_dc.py", line 62, in test_dc_rdma_write
> > > > send_ops_flags=e.IBV_QP_EX_WITH_RDMA_WRITE)
> > > > File "/data/rdma-core.master/tests/test_mlx5_dc.py", line 53, in create_players
> > > > self.client.pre_run(self.server.psns, self.server.qps_num)
> > > > File "/data/rdma-core.master/tests/mlx5_base.py", line 36, in pre_run
> > > > self.to_rts()
> > > > File "/data/rdma-core.master/tests/mlx5_base.py", line 31, in to_rts
> > > > self.dct_qp.to_rtr(attr)
> > > > File "qp.pyx", line 1113, in pyverbs.qp.QP.to_rtr
> > > > pyverbs.pyverbs_error.PyverbsRDMAError: Failed to modify QP state to RTR. Errno: 22, Invalid argument
> > > >
> > > > Ran 1 test in 0.051s
> > > >
> > > > FAILED (errors=1)
> > > >
> > > > ===
> > > > Additional information:
> > > >
> > > > - VF is LAG and VF binds to host.
> > > > - DC tests fail when NIC is in switchdev mode while legacy mode is fine.
> > > > - Tested on 5.12 inbox driver or OFED 5.3, neither is working.
> > > > - 5f:00.0 Ethernet controller [0200]: Mellanox Technologies MT2892 Family [ConnectX-6 Dx] [15b3:101d]
> > > > - firmware-version: 22.30.1004 (MT_0000000536)
> > > >
> > > > I worked a bit tracepoint on 5.12 inbox driver. It seems like there's a firmware
> > > > command error for CREATE_DCT.
> > > >
> > > > I can provide more information if you ask.
> > > >
> > > > Thanks
> > > > WANG Chao
> > > >
> > > Is there any syndrome in kernel log? Try to reproduce with debug log
> > > enabled:
> > > echo -n "func mlx5_cmd_check +p" > /sys/kernel/debug/dynamic_debug/control
> >
> > [26538.391991] mlx5_core 0000:5f:00.2: mlx5_cmd_check:820:(pid 27332): CREATE_DCT(0x710) op_mod(0x0) failed, status bad parameter(0x3), syndrome (0xa22b82)
> >
> This syndrome indicates DCT is not supported in VF LAG mode here.
Is this out of order:
def test_odp_dc_traffic(self):
send_ops_flag = e.IBV_QP_EX_WITH_SEND
self.create_players(OdpDc, qp_count=2, send_ops_flags=send_ops_flag)
self.check_odp_dc_support()
^^^^^^^^^^^^^^^^^^^^^
?
Jason
next prev parent reply other threads:[~2021-05-18 16:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-18 9:25 Mellanox CX6DX switchdev mode VF fails rdma-core tests.test_mlx5_dc.DCTest WANG Chao
2021-05-18 12:30 ` Mark Zhang
2021-05-18 12:44 ` WANG Chao
2021-05-18 13:00 ` Mark Zhang
2021-05-18 16:52 ` Jason Gunthorpe [this message]
2021-05-19 5:19 ` Mark Zhang
2021-05-19 3:14 ` WANG Chao
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=20210518165222.GS1096940@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=chao.wang@ucloud.cn \
--cc=linux-rdma@vger.kernel.org \
--cc=markzhang@nvidia.com \
/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