Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[golan] Set log_max_qp to 1
This is required to work around a bug in some firmware versions.

Signed-off-by: Ameer Mahagneh <ameerm@mellanox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
ameerm93 authored and mcb30 committed Mar 20, 2018
1 parent 3ec2079 commit d5d4bf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/drivers/infiniband/CIB_PRM.h
Expand Up @@ -33,7 +33,7 @@ typedef uint16_t __be16;

#define GOLAN_PCI_CMD_XPORT 7
#define CMD_OWNER_HW 0x1

#define GOLAN_LOG_MAX_QP 0x1
#define IB_NUM_PKEYS 0x20

struct health_buffer {
Expand Down Expand Up @@ -229,8 +229,7 @@ struct golan_hca_cap {
u8 rsvd1[16];
u8 log_max_srq_sz;
u8 log_max_qp_sz;
u8 rsvd2;
u8 log_max_qp;
__be16 log_max_qp;
u8 log_max_strq_sz;
u8 log_max_srqs;
u8 rsvd4[2];
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/infiniband/golan.c
Expand Up @@ -363,7 +363,7 @@ static inline int golan_set_hca_cap(struct golan *golan)
DBGC( golan , "%s caps.log_pg_sz = %d\n", __FUNCTION__, golan->caps.log_pg_sz);
DBGC( golan , "%s caps.log_uar_sz = %d\n", __FUNCTION__, be32_to_cpu(golan->caps.uar_page_sz));
golan->caps.uar_page_sz = 0;

golan->caps.log_max_qp = GOLAN_LOG_MAX_QP;

memcpy(((struct golan_hca_cap *)GET_INBOX(golan, GEN_MBOX)),
&(golan->caps),
Expand Down

0 comments on commit d5d4bf8

Please sign in to comment.