Skip to content

Commit 7724105

Browse files
mmarcinidledford
authored andcommitted
IB/hfi1: add driver files
Signed-off-by: Andrew Friedley <[email protected]> Signed-off-by: Arthur Kepner <[email protected]> Signed-off-by: Brendan Cunningham <[email protected]> Signed-off-by: Brian Welty <[email protected]> Signed-off-by: Caz Yokoyama <[email protected]> Signed-off-by: Dean Luick <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Easwar Hariharan <[email protected]> Signed-off-by: Harish Chegondi <[email protected]> Signed-off-by: Ira Weiny <[email protected]> Signed-off-by: Jim Snow <[email protected]> Signed-off-by: John Gregor <[email protected]> Signed-off-by: Jubin John <[email protected]> Signed-off-by: Kaike Wan <[email protected]> Signed-off-by: Kevin Pine <[email protected]> Signed-off-by: Kyle Liddell <[email protected]> Signed-off-by: Mike Marciniszyn <[email protected]> Signed-off-by: Mitko Haralanov <[email protected]> Signed-off-by: Ravi Krishnaswamy <[email protected]> Signed-off-by: Sadanand Warrier <[email protected]> Signed-off-by: Sanath Kumar <[email protected]> Signed-off-by: Sudeep Dutt <[email protected]> Signed-off-by: Vlad Danushevsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent d4ab347 commit 7724105

Some content is hidden

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

60 files changed

+57480
-0
lines changed

Documentation/infiniband/sysfs.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,23 @@ MTHCA
6464
fw_ver - Firmware version
6565
hca_type - HCA type: "MT23108", "MT25208 (MT23108 compat mode)",
6666
or "MT25208"
67+
68+
HFI1
69+
70+
The hfi1 driver also creates these additional files:
71+
72+
hw_rev - hardware revision
73+
board_id - manufacturing board id
74+
tempsense - thermal sense information
75+
serial - board serial number
76+
nfreectxts - number of free user contexts
77+
nctxts - number of allowed contexts (PSM2)
78+
chip_reset - diagnostic (root only)
79+
boardversion - board version
80+
ports/1/
81+
CMgtA/
82+
cc_settings_bin - CCA tables used by PSM2
83+
cc_table_bin
84+
sc2v/ - 32 files (0 - 31) used to translate sl->vl
85+
sl2sc/ - 32 files (0 - 31) used to translate sl->sc
86+
vl2mtu/ - 16 (0 - 15) files used to determine MTU for vl

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9809,6 +9809,12 @@ M: Arnaud Patard <[email protected]>
98099809
S: Odd Fixes
98109810
F: drivers/staging/xgifb/
98119811

9812+
HFI1 DRIVER
9813+
M: Mike Marciniszyn <[email protected]>
9814+
9815+
S: Supported
9816+
F: drivers/staging/rdma/hfi1
9817+
98129818
STARFIRE/DURALAN NETWORK DRIVER
98139819
M: Ion Badulescu <[email protected]>
98149820
S: Odd Fixes

drivers/staging/rdma/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if STAGING_RDMA
2424

2525
source "drivers/staging/rdma/amso1100/Kconfig"
2626

27+
source "drivers/staging/rdma/hfi1/Kconfig"
28+
2729
source "drivers/staging/rdma/ipath/Kconfig"
2830

2931
endif

drivers/staging/rdma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Entries for RDMA_STAGING tree
22
obj-$(CONFIG_INFINIBAND_AMSO1100) += amso1100/
3+
obj-$(CONFIG_INFINIBAND_HFI1) += hfi1/
34
obj-$(CONFIG_INFINIBAND_IPATH) += ipath/

drivers/staging/rdma/hfi1/Kconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
config INFINIBAND_HFI1
2+
tristate "Intel OPA Gen1 support"
3+
depends on X86_64
4+
default m
5+
---help---
6+
This is a low-level driver for Intel OPA Gen1 adapter.
7+
config HFI1_DEBUG_SDMA_ORDER
8+
bool "HFI1 SDMA Order debug"
9+
depends on INFINIBAND_HFI1
10+
default n
11+
---help---
12+
This is a debug flag to test for out of order
13+
sdma completions for unit testing
14+
config HFI1_VERBS_31BIT_PSN
15+
bool "HFI1 enable 31 bit PSN"
16+
depends on INFINIBAND_HFI1
17+
default y
18+
---help---
19+
Setting this enables 31 BIT PSN
20+
For verbs RC/UC
21+
config SDMA_VERBOSITY
22+
bool "Config SDMA Verbosity"
23+
depends on INFINIBAND_HFI1
24+
default n
25+
---help---
26+
This is a configuration flag to enable verbose
27+
SDMA debug
28+
config PRESCAN_RXQ
29+
bool "Enable prescanning of the RX queue for ECNs"
30+
depends on INFINIBAND_HFI1
31+
default n
32+
---help---
33+
This option toggles the prescanning of the receive queue for
34+
Explicit Congestion Notifications. If an ECN is detected, it
35+
is processed as quickly as possible, the ECN is toggled off.
36+
After the prescanning step, the receive queue is processed as
37+
usual.

drivers/staging/rdma/hfi1/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# HFI driver
3+
#
4+
#
5+
#
6+
# Called from the kernel module build system.
7+
#
8+
obj-$(CONFIG_INFINIBAND_HFI1) += hfi1.o
9+
10+
hfi1-y := chip.o cq.o device.o diag.o dma.o driver.o eprom.o file_ops.o firmware.o \
11+
init.o intr.o keys.o mad.o mmap.o mr.o pcie.o pio.o pio_copy.o \
12+
qp.o qsfp.o rc.o ruc.o sdma.o srq.o sysfs.o trace.o twsi.o \
13+
uc.o ud.o user_pages.o user_sdma.o verbs_mcast.o verbs.o
14+
hfi1-$(CONFIG_DEBUG_FS) += debugfs.o
15+
16+
CFLAGS_trace.o = -I$(src)
17+
ifdef MVERSION
18+
CFLAGS_driver.o = -DHFI_DRIVER_VERSION_BASE=\"$(MVERSION)\"
19+
endif

drivers/staging/rdma/hfi1/TODO

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
July, 2015
2+
3+
- Remove unneeded file entries in sysfs
4+
- Remove software processing of IB protocol and place in library for use
5+
by qib, ipath (if still present), hfi1, and eventually soft-roce
6+

0 commit comments

Comments
 (0)