Skip to content

Commit 1cbe06c

Browse files
committed
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma
Pull more rdma updates from Doug Ledford: "This is the second group of code for the 4.7 merge window. It looks large, but only in one sense. I'll get to that in a minute. The list of changes here breaks down as follows: - Dynamic counter infrastructure in the IB drivers This is a sysfs based code to allow free form access to the hardware counters RDMA devices might support so drivers don't need to code this up repeatedly themselves - SendOnlyFullMember multicast support - IB router support - A couple misc fixes - The big item on the list: hfi1 driver updates, plus moving the hfi1 driver out of staging There was a group of 15 patches in the hfi1 list that I thought I had in the first pull request but they weren't. So that added to the length of the hfi1 section here. As far as these go, everything but the hfi1 is pretty straight forward. The hfi1 is, if you recall, the driver that Al had complaints about how it used the write/writev interfaces in an overloaded fashion. The write portion of their interface behaved like the write handler in the IB stack proper and did bi-directional communications. The writev interface, on the other hand, only accepts SDMA request structures. The completions for those structures are sent back via an entirely different event mechanism. With the security patch, we put security checks on the write interface, however, we also knew they would be going away soon. Now, we've converted the write handler in the hfi1 driver to use ioctls from the IB reserved magic area for its bidirectional communications. With that change, Intel has addressed all of the items originally on their TODO when they went into staging (as well as many items added to the list later). As such, I moved them out, and since they were the last item in the staging/rdma directory, and I don't have immediate plans to use the staging area again, I removed the staging/rdma area. Because of the move out of staging, as well as a series of 5 patches in the hfi1 driver that removed code people thought should be done in a different way and was optional to begin with (a snoop debug interface, an eeprom driver for an eeprom connected directory to their hfi1 chip and not via an i2c bus, and a few other things like that), the line count, especially the removal count, is high" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (56 commits) staging/rdma: Remove the entire rdma subdirectory of staging IB/core: Make device counter infrastructure dynamic IB/hfi1: Fix pio map initialization IB/hfi1: Correct 8051 link parameter settings IB/hfi1: Update pkey table properly after link down or FM start IB/rdamvt: Fix rdmavt s_ack_queue sizing IB/rdmavt: Max atomic value should be a u8 IB/hfi1: Fix hard lockup due to not using save/restore spin lock IB/hfi1: Add tracing support for send with invalidate opcode IB/hfi1, qib: Add ieth to the packet header definitions IB/hfi1: Move driver out of staging IB/hfi1: Do not free hfi1 cdev parent structure early IB/hfi1: Add trace message in user IOCTL handling IB/hfi1: Remove write(), use ioctl() for user cmds IB/hfi1: Add ioctl() interface for user commands IB/hfi1: Remove unused user command IB/hfi1: Remove snoop/diag interface IB/hfi1: Remove EPROM functionality from data device IB/hfi1: Remove UI char device IB/hfi1: Remove multiple device cdev ...
2 parents ed2608f + 7a226f9 commit 1cbe06c

105 files changed

Lines changed: 1986 additions & 3400 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/infiniband/sysfs.txt‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ SYSFS FILES
5656
ports/1/pkeys/10 contains the value at index 10 in port 1's P_Key
5757
table.
5858

59+
There is an optional "hw_counters" subdirectory that may be under either
60+
the parent device or the port subdirectories or both. If present,
61+
there are a list of counters provided by the hardware. They may match
62+
some of the counters in the counters directory, but they often include
63+
many other counters. In addition to the various counters, there will
64+
be a file named "lifespan" that configures how frequently the core
65+
should update the counters when they are being accessed (counters are
66+
not updated if they are not being accessed). The lifespan is in milli-
67+
seconds and defaults to 10 unless set to something else by the driver.
68+
Users may echo a value between 0 - 10000 to the lifespan file to set
69+
the length of time between updates in milliseconds.
70+
5971
MTHCA
6072

6173
The Mellanox HCA driver also creates the files:

