[PATCH 1/9] IB/qib: Remove ibport and use rdmavt version

2016-01-06 Thread Dennis Dalessandro
Marciniszyn Reviewed-by: Dennis Dalessandro Reviewed-by: Ira Weiny Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/qib_driver.c |4 drivers/infiniband/hw/qib/qib_iba6120.c |8 - drivers/infiniband/hw/qib/qib_iba7322.c |2 drivers/infiniband/hw/qib

[PATCH 7/9] IB/qib: Remove qib_query_device function

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi Removed qib_query_device function to use rdmavt rvt_query_device function The device attributes still need to be filled in by the driver. Reviewed-by: Dennis Dalessandro Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/qib_verbs.c | 102

[PATCH 8/9] IB/qib: Use rdmavt send and receive flags

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi Use the definitions of the s_flags and r_flags which are now in rdmavt. Reviewed-by: Dennis Dalessandro Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/qib_driver.c | 10 +- drivers/infiniband/hw/qib

[PATCH 9/9] IB/qib: Remove create qp and create qp table functionality

2016-01-06 Thread Dennis Dalessandro
-by: Dennis Dalessandro Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/qib.h |3 drivers/infiniband/hw/qib/qib_qp.c| 345 +++-- drivers/infiniband/hw/qib/qib_verbs.c | 48 ++--- drivers/infiniband/hw/qib/qib_verbs.h | 19 +- 4 files

[PATCH 6/9] IB/qib: Delete QIB user context allocation and de-alloction functions

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi IB user context alloc and dealloc functions have been added to rdmavt. Delete the QIB user context alloc/dealloc functions and use the ones in rdmavt. Reviewed-by: Ira Weiny Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/qib_verbs.c | 44 ++---

[PATCH 2/9] IB/qib: Implement qib support for AH notification

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi Additional work is required to create an AH. This patch adds support to set the VL correctly. Reviewed-by: Mike Marciniszyn Reviewed-by: Dennis Dalessandro Reviewed-by: Ira Weiny Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/qib_verbs.c | 19

[PATCH 3/9] IB/qib: Remove mmap from qib

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi Since mmap functionality has been moved into rdmavt, its time for qib to use that. Reviewed-by: Dennis Dalessandro Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/Makefile|2 drivers/infiniband/hw/qib/qib_cq.c| 18 ++- drivers/infiniband/hw

[PATCH 4/9] IB/qib: Use rdmavt pkey verbs function

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi Remove qib query pkey function which is no longer needed as this is now being done in rdmavt. The allocation and maintenance of the list still resides in the driver. Reviewed-by: Dennis Dalessandro Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/qib_verbs.c

[PATCH 5/9] IB/qib: Remove qpn, qp tables and related variables from qib

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi This patch removes the private queue pair structure and the table which holds the queue pair numbers in favor of using what is provided by rdmavt. Reviewed-by: Dennis Dalessandro Signed-off-by: Harish Chegondi --- drivers/infiniband/hw/qib/qib_qp.c| 120

[PATCH 0/9] Start to rely on rdmavt for qp support and other verbs

