All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IB/mlx5: Fix decision to avoid using MAD_IFC command in ISSI > 0 mode
@ 2016-09-07  7:23 David Chang
       [not found] ` <1473232990-22766-1-git-send-email-dchang-IBi9RG/b67k@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: David Chang @ 2016-09-07  7:23 UTC (permalink / raw)
  To: Doug Ledford, Matan Barak, Leon Romanovsky, Majd Dibbiny,
	Eli Cohen, Or Gerlitz
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

When using MAD_IFC command, we should also consider avoiding in
ISSI > 0 mode, otherwise most of the MAD_IFC command features
are deprecated and cannot be used.

Fixes: d603c809ef91 ("IB/mlx5: Fix decision on using MAD_IFC")
Reported-by: Sujith Pandel <sujith_pandel-8PEkshWhKlo@public.gmane.org>
Signed-off-by: David Chang <dchang-IBi9RG/b67k@public.gmane.org>
---
 drivers/infiniband/hw/mlx5/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 1b4094baa2de..0796fb2b04f1 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -288,7 +288,8 @@ __be16 mlx5_get_roce_udp_sport(struct mlx5_ib_dev *dev, u8 port_num,
 
 static int mlx5_use_mad_ifc(struct mlx5_ib_dev *dev)
 {
-	return !MLX5_CAP_GEN(dev->mdev, ib_virt);
+	return !dev->mdev->issi &&
+		!MLX5_CAP_GEN(dev->mdev, ib_virt);
 }
 
 enum {
-- 
2.6.6

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

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-09-13  5:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07  7:23 [PATCH] IB/mlx5: Fix decision to avoid using MAD_IFC command in ISSI > 0 mode David Chang
     [not found] ` <1473232990-22766-1-git-send-email-dchang-IBi9RG/b67k@public.gmane.org>
2016-09-07  7:40   ` Or Gerlitz
2016-09-08 14:07   ` Leon Romanovsky
     [not found]     ` <20160908140752.GN18398-2ukJVAZIZ/Y@public.gmane.org>
2016-09-08 15:24       ` Or Gerlitz
2016-09-09  2:55       ` David Chang
     [not found]         ` <20160909025527.GC3042-5oAczMR2RyTI588T0lkTTQ@public.gmane.org>
2016-09-09 10:39           ` Or Gerlitz
     [not found]             ` <CAJ3xEMhK4e9tD3awWt0uFdg=ptai3c5kCeDUmOBudQ2nu46rRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-10  6:10               ` David Chang
2016-09-10  7:47           ` Leon Romanovsky
     [not found]             ` <20160910074719.GG6415-2ukJVAZIZ/Y@public.gmane.org>
2016-09-11  7:15               ` Leon Romanovsky
     [not found]                 ` <9293c685-7ce9-be56-89fa-a5562a703b81@mellanox.com>
     [not found]                   ` <9293c685-7ce9-be56-89fa-a5562a703b81-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-09-12  4:29                     ` Leon Romanovsky
     [not found]                 ` <20160911071542.GH6415-2ukJVAZIZ/Y@public.gmane.org>
2016-09-12  4:40                   ` David Chang
2016-09-12  6:28                   ` Or Gerlitz
     [not found]                     ` <CAJ3xEMiZ5dssHMW9ypN_86PUOQxuwaRB0G1iv5=Jbzc9w76cLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-12  6:46                       ` Leon Romanovsky
2016-09-13  1:40                   ` David Chang
     [not found]                     ` <20160913014023.GI3042-5oAczMR2RyTI588T0lkTTQ@public.gmane.org>
2016-09-13  5:52                       ` Leon Romanovsky

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.