From: Sagi Grimberg <sagi-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
To: Johannes Thumshirn <jthumshirn-l3A5Bk7waGM@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
Thomas Bogendoerfer <tbogendoerfer-l3A5Bk7waGM@public.gmane.org>,
Bart Van Assche
<Bart.VanAssche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>,
Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>,
dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: crash in 4.14-rc1 with IPoIB
Date: Wed, 20 Sep 2017 13:37:28 +0300 [thread overview]
Message-ID: <7aac2d78-462b-c9ad-4443-9ec670a27b74@grimberg.me> (raw)
In-Reply-To: <20170920095339.zhfymeyfbhiyepz5-qw2SdCWA0PpjqqEj2zc+bA@public.gmane.org>
> Hi folks,
>
> I wanted to try out Christoph's NVMe multipathing patchset on my NVMe OmniPath
> setup and merged it into 4.14-rc1. On bootup I stumbled upon that splat and no
> RDMA operation was possible:
...
> is_valid_mcast_lid.isra.23+0xfb/0x110
>
> (gdb) l *(is_valid_mcast_lid+0xfb)
> 0x229b is in is_valid_mcast_lid (drivers/infiniband/core/verbs.c:1649).
> 1644 /* If QP state >= init, it is assigned to a port and we can check this
> 1645 * port only.
> 1646 */
> 1647 if (!ib_query_qp(qp, &attr, IB_QP_STATE | IB_QP_PORT, &init_attr)) {
> 1648 if (attr.qp_state >= IB_QPS_INIT) {
> 1649 if (qp->device->get_link_layer(qp->device, attr.port_num) !=
> 1650 IB_LINK_LAYER_INFINIBAND)
> 1651 return true;
> 1652 goto lid_check;
> 1653 }
> (gdb)
Why isn't ipoib uses the generic rdma_port_get_link_layer?
Does this help?
--
diff --git a/drivers/infiniband/core/verbs.c
b/drivers/infiniband/core/verbs.c
index ee9e27dc799b..f2c70afea238 100644
--- a/drivers/infiniband/core/verbs.c
+++ b/drivers/infiniband/core/verbs.c
@@ -1646,7 +1646,7 @@ static bool is_valid_mcast_lid(struct ib_qp *qp,
u16 lid)
*/
if (!ib_query_qp(qp, &attr, IB_QP_STATE | IB_QP_PORT,
&init_attr)) {
if (attr.qp_state >= IB_QPS_INIT) {
- if (qp->device->get_link_layer(qp->device,
attr.port_num) !=
+ if (rdma_port_get_link_layer(qp->device,
attr.port_num) !=
IB_LINK_LAYER_INFINIBAND)
return true;
goto lid_check;
--
--
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
next prev parent reply other threads:[~2017-09-20 10:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-20 9:53 crash in 4.14-rc1 with IPoIB Johannes Thumshirn
[not found] ` <20170920095339.zhfymeyfbhiyepz5-qw2SdCWA0PpjqqEj2zc+bA@public.gmane.org>
2017-09-20 10:37 ` Sagi Grimberg [this message]
[not found] ` <7aac2d78-462b-c9ad-4443-9ec670a27b74-NQWnxTmZq1alnMjI0IkVqw@public.gmane.org>
2017-09-20 10:57 ` Johannes Thumshirn
2017-09-20 11:35 ` Hal Rosenstock
[not found] ` <be30c079-6513-627f-0276-6556e6f9eea5-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-09-20 11:51 ` Sagi Grimberg
2017-09-20 16:32 ` Jason Gunthorpe
[not found] ` <20170920163237.GD536-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-22 17:27 ` Doug Ledford
[not found] ` <1506101272.5172.11.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-09-22 19:48 ` Jason Gunthorpe
[not found] ` <20170922194834.GA26479-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-22 20:43 ` Leon Romanovsky
2017-09-22 21:06 ` Doug Ledford
[not found] ` <1506114386.120853.2.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-09-22 21:17 ` Jason Gunthorpe
[not found] ` <20170922211727.GA2348-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-09-22 22:42 ` Doug Ledford
[not found] ` <1506120161.120853.10.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-09-23 7:38 ` Leon Romanovsky
[not found] ` <20170923073843.GX5788-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-23 16:17 ` Estrin, Alex
[not found] ` <F3529576D8E232409F431C309E29399336CD972A-8k97q/ur5Z1cIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2017-09-23 17:29 ` Leon Romanovsky
[not found] ` <20170923172935.GZ5788-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-23 19:20 ` Estrin, Alex
[not found] ` <F3529576D8E232409F431C309E29399336CD9762-8k97q/ur5Z1cIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2017-09-24 4:00 ` Leon Romanovsky
[not found] ` <20170924040012.GA21110-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-09-24 5:59 ` Sagi Grimberg
2017-09-24 20:30 ` Jason Gunthorpe
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=7aac2d78-462b-c9ad-4443-9ec670a27b74@grimberg.me \
--to=sagi-nqwnxtmzq1alnmji0ikvqw@public.gmane.org \
--cc=Bart.VanAssche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=hch-jcswGhMUV9g@public.gmane.org \
--cc=jthumshirn-l3A5Bk7waGM@public.gmane.org \
--cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=tbogendoerfer-l3A5Bk7waGM@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.