From: Steve Wise <swise@opengridcomputing.com>
To: rdreier@cisco.com
Cc: netdev@vger.kernel.org, openib-general@openib.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 13/13] Kconfig/Makefile
Date: Sat, 02 Dec 2006 16:51:29 -0600 [thread overview]
Message-ID: <20061202225129.27014.42302.stgit@dell3.ogc.int> (raw)
In-Reply-To: <20061202224917.27014.15424.stgit@dell3.ogc.int>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
---
drivers/infiniband/Kconfig | 1 +
drivers/infiniband/Makefile | 1 +
drivers/infiniband/hw/cxgb3/Kconfig | 27 +++++++++++++++++++++++++++
drivers/infiniband/hw/cxgb3/Makefile | 12 ++++++++++++
drivers/infiniband/hw/cxgb3/locking.txt | 25 +++++++++++++++++++++++++
5 files changed, 66 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig
index 59b3932..06453ab 100644
--- a/drivers/infiniband/Kconfig
+++ b/drivers/infiniband/Kconfig
@@ -38,6 +38,7 @@ source "drivers/infiniband/hw/mthca/Kcon
source "drivers/infiniband/hw/ipath/Kconfig"
source "drivers/infiniband/hw/ehca/Kconfig"
source "drivers/infiniband/hw/amso1100/Kconfig"
+source "drivers/infiniband/hw/cxgb3/Kconfig"
source "drivers/infiniband/ulp/ipoib/Kconfig"
diff --git a/drivers/infiniband/Makefile b/drivers/infiniband/Makefile
index 570b30a..69bdd55 100644
--- a/drivers/infiniband/Makefile
+++ b/drivers/infiniband/Makefile
@@ -3,6 +3,7 @@ obj-$(CONFIG_INFINIBAND_MTHCA) += hw/mt
obj-$(CONFIG_INFINIBAND_IPATH) += hw/ipath/
obj-$(CONFIG_INFINIBAND_EHCA) += hw/ehca/
obj-$(CONFIG_INFINIBAND_AMSO1100) += hw/amso1100/
+obj-$(CONFIG_INFINIBAND_CXGB3) += hw/cxgb3/
obj-$(CONFIG_INFINIBAND_IPOIB) += ulp/ipoib/
obj-$(CONFIG_INFINIBAND_SRP) += ulp/srp/
obj-$(CONFIG_INFINIBAND_ISER) += ulp/iser/
diff --git a/drivers/infiniband/hw/cxgb3/Kconfig b/drivers/infiniband/hw/cxgb3/Kconfig
new file mode 100644
index 0000000..84f0f6e
--- /dev/null
+++ b/drivers/infiniband/hw/cxgb3/Kconfig
@@ -0,0 +1,27 @@
+config INFINIBAND_CXGB3
+ tristate "Chelsio RDMA Driver"
+ depends on CHELSIO_T3 && INFINIBAND
+ select GENERIC_ALLOCATOR
+ ---help---
+ This is an iWARP/RDMA driver for the Chelsio T3 1GbE and
+ 10GbE adapters.
+
+ For general information about Chelsio and our products, visit
+ our website at <http://www.chelsio.com>.
+
+ For customer support, please visit our customer support page at
+ <http://www.chelsio.com/support.htm>.
+
+ Please send feedback to <linux-bugs@chelsio.com>.
+
+ To compile this driver as a module, choose M here: the module
+ will be called iw_cxgb3.
+
+config INFINIBAND_CXGB3_DEBUG
+ bool "Verbose debugging output"
+ depends on INFINIBAND_CXGB3
+ default n
+ ---help---
+ This option causes the Chelsio RDMA driver to produce copious
+ amounts of debug messages. Select this if you are developing
+ the driver or trying to diagnose a problem.
diff --git a/drivers/infiniband/hw/cxgb3/Makefile b/drivers/infiniband/hw/cxgb3/Makefile
new file mode 100644
index 0000000..0df2b3d
--- /dev/null
+++ b/drivers/infiniband/hw/cxgb3/Makefile
@@ -0,0 +1,12 @@
+EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/cxgb3 \
+ -I$(TOPDIR)/drivers/infiniband/hw/cxgb3/core
+
+obj-$(CONFIG_INFINIBAND_CXGB3) += iw_cxgb3.o
+
+iw_cxgb3-y := iwch_cm.o iwch_ev.o iwch_cq.o iwch_qp.o iwch_mem.o \
+ iwch_provider.o iwch.o core/cxio_hal.o core/cxio_resource.o
+
+ifdef CONFIG_INFINIBAND_CXGB3_DEBUG
+EXTRA_CFLAGS += -DDEBUG -O1 -g
+iw_cxgb3-y += core/cxio_dbg.o
+endif
diff --git a/drivers/infiniband/hw/cxgb3/locking.txt b/drivers/infiniband/hw/cxgb3/locking.txt
new file mode 100644
index 0000000..e5e9991
--- /dev/null
+++ b/drivers/infiniband/hw/cxgb3/locking.txt
@@ -0,0 +1,25 @@
+cq lock:
+ - spin lock
+ - used to synchronize the t3_cq
+
+qp lock:
+ - spin lock
+ - used to synchronize updates to the qp state, attrs, and the t3_wq.
+ - touched on interrupt and process context
+
+rnicp lock:
+ - spin lock
+ - touched on interrupt and process context
+ - used around lookup tables mapping CQID and QPID to a structure.
+ - used also to bump the refcnt atomically with the lookup.
+
+poll:
+ lock+disable on cq lock
+ lock qp lock for each cqe that is polled around the call
+ to cxio_poll_cq().
+
+post:
+ lock+disable qp lock
+
+global mutex iwch_mutex:
+ used to maintain global device list.
next prev parent reply other threads:[~2006-12-02 22:51 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-02 22:49 [PATCH v2 00/13] 2.6.20 Chelsio T3 RDMA Driver Steve Wise
2006-12-02 22:49 ` [PATCH v2 01/13] Linux RDMA Core Changes Steve Wise
2006-12-02 22:49 ` [PATCH v2 02/13] Device Discovery and ULLD Linkage Steve Wise
2006-12-03 16:03 ` Jan Engelhardt
2006-12-02 22:49 ` [PATCH v2 03/13] Provider Methods and Data Structures Steve Wise
2006-12-03 12:07 ` Arjan van de Ven
2006-12-04 16:28 ` Steve Wise
2006-12-04 16:45 ` Roland Dreier
2006-12-04 16:50 ` Steve Wise
2006-12-02 22:49 ` [PATCH v2 04/13] Connection Manager Steve Wise
2006-12-04 11:08 ` Evgeniy Polyakov
2006-12-04 15:45 ` Roland Dreier
2006-12-04 16:20 ` Steve Wise
2006-12-05 5:13 ` Evgeniy Polyakov
2006-12-05 15:07 ` Steve Wise
2006-12-05 10:45 ` Brice Goglin
2006-12-05 16:02 ` Steve Wise
2006-12-05 16:27 ` [openib-general] " Steve Wise
2006-12-05 17:14 ` Roland Dreier
2006-12-05 5:07 ` Evgeniy Polyakov
2006-12-05 5:13 ` Roland Dreier
2006-12-05 5:16 ` Evgeniy Polyakov
2006-12-05 5:27 ` Roland Dreier
2006-12-05 15:14 ` Steve Wise
2006-12-05 15:27 ` Evgeniy Polyakov
2006-12-05 15:46 ` Steve Wise
2006-12-05 15:03 ` Steve Wise
2006-12-05 15:02 ` Steve Wise
2006-12-05 15:19 ` Evgeniy Polyakov
2006-12-05 15:39 ` Steve Wise
2006-12-05 15:59 ` Evgeniy Polyakov
2006-12-05 16:12 ` Steve Wise
2006-12-05 16:17 ` [openib-general] " Steve Wise
2006-12-05 16:31 ` Evgeniy Polyakov
2006-12-05 16:47 ` Steve Wise
2006-12-05 17:26 ` Evgeniy Polyakov
2006-12-05 17:32 ` Evgeniy Polyakov
2006-12-05 17:51 ` Steve Wise
2006-12-05 18:09 ` Evgeniy Polyakov
2006-12-06 1:27 ` [openib-general] " Michael Krause
2006-12-02 22:50 ` [PATCH v2 05/13] Queue Pairs Steve Wise
2006-12-02 22:50 ` [PATCH v2 06/13] Completion Queues Steve Wise
2006-12-02 22:50 ` [PATCH v2 07/13] Async Event Handler Steve Wise
2006-12-02 22:50 ` [PATCH v2 08/13] Memory Registration Steve Wise
2006-12-02 22:50 ` [PATCH v2 09/13] Core WQE/CQE Types Steve Wise
2006-12-02 22:50 ` [PATCH v2 10/13] Core HAL Steve Wise
2006-12-02 22:51 ` [PATCH v2 11/13] Core Resource Allocation Steve Wise
2006-12-02 22:51 ` [PATCH v2 12/13] Core Debug functions Steve Wise
2006-12-02 22:51 ` Steve Wise [this message]
2006-12-02 23:13 ` [PATCH v2 00/13] 2.6.20 Chelsio T3 RDMA Driver Francois Romieu
2006-12-03 0:24 ` Stephen Hemminger
2006-12-04 16:24 ` Steve Wise
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061202225129.27014.42302.stgit@dell3.ogc.int \
--to=swise@opengridcomputing.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=openib-general@openib.org \
--cc=rdreier@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).