Skip to contentSkip to conversation

ehca: allow en/disabling scaling code via module parameter

PATCH In review Hoang-Nam Nguyen 1 participant 1 message Feb 15, 2007 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 ehca: allow en/disabling scaling code via module parameter

allow users to en/disable scaling code when loading ib_ehca module

---

 Kconfig        |    8 --------
 ehca_classes.h |    1 +
 ehca_irq.c     |   47 +++++++++++++++++++++--------------------------
 ehca_main.c    |    4 ++++
 4 files changed, 26 insertions(+), 34 deletions(-)
drivers/infiniband/hw/ehca/Kconfig +0 -8
index 727b10d..1a85459 100644
@@ -7,11 +7,3 @@ config INFINIBAND_EHCA
 	To compile the driver as a module, choose M here. The module
 	will be called ib_ehca.
 
-config INFINIBAND_EHCA_SCALING
-	bool "Scaling support (EXPERIMENTAL)"
-	depends on IBMEBUS && INFINIBAND_EHCA && HOTPLUG_CPU && EXPERIMENTAL
-	default y
-	---help---
-	eHCA scaling support schedules the CQ callbacks to different CPUs.
-
-	To enable this feature choose Y here.
drivers/infiniband/hw/ehca/ehca_classes.h +1 -0
index f08ad6f..40404c9 100644
@@ -277,6 +277,7 @@ extern struct idr ehca_cq_idr;
 extern int ehca_static_rate;
 extern int ehca_port_act_time;
 extern int ehca_use_hp_mr;
+extern int ehca_scaling_code;
 
 struct ipzu_queue_resp {
 	u32 qe_size;      /* queue entry size */
drivers/infiniband/hw/ehca/ehca_irq.c +21 -26

105 lines not on this page · raw message

drivers/infiniband/hw/ehca/ehca_main.c +4 -0
index 5790534..c183512 100644
@@ -62,6 +62,7 @@ int ehca_use_hp_mr     = 0;
 int ehca_port_act_time = 30;
 int ehca_poll_all_eqs  = 1;
 int ehca_static_rate   = -1;
+int ehca_scaling_code  = 1;
 
 module_param_named(open_aqp1,     ehca_open_aqp1,     int, 0);
 module_param_named(debug_level,   ehca_debug_level,   int, 0);
@@ -71,6 +72,7 @@ module_param_named(use_hp_mr,     ehca_u
 module_param_named(port_act_time, ehca_port_act_time, int, 0);
 module_param_named(poll_all_eqs,  ehca_poll_all_eqs,  int, 0);
 module_param_named(static_rate,   ehca_static_rate,   int, 0);
+module_param_named(scaling_code,   ehca_scaling_code,   int, 0);
 
 MODULE_PARM_DESC(open_aqp1,
 		 "AQP1 on startup (0: no (default), 1: yes)");
@@ -91,6 +93,8 @@ MODULE_PARM_DESC(poll_all_eqs,
 		 " (0: no, 1: yes (default))");
 MODULE_PARM_DESC(static_rate,
 		 "set permanent static rate (default: disabled)");
+MODULE_PARM_DESC(scaling_code,
+		 "set scaling code (0: disabled, 1: enabled/default)");
 
 spinlock_t ehca_qp_idr_lock;
 spinlock_t ehca_cq_idr_lock;