‎MAINTAINERS‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5308,6 +5308,13 @@ F: drivers/block/cciss*
53085308
F: include/linux/cciss_ioctl.h
53095309
F: include/uapi/linux/cciss_ioctl.h
53105310

5311+
HFI1 DRIVER
5312+
M: Mike Marciniszyn <mike.marciniszyn@intel.com>
5313+
M: Dennis Dalessandro <dennis.dalessandro@intel.com>
5314+
L: linux-rdma@vger.kernel.org
5315+
S: Supported
5316+
F: drivers/infiniband/hw/hfi1
5317+
53115318
HFS FILESYSTEM
53125319
L: linux-fsdevel@vger.kernel.org
53135320
S: Orphan
@@ -5837,7 +5844,6 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git
58375844
S: Supported
58385845
F: Documentation/infiniband/
58395846
F: drivers/infiniband/
5840-
F: drivers/staging/rdma/
58415847
F: include/uapi/linux/if_infiniband.h
58425848
F: include/uapi/rdma/
58435849
F: include/rdma/
@@ -10920,12 +10926,6 @@ M: Arnaud Patard <arnaud.patard@rtp-net.org>
1092010926
S: Odd Fixes
1092110927
F: drivers/staging/xgifb/
1092210928

10923-
HFI1 DRIVER
10924-
M: Mike Marciniszyn <infinipath@intel.com>
10925-
L: linux-rdma@vger.kernel.org
10926-
S: Supported
10927-
F: drivers/staging/rdma/hfi1
10928-
1092910929
STARFIRE/DURALAN NETWORK DRIVER
1093010930
M: Ion Badulescu <ionut@badula.org>
1093110931
S: Odd Fixes

‎drivers/infiniband/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,6 @@ source "drivers/infiniband/ulp/isert/Kconfig"
8585

8686
source "drivers/infiniband/sw/rdmavt/Kconfig"
8787

88+
source "drivers/infiniband/hw/hfi1/Kconfig"
89+
8890
endif # INFINIBAND

‎drivers/infiniband/core/Makefile‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
infiniband-$(CONFIG_INFINIBAND_ADDR_TRANS) := rdma_cm.o
22
user_access-$(CONFIG_INFINIBAND_ADDR_TRANS) := rdma_ucm.o
33

4-
obj-$(CONFIG_INFINIBAND) += ib_core.o ib_mad.o ib_sa.o \
5-
ib_cm.o iw_cm.o ib_addr.o \
4+
obj-$(CONFIG_INFINIBAND) += ib_core.o ib_cm.o iw_cm.o \
65
$(infiniband-y)
76
obj-$(CONFIG_INFINIBAND_USER_MAD) += ib_umad.o
87
obj-$(CONFIG_INFINIBAND_USER_ACCESS) += ib_uverbs.o ib_ucm.o \
98
$(user_access-y)
109

1110
ib_core-y := packer.o ud_header.o verbs.o cq.o rw.o sysfs.o \
1211
device.o fmr_pool.o cache.o netlink.o \
13-
roce_gid_mgmt.o mr_pool.o
12+
roce_gid_mgmt.o mr_pool.o addr.o sa_query.o \
13+
multicast.o mad.o smi.o agent.o mad_rmpp.o
1414
ib_core-$(CONFIG_INFINIBAND_USER_MEM) += umem.o
1515
ib_core-$(CONFIG_INFINIBAND_ON_DEMAND_PAGING) += umem_odp.o umem_rbtree.o
1616

17-
ib_mad-y := mad.o smi.o agent.o mad_rmpp.o
18-
19-
ib_sa-y := sa_query.o multicast.o
20-
2117
ib_cm-y := cm.o
2218

2319
iw_cm-y := iwcm.o iwpm_util.o iwpm_msg.o
@@ -28,8 +24,6 @@ rdma_cm-$(CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS) += cma_configfs.o
2824

2925
rdma_ucm-y := ucma.o
3026

31-
ib_addr-y := addr.o
32-
3327
ib_umad-y := user_mad.o
3428

3529
ib_ucm-y := ucm.o

0 commit comments

Comments
 (0)