[ewg] [PATCH] install.pl: Install QIB driver instead of Ipath

2009-07-08 Thread Ralph Campbell
Vlad,
Please apply this to your ~vlad/ofed_scripts.git ofed_1_5 repo.

This patch installs the qib driver which replaces the ipath driver
in OFED-1.5.

Signed-off-by: Ralph Campbell ralph.campb...@qlogic.com

diff --git a/install.pl b/install.pl
index 7d8036b..92988e5 100755
--- a/install.pl
+++ b/install.pl
@@ -309,7 +309,7 @@ my @suse_ofed_packages = (
 
 # List of all available packages sorted following dependencies
 my @kernel_packages = (kernel-ib, kernel-ib-devel, ib-bonding, 
ib-bonding-debuginfo);
-my @basic_kernel_modules = (core, mthca, mlx4, mlx4_en, cxgb3, 
nes, ehca, ipath, ipoib);
+my @basic_kernel_modules = (core, mthca, mlx4, mlx4_en, cxgb3, 
nes, ehca, qib, ipoib);
 my @ulp_modules = (sdp, srp, srpt, rds, qlgc_vnic, iser, 
nfsrdma);
 
 # kernel modules in technology preview status can be installed by
@@ -394,6 +394,9 @@ my %kernel_modules_info = (
 'ipath' =
 { name = ipath, available = 0, selected = 0,
 included_in_rpm = 0, requires = [core], },
+'qib' =
+{ name = qib, available = 0, selected = 0,
+included_in_rpm = 0, requires = [core], },
 'cxgb3' =
 { name = cxgb3, available = 0, selected = 0,
 included_in_rpm = 0, requires = [core], },
@@ -1658,11 +1661,9 @@ sub set_availability
 # $kernel =~ 
m/2.6.16.[0-9.]*-[0-9.]*-[A-Za-z0-9.]*|2.6.1[7-9]|2.6.2[0-9]/) or
 #($arch =~ m/x86_64/ and
 # $kernel =~ 
m/2.6.9-42|2.6.9-55|2.6.9-67|2.6.9-78|2.6.16.[0-9.]*-[0-9.]*-[A-Za-z0-9.]*|2.6.1[7-9]|2.6.2[0-9]/)
 ) {
-if ( ($arch =~ m/ppc64/ and
-$kernel =~ m/2.6.30/) or
-   ($arch =~ m/x86_64/ and
+if ( ($arch =~ m/x86_64/ and
 $kernel =~ m/2.6.30/) ) {
-$kernel_modules_info{'ipath'}{'available'} = 1;
+$kernel_modules_info{'qib'}{'available'} = 1;
 $packages_info{'libipathverbs'}{'available'} = 1;
 $packages_info{'libipathverbs-devel'}{'available'} = 1;
 $packages_info{'libipathverbs-debuginfo'}{'available'} = 1;
@@ -2814,6 +2815,9 @@ sub build_kernel_rpm
 elsif ($module eq ipath) {
 $kernel_configure_options .=  --with-ipath_inf-mod;
 }
+elsif ($module eq qib) {
+$kernel_configure_options .=  --with-qib-mod;
+}
 elsif ($module eq srpt) {
 $kernel_configure_options .=  --with-srp-target-mod;
 }


___
ewg mailing list
ewg@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg


Re: [ewg] [PATCH] install.pl: Install QIB driver instead of Ipath

2009-07-08 Thread Roland Dreier

  This patch installs the qib driver which replaces the ipath driver
  in OFED-1.5.

Maybe I missed some discussion of this.

But what is the QIB driver?  What are you planning to do to support
qlogic HCAs for the mainline kernel?

 - R.
___
ewg mailing list
ewg@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg


Re: [ewg] [PATCH] install.pl: Install QIB driver instead of Ipath

2009-07-08 Thread Ralph Campbell
On Wed, 2009-07-08 at 17:29 -0700, Roland Dreier wrote:
  This patch installs the qib driver which replaces the ipath driver
   in OFED-1.5.
 
 Maybe I missed some discussion of this.
 
 But what is the QIB driver?  What are you planning to do to support
 qlogic HCAs for the mainline kernel?
 
  - R.

The ib_qib driver is a modified version of the ib_ipath driver
with a lot of changes to support dual ports, APM, QDR, etc.
It supports the older QLogic QLE SDR and DDR cards too.

The plan is to submit the ib_qib driver upstream soon.
It seemed better to rename the driver than try to patch
the old driver since the patches were likely to be larger.
At some point I would expect to remove the ib_ipath driver.
For now, we are just disabling the ib_ipath compile/install.

___
ewg mailing list
ewg@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg