mirror of https://github.com/ipxe/ipxe.git
[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>pull/71/head
parent
3ec2079ce2
commit
d5d4bf8870
|
@ -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 {
|
||||
|
@ -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];
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue