[openib-general] moving IBM eHCA Device Driver to openib.org

Shirley Ma xma at us.ibm.com
Wed Oct 19 10:34:54 PDT 2005


Here is the Kconfig/Makefile patch I used to build ehca as a part of linux 
build.

diff -urN infiniband/Kconfig infiniband-patch/Kconfig
--- infiniband/Kconfig  2005-10-17 09:28:41.000000000 -0700
+++ infiniband-patch/Kconfig    2005-10-17 09:51:08.000000000 -0700
@@ -30,6 +30,8 @@
 
 source "drivers/infiniband/hw/mthca/Kconfig"
 
+source "drivers/infiniband/hw/ehca/Kconfig"
+
 source "drivers/infiniband/ulp/ipoib/Kconfig"
 
 source "drivers/infiniband/ulp/sdp/Kconfig"
diff -urN infiniband/hw/ehca/Kconfig infiniband-patch/hw/ehca/Kconfig
--- infiniband/hw/ehca/Kconfig  1969-12-31 16:00:00.000000000 -0800
+++ infiniband-patch/hw/ehca/Kconfig    2005-10-17 09:51:55.000000000 
-0700
@@ -0,0 +1,6 @@
+config INFINIBAND_EHCA
+        tristate "IBM EHCA support"
+        depends on IBMEBUS && INFINIBAND
+       ---help---
+         This is a low-level driver for IBM eBUS host 
+         channel adapters (HCAs). 
diff -urN infiniband/hw/ehca/Makefile infiniband-patch/hw/ehca/Makefile
--- infiniband/hw/ehca/Makefile 2005-10-17 09:45:19.000000000 -0700
+++ infiniband-patch/hw/ehca/Makefile   2005-10-17 09:55:33.000000000 
-0700
@@ -46,7 +46,7 @@
 endif
 # GEN2_PATH_KERNEL = drivers #for gen2 code in kernel
 
-obj-m += hcad_mod.o 
+obj-$(CONFIG_INFINIBAND_EHCA) += hcad_mod.o 
 
 hcad_mod-objs = ehca_main.o ehca_hca.o ipz_pt_fn.o ehca_classes.o 
ehca_av.o \
        ehca_pd.o ehca_mrmw.o ehca_cq.o ehca_sqp.o ehca_qp.o hcp_sense.o \
@@ -59,6 +59,7 @@
 
 
 EXTRA_CFLAGS +=-DP_SERIES -DEHCA_USE_HCALL -DEHCA_USE_HCALL_KERNEL \
+       -Idrivers/infiniband/include \
        -I$(src)/.  \
        -I$(GEN2_PATH_KERNEL)/infiniband/include/rdma \
        -I$(GEN2_PATH_KERNEL)/infiniband/core




Shirley Ma
IBM Linux Technology Center
15300 SW Koll Parkway
Beaverton, OR 97006-6063
Phone(Fax): (503) 578-7638





IBMEHCA DD <IBMEHCAD at de.ibm.com> 
Sent by: openib-general-bounces at openib.org
10/19/2005 07:58 AM

To
openib-general at openib.org
cc

Subject
Re: [openib-general] moving IBM eHCA Device Driver to openib.org







I put out a initial set of files (as discussed) on openib.org svn. 
The Kconfig option will follow when I've verified that it really compiles 
as is in svn. 

The same set with makefiles and install scripts is available from 
sourceforge as ehca2_0033 


Christoph 

Roland Dreier wrote on 04.10.2005 18:43:09:

> Congratulations on getting to this stage!

> > gen2/trunk/src/linux-kernel/infiniband/hw/ehca
> > gen2/trunk/src/userspace/libehca 
> 
> Yes, this is the right place to add the code.

> > We should probably modify the linux-kernel/infiniband/Kconfig to only
> > allow to compile the kernel part for ppc64 builds 
> 
> Yes, add

> source "drivers/infiniband/hw/ehca/Kconfig"

> to that Kconfig, and

> obj-$(CONFIG_INFINIBAND_EHCA)  += hw/ehca/

> to the Makefile.

> - R._______________________________________________
openib-general mailing list
openib-general at openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit 
http://openib.org/mailman/listinfo/openib-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20051019/7df912cc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ehca.config.patch
Type: application/octet-stream
Size: 1555 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20051019/7df912cc/attachment.obj>


More information about the general mailing list