aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca/ehca_main.c
diff options
context:
space:
mode:
authorJoachim Fenkes <fenkes@de.ibm.com>2008-04-23 14:55:45 -0400
committerRoland Dreier <rolandd@cisco.com>2008-04-23 14:55:45 -0400
commit4da27d6d5b92c8fe4b3a3e5bcf42606d9e4a6fc8 (patch)
tree971988a287044db1d26d1cab24ad5e4aeb578ea8 /drivers/infiniband/hw/ehca/ehca_main.c
parent863fb09fbf1eb74f56ea02184a62165056aa29cb (diff)
IB/ehca: Move high-volume debug output to higher debug levels
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_main.c')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_main.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c
index 65b3362cdb9b..4379beff987f 100644
--- a/drivers/infiniband/hw/ehca/ehca_main.c
+++ b/drivers/infiniband/hw/ehca/ehca_main.c
@@ -85,8 +85,8 @@ module_param_named(lock_hcalls, ehca_lock_hcalls, bool, S_IRUGO);
85MODULE_PARM_DESC(open_aqp1, 85MODULE_PARM_DESC(open_aqp1,
86 "AQP1 on startup (0: no (default), 1: yes)"); 86 "AQP1 on startup (0: no (default), 1: yes)");
87MODULE_PARM_DESC(debug_level, 87MODULE_PARM_DESC(debug_level,
88 "debug level" 88 "Amount of debug output (0: none (default), 1: traces, "
89 " (0: no debug traces (default), 1: with debug traces)"); 89 "2: some dumps, 3: lots)");
90MODULE_PARM_DESC(hw_level, 90MODULE_PARM_DESC(hw_level,
91 "hardware level" 91 "hardware level"
92 " (0: autosensing (default), 1: v. 0.20, 2: v. 0.21)"); 92 " (0: autosensing (default), 1: v. 0.20, 2: v. 0.21)");
@@ -275,6 +275,7 @@ static int ehca_sense_attributes(struct ehca_shca *shca)
275 u64 h_ret; 275 u64 h_ret;
276 struct hipz_query_hca *rblock; 276 struct hipz_query_hca *rblock;
277 struct hipz_query_port *port; 277 struct hipz_query_port *port;
278 const char *loc_code;
278 279
279 static const u32 pgsize_map[] = { 280 static const u32 pgsize_map[] = {
280 HCA_CAP_MR_PGSIZE_4K, 0x1000, 281 HCA_CAP_MR_PGSIZE_4K, 0x1000,
@@ -283,6 +284,12 @@ static int ehca_sense_attributes(struct ehca_shca *shca)
283 HCA_CAP_MR_PGSIZE_16M, 0x1000000, 284 HCA_CAP_MR_PGSIZE_16M, 0x1000000,
284 }; 285 };
285 286
287 ehca_gen_dbg("Probing adapter %s...",
288 shca->ofdev->node->full_name);
289 loc_code = of_get_property(shca->ofdev->node, "ibm,loc-code", NULL);
290 if (loc_code)
291 ehca_gen_dbg(" ... location lode=%s", loc_code);
292
286 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL); 293 rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL);
287 if (!rblock) { 294 if (!rblock) {
288 ehca_gen_err("Cannot allocate rblock memory."); 295 ehca_gen_err("Cannot allocate rblock memory.");
@@ -567,8 +574,7 @@ static int ehca_destroy_aqp1(struct ehca_sport *sport)
567 574
568static ssize_t ehca_show_debug_level(struct device_driver *ddp, char *buf) 575static ssize_t ehca_show_debug_level(struct device_driver *ddp, char *buf)
569{ 576{
570 return snprintf(buf, PAGE_SIZE, "%d\n", 577 return snprintf(buf, PAGE_SIZE, "%d\n", ehca_debug_level);
571 ehca_debug_level);
572} 578}
573 579
574static ssize_t ehca_store_debug_level(struct device_driver *ddp, 580static ssize_t ehca_store_debug_level(struct device_driver *ddp,