2016-01-06 Thread Dennis Dalessandro
This patch set removes the ibport from qib and starts to add in more support for rdamvt provided verbs functionality. Included is AH notification, pkey support, and queue pair creation. This patchset builds on the "Start to add qp support to rdmavt and other verbs" patchset. --- Harish Chegondi (

[PATCH 4/6] IB/rdmavt: Export reset_qp in rdmavt

2016-01-06 Thread Dennis Dalessandro
Until all queue pair functionality is moved to rdmavt we need to provide access to the reset function. This is only temporary and will be reverted back to a static, non exported function in the end. Reviewed-by: Ira Weiny Reviewed-by: Harish Chegondi Signed-off-by: Dennis Dalessandro

[PATCH 1/6] IB/rdmavt: Add IB user context allocation and de-alloction functions

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi Adding IB user context alloc and dealloc functions to rdmavt so that the drivers that use rdmavt can use these functions instead of defining their own functions. Reviewed-by: Ira Weiny Signed-off-by: Harish Chegondi --- drivers/infiniband/sw/rdmavt/vt.c | 20 ++

[PATCH 3/6] IB/rdmavt: Add create queue pair functionality

2016-01-06 Thread Dennis Dalessandro
Add create queue pair verbs call as well as supporting functions. Reviewed-by: Ira Weiny Reviewed-by: Harish Chegondi Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/qp.c | 425 +++-- drivers/infiniband/sw/rdmavt/vt.c |1 include/rdma

[PATCH 6/6] IB/rdmavt: Add support for rvt_query_device function

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi With this commit, the drivers using rdmavt need not define query_device function. But they should fill in the IB device attributes structure rvt_dev_info.dparms.props Reviewed-by: Dennis Dalessandro Signed-off-by: Harish Chegondi --- drivers/infiniband/sw/rdmavt/vt.c

[PATCH 2/6] IB/rdmavt: Add R and S flags for queue pairs

2016-01-06 Thread Dennis Dalessandro
Use the flags originally provided for hfi1 in the rdmavt driver. These will be made available to drivers in the qp header file. Reviewed-by: Harish Chegondi Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- include/rdma/rdmavt_qp.h | 80

[PATCH 5/6] IB/rdmavt: Allow reserving just one qpn

2016-01-06 Thread Dennis Dalessandro
From: Harish Chegondi qib needs to reserve only one qpn for non-verbs stuff. Also fixed the for loop to reserve the end qpn. Reviewed-by: Dennis Dalessandro Signed-off-by: Harish Chegondi --- drivers/infiniband/sw/rdmavt/qp.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

[PATCH 0/6] Start to add qp support to rdmavt and other verbs

2016-01-06 Thread Dennis Dalessandro
This patch continues adding the support for queue pairs in rdmavt. It also adds the create queue pair, user context alloc, dealloc, and query device verbs. This patchset builds on the "Begin to use rdmavt for qib" patchset. --- Dennis Dalessandro (3): IB/rdmavt: Add R and S

[PATCH v3 10/10] IB/qib: Remove srq from qib

2016-01-06 Thread Dennis Dalessandro
Remove srq from qib now that it has been moved into rdmavt. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Reviewed-by: Harish Chegondi Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_qp.c|2 +- drivers/infiniband/hw/qib/qib_ruc.c |4 ++-- drivers

[PATCH v3 09/10] IB/qib: Use address handle in rdmavt and remove from qib

2016-01-06 Thread Dennis Dalessandro
Original patch from Kamal Heib , split apart from original. Remove AH from qib and use rdmavt version. Reviewed-by: Ira Weiny Signed-off-by: Kamal Heib Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_iba7322.c |2 drivers/infiniband/hw/qib/qib_mad.c |2

[PATCH v3 08/10] IB/qib: Remove qp and mr functionality from qib

2016-01-06 Thread Dennis Dalessandro
Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v2: Handle removal of rvt_reg_phys_mr() drivers/infiniband/hw/qib/Makefile |4 drivers/infiniband/hw/qib/qib.h | 14 - drivers/infiniband/hw/qib/qib_cq.c |2 drivers/infiniband/hw/qib

[PATCH v3 05/10] IB/qib: Use rdmavt lid defines in qib

2016-01-06 Thread Dennis Dalessandro
-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_common.h |2 -- drivers/infiniband/hw/qib/qib_qp.c |1 + drivers/infiniband/hw/qib/qib_verbs.c |4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_common.h b/drivers

[PATCH v3 06/10] IB/qib: Remove driver specific members from qib qp type

2016-01-06 Thread Dennis Dalessandro
-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_qp.c| 75 - drivers/infiniband/hw/qib/qib_rc.c|7 ++- drivers/infiniband/hw/qib/qib_ruc.c | 18 +--- drivers/infiniband/hw/qib/qib_sdma.c | 17 +-- drivers/infiniband/hw/qib

[PATCH v3 07/10] IB/qib: Add device specific info prints

2016-01-06 Thread Dennis Dalessandro
Implement get_card_name and get_pci_dev helper functions for rdmavt for qib. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib.h|2 ++ drivers/infiniband/hw/qib/qib_driver.c | 16 drivers

[PATCH v3 01/10] IB/qib: Begin to use rdmavt for verbs

2016-01-06 Thread Dennis Dalessandro
. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/Kconfig |2 +- drivers/infiniband/hw/qib/qib.h |1 + drivers/infiniband/hw/qib/qib_init.c |5 +++-- drivers/infiniband/hw/qib/qib_intr.c |2 +- drivers

[PATCH v3 02/10] IB/qib: Remove dma.c and use rdmavt version of dma functions

2016-01-06 Thread Dennis Dalessandro
This patch removes the qib_dma.c file and uses the version which has been added to rdmavt. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/Makefile|2 +- drivers/infiniband/hw/qib/qib_verbs.c |3 ++- drivers

[PATCH v3 00/10] Begin to use rdmavt for qib

2016-01-06 Thread Dennis Dalessandro
nto k.o/for-4.5 commit: 59caae Handle removal of rvt_reg_phys_mr() --- Dennis Dalessandro (10): IB/qib: Begin to use rdmavt for verbs IB/qib: Remove dma.c and use rdmavt version of dma functions IB/qib: Use rdmavt protection domain IB/qib: Remove most uses of QIB_PER

[PATCH v3 04/10] IB/qib: Remove most uses of QIB_PERMISSIVE_LID and QIB_MULTICAST_LID_BASE

2016-01-06 Thread Dennis Dalessandro
Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_driver.c |2 +- drivers/infiniband/hw/qib/qib_mad.c|4 ++-- drivers/infiniband/hw/qib/qib_qp.c |5 +++-- drivers/infiniband/hw/qib/qib_ud.c | 11 ++- drivers/infiniband/hw/qib

[PATCH v3 03/10] IB/qib: Use rdmavt protection domain

2016-01-06 Thread Dennis Dalessandro
Remove protection domain datastructure from qib and use rdmavts version. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_keys.c |6 ++- drivers/infiniband/hw/qib/qib_mr.c|2 + drivers/infiniband/hw/qib

[PATCH v3 32/36] IB/rdmavt: Add driver notification for new AH

2016-01-06 Thread Dennis Dalessandro
Drivers may need to do some work once an address handle has been created. Add a driver function for this purpose. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Reviewed-by: Harish Chegondi Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/ah.c |7 +- include

[PATCH v3 28/36] IB/rdmavt: Add common LID defines to rdmavt

2016-01-06 Thread Dennis Dalessandro
From: Kamal Heib Original patch is from Kamal Heib . It has been split into separate patches. This patch adds RVT_PERMISSIVE_LID and RVT_MULTICAST_LID_BASE to rdmavt. Reviewed-by: Ira Weiny Signed-off-by: Kamal Heib Signed-off-by: Dennis Dalessandro --- include/rdma/rdma_vt.h |3 +++ 1

[PATCH v3 36/36] IB/rdmavt: Add pkey support

2016-01-06 Thread Dennis Dalessandro
manipulate this long before registering with it. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/vt.c | 46 - include/rdma/rdma_vt.h| 38

[PATCH v3 29/36] IB/rdmavt: Add AH to rdmavt

2016-01-06 Thread Dennis Dalessandro
Weiny Signed-off-by: Kamal Heib Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/ah.c | 98 +++-- drivers/infiniband/sw/rdmavt/vt.c |5 ++ include/rdma/rdma_vt.h| 17 ++ 3 files changed, 115 insertions(+), 5 deletions

[PATCH v3 31/36] IB/rdmavt: Add an ibport data structure to rdmavt

2016-01-06 Thread Dennis Dalessandro
: Harish Chegondi Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/vt.c | 24 + include/rdma/rdma_vt.h| 66 - 2 files changed, 89 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/sw/rdmavt/vt.c b

[PATCH v3 30/36] IB/rdmavt: Move SRQ data structure into rdmavt

2016-01-06 Thread Dennis Dalessandro
Patch moves the srq data structure into rdmavt in preparation for removal from qib and hfi1 which will follow in subsequent patches. Reviewed-by: Ira Weiny Reviewed-by: Harish Chegondi Signed-off-by: Dennis Dalessandro --- include/rdma/rdma_vt.h | 13 + 1 files changed, 13

[PATCH v3 35/36] IB/rdmavt: Add mmap related functions

2016-01-06 Thread Dennis Dalessandro
The mmap data structure was moved in a previous commit. This patch now pulls in the related functions. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/mmap.c | 140 +++ drivers/infiniband

[PATCH v3 34/36] IB/rdmavt: Initialize and teardown of qpn table

2016-01-06 Thread Dennis Dalessandro
Add table init as well as teardown for handling qpn maps. Drivers can still provide this functionality by setting the QP_INIT_DRIVER bit. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/qp.c | 197

[PATCH v3 26/36] IB/rdmavt: Move memory registration into rdmavt

2016-01-06 Thread Dennis Dalessandro
Use the memory registration routines in hfi1 and move them to rdmavt. A follow on patch will address removing the duplicated code in the hfi1 and qib drivers. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v1: Remove rvt_reg_phys_mr

[PATCH v3 27/36] IB/rdmavt: Do not use rvt prints which rely on driver too early

2016-01-06 Thread Dennis Dalessandro
Trying to print debug and error messages with the rdmavt helpers will not work out so well if the drivers have not provided the get_card and get pci functions. Use the normal pr_error instead until we can check this. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis

[PATCH v3 24/36] IB/rdmavt: Add device specific info prints

2016-01-06 Thread Dennis Dalessandro
Follow hfi1's example for printing information about the driver and incorporate into rdmavt. This requires two new functions to be provided by the driver, one to get_card_name and one to get_pci_dev. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Daless

[PATCH v3 20/36] IB/rdmavt: Add post send and recv stubs

2016-01-06 Thread Dennis Dalessandro
This adds the post sned and recv function stubs. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Fix typo in subject Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/qp.c | 62

[PATCH v3 25/36] IB/rdmavt: Add the start of capability flags

2016-01-06 Thread Dennis Dalessandro
Drivers will need a set of flags to dictate behavior to rdmavt. This patch adds a placeholder and a spot for it to live, as well as a few flags that will be used. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- include/rdma/rdma_vt.h | 12

[PATCH v3 23/36] IB/rdmavt: Move driver helper functions to a common structure

2016-01-06 Thread Dennis Dalessandro
Drivers are going to need to provide multiple functions for rdmavt to call in to. We already have one, so go ahead and push this into a data structure designated for driver supplied functions. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- drivers

[PATCH v3 22/36] IB/rdmavt: Add queue pair data structure to rdmavt

2016-01-06 Thread Dennis Dalessandro
Add queue pair data structure as well as supporting structures to rdmavt. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v1: Rename rvt_sge.m => rvt_sge.cur_map Rename rvt_sge.n => rvt_sge.cur drivers/infiniband/sw/rdmavt/qp.h

[PATCH v3 21/36] IB/rdmavt: Move MR datastructures into rvt

2016-01-06 Thread Dennis Dalessandro
: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v1: Rename rdi.lk_table => rdi.lkey_table include/rdma/rdma_vt.h | 53 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/include/rdma/rdma_vt.h b/include/r

[PATCH v3 19/36] IB/rdmavt: Add completion queue function stubs

2016-01-06 Thread Dennis Dalessandro
Create stubs for completion queue creation, polling, resizing, calling for notification, and destroying. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2

[PATCH v3 18/36] IB/rdmavt: Add get port immutable stub

2016-01-06 Thread Dennis Dalessandro
This adds the get port immutable verbs call. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/vt.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff

[PATCH v3 17/36] IB/rdmavt: Add mmap stub

2016-01-06 Thread Dennis Dalessandro
Adds the stub for the mmap verbs call. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2 + drivers/infiniband/sw/rdmavt/mmap.c | 60

[PATCH v3 16/36] IB/rdmavt: Add process MAD stub

2016-01-06 Thread Dennis Dalessandro
This adds the stub for process mad. More study is needed to determine the final MAD interaction between the driver and rvt. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/Makefile |2 - drivers/infiniband/sw/rdmavt

[PATCH v3 15/36] IB/rdmavt: Add multicast stubs

2016-01-06 Thread Dennis Dalessandro
Adds the function stubs for attach and detach multicast. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2 + drivers/infiniband/sw/rdmavt/mcast.c | 58

[PATCH v3 14/36] IB/rdmavt: Add SRQ stubs

2016-01-06 Thread Dennis Dalessandro
Adds the stubs for create, modify, query, and destory for shared request queues. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2 - drivers/infiniband

[PATCH v3 13/36] IB/rdmavt: Add memory region stubs

2016-01-06 Thread Dennis Dalessandro
Adds the function stubs for allocating, and registering memory regions, as well as deregistering them. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP Changes since v2: Remove rvt_reg_phys_mr

[PATCH v3 11/36] IB/rdmavt: Add queue pair function stubs

2016-01-06 Thread Dennis Dalessandro
Adds the stubs for create, modify, destroy and query functions for queue pairs. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2 - drivers/infiniband/sw

[PATCH v3 12/36] IB/rdmavt: Add address handle stubs

2016-01-06 Thread Dennis Dalessandro
Adds the stubs for create, destroy, modify, and query of the address handle. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |3 - drivers/infiniband/sw

[PATCH v3 10/36] IB/rdmavt: Alloc and dealloc ucontexts

2016-01-06 Thread Dennis Dalessandro
Add the stubs to allocate and deallocate user contexts. This will be handled completely by rvt. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/vt.c | 22

[PATCH v3 09/36] IB/rdmavt: Add query gid stub

2016-01-06 Thread Dennis Dalessandro
The handler for query gid operates along the same lines as the query pkey handler. The driver will take care to keep the guid table updated. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/vt.c | 22

[PATCH v3 08/36] IB/rdmavt: Add pkey query stub

2016-01-06 Thread Dennis Dalessandro
The pkey table will reside in the rvt structure but it will be modified only when the driver requests then rvt will simply read the value to return in the query. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/vt.c | 21

[PATCH v3 07/36] IB/rdmavt: Add query and modify port stubs

2016-01-06 Thread Dennis Dalessandro
. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Fix comment style for rvt_query_port Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/vt.c | 48 + 1 files changed, 48 insertions(+), 0

[PATCH v3 05/36] IB/rdmavt: Macroize override checks during driver registration

2016-01-06 Thread Dennis Dalessandro
Add a macro to cut down on writing the same lines over and over again for what will be a large number of functions that will be supported. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change CDR macro to CHECK_DRIVER_OVERRIDE to

[PATCH v3 06/36] IB/rdmavt: Add query and modify device stubs

2016-01-06 Thread Dennis Dalessandro
Adds the stubs which will handle the query and modify device functions. At this time the only intention is to support changing the node desc and the guid via these calls. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs

[PATCH v3 04/36] IB/rdmavt: Add ib core device attributes to rvt driver params list

2016-01-06 Thread Dennis Dalessandro
Instead of trying to handle each parameter separately, add ib_device_attr to rvt_driver_params. This means drivers will fill this in and pass to the rvt registration function. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: remove

[PATCH v3 03/36] IB/rdmavt: Add protection domain to rdmavt.

2016-01-06 Thread Dennis Dalessandro
Add datastructure for and allocation/deallocation of protection domains for RDMAVT. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v1: update comment about protection domain limit drivers/infiniband/sw/rdmavt/Makefile |3

[PATCH v3 02/36] IB/rdmavt: Consolidate dma ops in rdmavt.

2016-01-06 Thread Dennis Dalessandro
This patch adds dma functions to rdmavt. The source is hfi1's version of dma.c which will be removed by a subsequent hfi1 patch. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v1: return 0 in rvt_map_sg instead of BAD_DMA_ADDRESS r

[PATCH v3 01/36] IB/rdmavt: Create module framework and handle driver registration

2016-01-06 Thread Dennis Dalessandro
core happens in rdma_vt, most of the work is still done in the drivers themselves. This will be changing in a follow on patch this is just laying the groundwork for this infrastructure. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes sin

[PATCH v3 00/36] Add rdma verbs transport library

2016-01-06 Thread Dennis Dalessandro
new memory registration API") Changes since v2: Rebased onto k.o/for-4.5 commit: 59caaed7a72a0e3750dfb84636dae6b781559310 Add back in dma.h include in dma.c due to sparse error Handle the removal of reg_phys_mr() --- Dennis Dalessandro (34): I

Re: [RFC] Generic InfiniBand transport done in software

2015-12-29 Thread Dennis Dalessandro
On Tue, Dec 29, 2015 at 07:38:30PM +0200, Moni Shoua wrote: This is not a question if I can hook Soft RoCE driver into this framework. In fact, I can't think of an IB driver that can't use this framework. What this framework offers is just another hop from ib_core the real driver. Where is the

[PATCH v2 08/10] IB/qib: Remove qp and mr functionality from qib

2015-12-28 Thread Dennis Dalessandro
Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/Makefile |4 drivers/infiniband/hw/qib/qib.h | 14 - drivers/infiniband/hw/qib/qib_cq.c |2 drivers/infiniband/hw/qib/qib_driver.c |4 drivers/infiniband/hw/qib/qib_keys.c

[PATCH v2 10/10] IB/qib: Remove srq from qib

2015-12-28 Thread Dennis Dalessandro
Remove srq from qib now that it has been moved into rdmavt. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Reviewed-by: Harish Chegondi Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_qp.c|2 +- drivers/infiniband/hw/qib/qib_ruc.c |4 ++-- drivers

[PATCH v2 09/10] IB/qib: Use address handle in rdmavt and remove from qib

2015-12-28 Thread Dennis Dalessandro
Original patch from Kamal Heib , split apart from original. Remove AH from qib and use rdmavt version. Reviewed-by: Ira Weiny Signed-off-by: Kamal Heib Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_iba7322.c |2 drivers/infiniband/hw/qib/qib_mad.c |2

[PATCH v2 07/10] IB/qib: Add device specific info prints

2015-12-28 Thread Dennis Dalessandro
Implement get_card_name and get_pci_dev helper functions for rdmavt for qib. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib.h|2 ++ drivers/infiniband/hw/qib/qib_driver.c | 16 drivers

[PATCH v2 00/10] Begin to use rdmavt for qib

2015-12-28 Thread Dennis Dalessandro
implementation. This patch builds on the v2 "Add rdma verbs transport library" patch. Changes since v1: Rebased onto what appears to be the latest branch on Doug's kernel.org repo (k.o/for-4.4-rc). I can rebase onto something else if needed. --- Dennis Dalessandro (10): I

[PATCH v2 03/10] IB/qib: Use rdmavt protection domain

2015-12-28 Thread Dennis Dalessandro
Remove protection domain datastructure from qib and use rdmavts version. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_keys.c |6 ++- drivers/infiniband/hw/qib/qib_mr.c|2 + drivers/infiniband/hw/qib

[PATCH v2 06/10] IB/qib: Remove driver specific members from qib qp type

2015-12-28 Thread Dennis Dalessandro
-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_qp.c| 75 - drivers/infiniband/hw/qib/qib_rc.c|7 ++- drivers/infiniband/hw/qib/qib_ruc.c | 18 +--- drivers/infiniband/hw/qib/qib_sdma.c | 17 +-- drivers/infiniband/hw/qib

[PATCH v2 01/10] IB/qib: Begin to use rdmavt for verbs

2015-12-28 Thread Dennis Dalessandro
. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/Kconfig |2 +- drivers/infiniband/hw/qib/qib.h |1 + drivers/infiniband/hw/qib/qib_init.c |5 +++-- drivers/infiniband/hw/qib/qib_intr.c |2 +- drivers

[PATCH v2 05/10] IB/qib: Use rdmavt lid defines in qib

2015-12-28 Thread Dennis Dalessandro
-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_common.h |2 -- drivers/infiniband/hw/qib/qib_qp.c |1 + drivers/infiniband/hw/qib/qib_verbs.c |4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_common.h b/drivers

[PATCH v2 04/10] IB/qib: Remove most uses of QIB_PERMISSIVE_LID and QIB_MULTICAST_LID_BASE

2015-12-28 Thread Dennis Dalessandro
Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/qib_driver.c |2 +- drivers/infiniband/hw/qib/qib_mad.c|4 ++-- drivers/infiniband/hw/qib/qib_qp.c |5 +++-- drivers/infiniband/hw/qib/qib_ud.c | 11 ++- drivers/infiniband/hw/qib

[PATCH v2 02/10] IB/qib: Remove dma.c and use rdmavt version of dma functions

2015-12-28 Thread Dennis Dalessandro
This patch removes the qib_dma.c file and uses the version which has been added to rdmavt. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/hw/qib/Makefile|2 +- drivers/infiniband/hw/qib/qib_verbs.c |3 ++- drivers

[PATCH v2 36/36] IB/rdmavt: Add pkey support

2015-12-28 Thread Dennis Dalessandro
manipulate this long before registering with it. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/vt.c | 46 - include/rdma/rdma_vt.h| 38

[PATCH v2 34/36] IB/rdmavt: Initialize and teardown of qpn table

2015-12-28 Thread Dennis Dalessandro
Add table init as well as teardown for handling qpn maps. Drivers can still provide this functionality by setting the QP_INIT_DRIVER bit. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/qp.c | 197

[PATCH v2 35/36] IB/rdmavt: Add mmap related functions

2015-12-28 Thread Dennis Dalessandro
The mmap data structure was moved in a previous commit. This patch now pulls in the related functions. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/mmap.c | 140 +++ drivers/infiniband

[PATCH v2 32/36] IB/rdmavt: Add driver notification for new AH

2015-12-28 Thread Dennis Dalessandro
Drivers may need to do some work once an address handle has been created. Add a driver function for this purpose. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Reviewed-by: Harish Chegondi Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/ah.c |7 +- include

[PATCH v2 30/36] IB/rdmavt: Move SRQ data structure into rdmavt

2015-12-28 Thread Dennis Dalessandro
Patch moves the srq data structure into rdmavt in preparation for removal from qib and hfi1 which will follow in subsequent patches. Reviewed-by: Ira Weiny Reviewed-by: Harish Chegondi Signed-off-by: Dennis Dalessandro --- include/rdma/rdma_vt.h | 13 + 1 files changed, 13

[PATCH v2 31/36] IB/rdmavt: Add an ibport data structure to rdmavt

2015-12-28 Thread Dennis Dalessandro
: Harish Chegondi Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/vt.c | 24 + include/rdma/rdma_vt.h| 66 - 2 files changed, 89 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/sw/rdmavt/vt.c b

[PATCH v2 29/36] IB/rdmavt: Add AH to rdmavt

2015-12-28 Thread Dennis Dalessandro
Weiny Signed-off-by: Kamal Heib Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/ah.c | 98 +++-- drivers/infiniband/sw/rdmavt/vt.c |5 ++ include/rdma/rdma_vt.h| 17 ++ 3 files changed, 115 insertions(+), 5 deletions

[PATCH v2 27/36] IB/rdmavt: Do not use rvt prints which rely on driver too early

2015-12-28 Thread Dennis Dalessandro
Trying to print debug and error messages with the rdmavt helpers will not work out so well if the drivers have not provided the get_card and get pci functions. Use the normal pr_error instead until we can check this. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis

[PATCH v2 28/36] IB/rdmavt: Add common LID defines to rdmavt

2015-12-28 Thread Dennis Dalessandro
From: Kamal Heib Original patch is from Kamal Heib . It has been split into separate patches. This patch adds RVT_PERMISSIVE_LID and RVT_MULTICAST_LID_BASE to rdmavt. Reviewed-by: Ira Weiny Signed-off-by: Kamal Heib Signed-off-by: Dennis Dalessandro --- include/rdma/rdma_vt.h |3 +++ 1

[PATCH v2 26/36] IB/rdmavt: Move memory registration into rdmavt

2015-12-28 Thread Dennis Dalessandro
Use the memory registration routines in hfi1 and move them to rdmavt. A follow on patch will address removing the duplicated code in the hfi1 and qib drivers. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v1: Remove rvt_reg_phys_mr

[PATCH v2 25/36] IB/rdmavt: Add the start of capability flags

2015-12-28 Thread Dennis Dalessandro
Drivers will need a set of flags to dictate behavior to rdmavt. This patch adds a placeholder and a spot for it to live, as well as a few flags that will be used. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- include/rdma/rdma_vt.h | 12

[PATCH v2 22/36] IB/rdmavt: Add queue pair data structure to rdmavt

2015-12-28 Thread Dennis Dalessandro
Add queue pair data structure as well as supporting structures to rdmavt. Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v1: Rename rvt_sge.m => rvt_sge.cur_map Rename rvt_sge.n => rvt_sge.cur drivers/infiniband/sw/rdmavt/qp.h

[PATCH v2 24/36] IB/rdmavt: Add device specific info prints

2015-12-28 Thread Dennis Dalessandro
Follow hfi1's example for printing information about the driver and incorporate into rdmavt. This requires two new functions to be provided by the driver, one to get_card_name and one to get_pci_dev. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Daless

[PATCH v2 23/36] IB/rdmavt: Move driver helper functions to a common structure

2015-12-28 Thread Dennis Dalessandro
Drivers are going to need to provide multiple functions for rdmavt to call in to. We already have one, so go ahead and push this into a data structure designated for driver supplied functions. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- drivers

[PATCH v2 20/36] IB/rdmavt: Add post send and recv stubs

2015-12-28 Thread Dennis Dalessandro
This adds the post sned and recv function stubs. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Fix typo in subject Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/qp.c | 62

[PATCH v2 21/36] IB/rdmavt: Move MR datastructures into rvt

2015-12-28 Thread Dennis Dalessandro
: Mike Marciniszyn Signed-off-by: Dennis Dalessandro --- Changes since v1: Rename rdi.lk_table => rdi.lkey_table include/rdma/rdma_vt.h | 53 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/include/rdma/rdma_vt.h b/include/r

[PATCH v2 19/36] IB/rdmavt: Add completion queue function stubs

2015-12-28 Thread Dennis Dalessandro
Create stubs for completion queue creation, polling, resizing, calling for notification, and destroying. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2

[PATCH v2 18/36] IB/rdmavt: Add get port immutable stub

2015-12-28 Thread Dennis Dalessandro
This adds the get port immutable verbs call. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/vt.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff

[PATCH v2 17/36] IB/rdmavt: Add mmap stub

2015-12-28 Thread Dennis Dalessandro
Adds the stub for the mmap verbs call. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2 + drivers/infiniband/sw/rdmavt/mmap.c | 60

[PATCH v2 16/36] IB/rdmavt: Add process MAD stub

2015-12-28 Thread Dennis Dalessandro
This adds the stub for process mad. More study is needed to determine the final MAD interaction between the driver and rvt. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- drivers/infiniband/sw/rdmavt/Makefile |2 - drivers/infiniband/sw/rdmavt

[PATCH v2 15/36] IB/rdmavt: Add multicast stubs

2015-12-28 Thread Dennis Dalessandro
Adds the function stubs for attach and detach multicast. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2 + drivers/infiniband/sw/rdmavt/mcast.c | 58

[PATCH v2 14/36] IB/rdmavt: Add SRQ stubs

2015-12-28 Thread Dennis Dalessandro
Adds the stubs for create, modify, query, and destory for shared request queues. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2 - drivers/infiniband

[PATCH v2 13/36] IB/rdmavt: Add memory region stubs

2015-12-28 Thread Dennis Dalessandro
Adds the function stubs for allocating, and registering memory regions, as well as deregistering them. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |2

[PATCH v2 12/36] IB/rdmavt: Add address handle stubs

2015-12-28 Thread Dennis Dalessandro
Adds the stubs for create, destroy, modify, and query of the address handle. Reviewed-by: Mike Marciniszyn Reviewed-by: Ira Weiny Signed-off-by: Dennis Dalessandro --- Changes since v1: Change stubs to return EOPNOTSUPP drivers/infiniband/sw/rdmavt/Makefile |3 - drivers/infiniband/sw

  1   2   3   >