diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-21 13:26:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-21 13:26:24 -0400 |
commit | 018c6837f3e63b45163d55a1668d9f8e6fdecf6e (patch) | |
tree | 0d960bf956f07b2dc0302acd276061ac0f61102e /drivers/infiniband/ulp | |
parent | 84da111de0b4be15bd500deff773f5116f39f7be (diff) | |
parent | 3eca7fc2d8d1275d9cf0c709f0937becbfcf6d96 (diff) |
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
Pull RDMA subsystem updates from Jason Gunthorpe:
"This cycle mainly saw lots of bug fixes and clean up code across the
core code and several drivers, few new functional changes were made.
- Many cleanup and bug fixes for hns
- Various small bug fixes and cleanups in hfi1, mlx5, usnic, qed,
bnxt_re, efa
- Share the query_port code between all the iWarp drivers
- General rework and cleanup of the ODP MR umem code to fit better
with the mmu notifier get/put scheme
- Support rdma netlink in non init_net name spaces
- mlx5 support for XRC devx and DC ODP"
* tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma: (99 commits)
RDMA: Fix double-free in srq creation error flow
RDMA/efa: Fix incorrect error print
IB/mlx5: Free mpi in mp_slave mode
IB/mlx5: Use the original address for the page during free_pages
RDMA/bnxt_re: Fix spelling mistake "missin_resp" -> "missing_resp"
RDMA/hns: Package operations of rq inline buffer into separate functions
RDMA/hns: Optimize cmd init and mode selection for hip08
IB/hfi1: Define variables as unsigned long to fix KASAN warning
IB/{rdmavt, hfi1, qib}: Add a counter for credit waits
IB/hfi1: Add traces for TID RDMA READ
RDMA/siw: Relax from kmap_atomic() use in TX path
IB/iser: Support up to 16MB data transfer in a single command
RDMA/siw: Fix page address mapping in TX path
RDMA: Fix goto target to release the allocated memory
RDMA/usnic: Avoid overly large buffers on stack
RDMA/odp: Add missing cast for 32 bit
RDMA/hns: Use devm_platform_ioremap_resource() to simplify code
Documentation/infiniband: update name of some functions
RDMA/cma: Fix false error message
RDMA/hns: Fix wrong assignment of qp_access_flags
...
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.h | 7 | ||||
-rw-r--r-- | drivers/infiniband/ulp/srpt/ib_srpt.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h index 39bf213444cb..52ce63592dcf 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.h +++ b/drivers/infiniband/ulp/iser/iscsi_iser.h | |||
@@ -102,9 +102,10 @@ | |||
102 | 102 | ||
103 | /* Default support is 512KB I/O size */ | 103 | /* Default support is 512KB I/O size */ |
104 | #define ISER_DEF_MAX_SECTORS 1024 | 104 | #define ISER_DEF_MAX_SECTORS 1024 |
105 | #define ISCSI_ISER_DEF_SG_TABLESIZE ((ISER_DEF_MAX_SECTORS * 512) >> SHIFT_4K) | 105 | #define ISCSI_ISER_DEF_SG_TABLESIZE \ |
106 | /* Maximum support is 8MB I/O size */ | 106 | ((ISER_DEF_MAX_SECTORS * SECTOR_SIZE) >> SHIFT_4K) |
107 | #define ISCSI_ISER_MAX_SG_TABLESIZE ((16384 * 512) >> SHIFT_4K) | 107 | /* Maximum support is 16MB I/O size */ |
108 | #define ISCSI_ISER_MAX_SG_TABLESIZE ((32768 * SECTOR_SIZE) >> SHIFT_4K) | ||
108 | 109 | ||
109 | #define ISER_DEF_XMIT_CMDS_DEFAULT 512 | 110 | #define ISER_DEF_XMIT_CMDS_DEFAULT 512 |
110 | #if ISCSI_DEF_XMIT_CMDS_MAX > ISER_DEF_XMIT_CMDS_DEFAULT | 111 | #if ISCSI_DEF_XMIT_CMDS_MAX > ISER_DEF_XMIT_CMDS_DEFAULT |
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 1a039f16d315..e25c70a56be6 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c | |||
@@ -1767,8 +1767,8 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch) | |||
1767 | goto out; | 1767 | goto out; |
1768 | 1768 | ||
1769 | retry: | 1769 | retry: |
1770 | ch->cq = ib_alloc_cq(sdev->device, ch, ch->rq_size + sq_size, | 1770 | ch->cq = ib_alloc_cq_any(sdev->device, ch, ch->rq_size + sq_size, |
1771 | 0 /* XXX: spread CQs */, IB_POLL_WORKQUEUE); | 1771 | IB_POLL_WORKQUEUE); |
1772 | if (IS_ERR(ch->cq)) { | 1772 | if (IS_ERR(ch->cq)) { |
1773 | ret = PTR_ERR(ch->cq); | 1773 | ret = PTR_ERR(ch->cq); |
1774 | pr_err("failed to create CQ cqe= %d ret= %d\n", | 1774 | pr_err("failed to create CQ cqe= %d ret= %d\n", |