diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-01-12 05:01:12 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-01-12 05:01:12 -0500 |
commit | 1f16f116b01c110db20ab808562c8b8bc3ee3d6e (patch) | |
tree | 44db563f64cf5f8d62af8f99a61e2b248c44ea3a /drivers/infiniband/ulp/isert/ib_isert.c | |
parent | 03724ac3d48f8f0e3caf1d30fa134f8fd96c94e2 (diff) | |
parent | f9eccf24615672896dc13251410c3f2f33a14f95 (diff) |
Merge branches 'clockevents/4.4-fixes' and 'clockevents/4.5-fixes' of http://git.linaro.org/people/daniel.lezcano/linux into timers/urgent
Pull in fixes from Daniel Lezcano:
- Fix the vt8500 timer leading to a system lock up when dealing with too
small delta (Roman Volkov)
- Select the CLKSRC_MMIO when the fsl_ftm_timer is enabled with COMPILE_TEST
(Daniel Lezcano)
- Prevent to compile timers using the 'iomem' API when the architecture has
not HAS_IOMEM set (Richard Weinberger)
Diffstat (limited to 'drivers/infiniband/ulp/isert/ib_isert.c')
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index dfbbbb28090b..8a51c3b5d657 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
@@ -157,16 +157,9 @@ isert_create_qp(struct isert_conn *isert_conn, | |||
157 | attr.recv_cq = comp->cq; | 157 | attr.recv_cq = comp->cq; |
158 | attr.cap.max_send_wr = ISERT_QP_MAX_REQ_DTOS; | 158 | attr.cap.max_send_wr = ISERT_QP_MAX_REQ_DTOS; |
159 | attr.cap.max_recv_wr = ISERT_QP_MAX_RECV_DTOS + 1; | 159 | attr.cap.max_recv_wr = ISERT_QP_MAX_RECV_DTOS + 1; |
160 | /* | 160 | attr.cap.max_send_sge = device->dev_attr.max_sge; |
161 | * FIXME: Use devattr.max_sge - 2 for max_send_sge as | 161 | isert_conn->max_sge = min(device->dev_attr.max_sge, |
162 | * work-around for RDMA_READs with ConnectX-2. | 162 | device->dev_attr.max_sge_rd); |
163 | * | ||
164 | * Also, still make sure to have at least two SGEs for | ||
165 | * outgoing control PDU responses. | ||
166 | */ | ||
167 | attr.cap.max_send_sge = max(2, device->dev_attr.max_sge - 2); | ||
168 | isert_conn->max_sge = attr.cap.max_send_sge; | ||
169 | |||
170 | attr.cap.max_recv_sge = 1; | 163 | attr.cap.max_recv_sge = 1; |
171 | attr.sq_sig_type = IB_SIGNAL_REQ_WR; | 164 | attr.sq_sig_type = IB_SIGNAL_REQ_WR; |
172 | attr.qp_type = IB_QPT_RC; | 165 | attr.qp_type = IB_QPT_RC; |