From: Selvin Xavier <selvin.xavier@broadcom.com>
To: jgg@ziepe.ca, dledford@redhat.com
Cc: linux-rdma@vger.kernel.org, Selvin Xavier <selvin.xavier@broadcom.com>
Subject: [PATCH rdma-rc v2 1/3] RDMA/bnxt_re: Disable atomic support on VFs
Date: Wed, 18 Aug 2021 20:25:51 -0700 [thread overview]
Message-ID: <1629343553-5843-2-git-send-email-selvin.xavier@broadcom.com> (raw)
In-Reply-To: <1629343553-5843-1-git-send-email-selvin.xavier@broadcom.com>
Atomics is not currently supported for VFs. Enabling only
for PFs.
Fixes: 35f5ace5dea4 ("RDMA/bnxt_re: Enable global atomic ops if platform supports")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
---
drivers/infiniband/hw/bnxt_re/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c
index a8688a9..0b870be 100644
--- a/drivers/infiniband/hw/bnxt_re/main.c
+++ b/drivers/infiniband/hw/bnxt_re/main.c
@@ -129,7 +129,7 @@ static int bnxt_re_setup_chip_ctx(struct bnxt_re_dev *rdev, u8 wqe_mode)
rdev->rcfw.res = &rdev->qplib_res;
bnxt_re_set_drv_mode(rdev, wqe_mode);
- if (bnxt_qplib_determine_atomics(en_dev->pdev))
+ if (!BNXT_VF(bp) && bnxt_qplib_determine_atomics(en_dev->pdev))
ibdev_info(&rdev->ibdev,
"platform doesn't support global atomics.");
return 0;
--
2.5.5
next prev parent reply other threads:[~2021-08-19 3:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-19 3:25 [PATCH rdma-rc v2 0/3] RDMA/bnxt_re: Bug fixes Selvin Xavier
2021-08-19 3:25 ` Selvin Xavier [this message]
2021-08-19 13:23 ` [PATCH rdma-rc v2 1/3] RDMA/bnxt_re: Disable atomic support on VFs Jason Gunthorpe
2021-08-26 7:51 ` Selvin Xavier
2021-08-19 3:25 ` [PATCH rdma-rc v2 2/3] RDMA/bnxt_re: Add missing spin lock initialization Selvin Xavier
2021-08-19 3:25 ` [PATCH rdma-rc v2 3/3] RDMA/bnxt_re: Fix query SRQ failure Selvin Xavier
2021-08-19 13:18 ` Jason Gunthorpe
2021-08-25 11:32 ` Selvin Xavier
2021-08-19 13:25 ` [PATCH rdma-rc v2 0/3] RDMA/bnxt_re: Bug fixes Jason Gunthorpe
2021-08-19 13:25 ` 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=1629343553-5843-2-git-send-email-selvin.xavier@broadcom.com \
--to=selvin.xavier@broadcom.com \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=linux-rdma@vger.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;
as well as URLs for NNTP newsgroup(s).