linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH rdma-core 0/2] bnxt_re/lib: libbnxt_re bug fixes
@ 2019-11-27 10:43 Devesh Sharma
  2019-11-27 10:43 ` [PATCH rdma-core 1/2] bnxt_re/lib: Add remaining pci ids for gen P5 devices Devesh Sharma
  2019-11-27 10:43 ` [PATCH rdma-core 2/2] bnxt_re/lib: Recognize additional 5750x device ID's Devesh Sharma
  0 siblings, 2 replies; 3+ messages in thread
From: Devesh Sharma @ 2019-11-27 10:43 UTC (permalink / raw)
  To: dledford, jgg, leonro; +Cc: nmoreychaisemartin, linux-rdma, Devesh Sharma

This series contains two patches which are important urgent
fixes. The first patch adds missing PCI ids. The second patch
enables adaptors based on new gen p5 chip revs.

Luke Starrett (1):
  bnxt_re/lib: Recognize additional 5750x device ID's

Naresh Kumar PBS (1):
  bnxt_re/lib: Add remaining pci ids for gen P5 devices

 providers/bnxt_re/main.c | 14 +++++++++++---
 providers/bnxt_re/main.h |  5 ++++-
 2 files changed, 15 insertions(+), 4 deletions(-)

-- 
1.8.3.1


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

* [PATCH rdma-core 1/2] bnxt_re/lib: Add remaining pci ids for gen P5 devices
  2019-11-27 10:43 [PATCH rdma-core 0/2] bnxt_re/lib: libbnxt_re bug fixes Devesh Sharma
@ 2019-11-27 10:43 ` Devesh Sharma
  2019-11-27 10:43 ` [PATCH rdma-core 2/2] bnxt_re/lib: Recognize additional 5750x device ID's Devesh Sharma
  1 sibling, 0 replies; 3+ messages in thread
From: Devesh Sharma @ 2019-11-27 10:43 UTC (permalink / raw)
  To: dledford, jgg, leonro
  Cc: nmoreychaisemartin, linux-rdma, Naresh Kumar PBS, Devesh Sharma

From: Naresh Kumar PBS <nareshkumar.pbs@broadcom.com>

Making a change to add pci ids for VF and NPAR devices.

Signed-off-by: Naresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
---
 providers/bnxt_re/main.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/providers/bnxt_re/main.c b/providers/bnxt_re/main.c
index b1194db..e290a07 100644
--- a/providers/bnxt_re/main.c
+++ b/providers/bnxt_re/main.c
@@ -76,9 +76,15 @@ static const struct verbs_match_ent cna_table[] = {
 	CNA(BROADCOM, 0x16F0),  /* BCM58730 */
 	CNA(BROADCOM, 0x16F1),  /* BCM57452 */
 	CNA(BROADCOM, 0x1750),	/* BCM57500 */
+	CNA(BROADCOM, 0x1751),	/* BCM57504 */
+	CNA(BROADCOM, 0x1752),	/* BCM57502 */
+	CNA(BROADCOM, 0x1803),	/* BCM57508 NPAR */
+	CNA(BROADCOM, 0x1804),	/* BCM57504 NPAR */
+	CNA(BROADCOM, 0x1805),	/* BCM57502 NPAR */
+	CNA(BROADCOM, 0x1807),	/* BCM5750x VF */
 	CNA(BROADCOM, 0xD800),  /* BCM880xx VF */
 	CNA(BROADCOM, 0xD802),  /* BCM58802 */
-	CNA(BROADCOM, 0xD804),   /* BCM8804 SR */
+	CNA(BROADCOM, 0xD804),  /* BCM8804 SR */
 	{}
 };
 
-- 
1.8.3.1


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

* [PATCH rdma-core 2/2] bnxt_re/lib: Recognize additional 5750x device ID's
  2019-11-27 10:43 [PATCH rdma-core 0/2] bnxt_re/lib: libbnxt_re bug fixes Devesh Sharma
  2019-11-27 10:43 ` [PATCH rdma-core 1/2] bnxt_re/lib: Add remaining pci ids for gen P5 devices Devesh Sharma
@ 2019-11-27 10:43 ` Devesh Sharma
  1 sibling, 0 replies; 3+ messages in thread
From: Devesh Sharma @ 2019-11-27 10:43 UTC (permalink / raw)
  To: dledford, jgg, leonro
  Cc: nmoreychaisemartin, linux-rdma, Luke Starrett, Devesh Sharma

From: Luke Starrett <luke.starrett@broadcom.com>

BCM5750x family includes 57504 and 57502. Until recently the chip_num
register always conveyed 0x1750 (57508). Recent devices properly
reflect the SKU in the chip_num register. Update Phase5 checks to
reflect this.

Signed-off-by: Luke Starrett <luke.starrett@broadcom.com>
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
---
 providers/bnxt_re/main.c | 6 ++++--
 providers/bnxt_re/main.h | 5 ++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/providers/bnxt_re/main.c b/providers/bnxt_re/main.c
index e290a07..803eff7 100644
--- a/providers/bnxt_re/main.c
+++ b/providers/bnxt_re/main.c
@@ -75,7 +75,7 @@ static const struct verbs_match_ent cna_table[] = {
 	CNA(BROADCOM, 0x16EF),  /* BCM57416 NPAR */
 	CNA(BROADCOM, 0x16F0),  /* BCM58730 */
 	CNA(BROADCOM, 0x16F1),  /* BCM57452 */
-	CNA(BROADCOM, 0x1750),	/* BCM57500 */
+	CNA(BROADCOM, 0x1750),	/* BCM57508 */
 	CNA(BROADCOM, 0x1751),	/* BCM57504 */
 	CNA(BROADCOM, 0x1752),	/* BCM57502 */
 	CNA(BROADCOM, 0x1803),	/* BCM57508 NPAR */
@@ -118,7 +118,9 @@ static const struct verbs_context_ops bnxt_re_cntx_ops = {
 
 bool bnxt_re_is_chip_gen_p5(struct bnxt_re_chip_ctx *cctx)
 {
-	return cctx->chip_num == CHIP_NUM_57500;
+	return (cctx->chip_num == CHIP_NUM_57508 ||
+		cctx->chip_num == CHIP_NUM_57504 ||
+		cctx->chip_num == CHIP_NUM_57502);
 }
 
 /* Context Init functions */
diff --git a/providers/bnxt_re/main.h b/providers/bnxt_re/main.h
index be57349..368297e 100644
--- a/providers/bnxt_re/main.h
+++ b/providers/bnxt_re/main.h
@@ -56,7 +56,10 @@
 
 #define BNXT_RE_UD_QP_HW_STALL	0x400000
 
-#define CHIP_NUM_57500		0x1750
+#define CHIP_NUM_57508		0x1750
+#define CHIP_NUM_57504		0x1751
+#define CHIP_NUM_57502		0x1752
+
 struct bnxt_re_chip_ctx {
 	__u16 chip_num;
 	__u8 chip_rev;
-- 
1.8.3.1


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

end of thread, other threads:[~2019-11-27 10:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-27 10:43 [PATCH rdma-core 0/2] bnxt_re/lib: libbnxt_re bug fixes Devesh Sharma
2019-11-27 10:43 ` [PATCH rdma-core 1/2] bnxt_re/lib: Add remaining pci ids for gen P5 devices Devesh Sharma
2019-11-27 10:43 ` [PATCH rdma-core 2/2] bnxt_re/lib: Recognize additional 5750x device ID's Devesh Sharma

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