summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2009-07-09 03:45:37 +0200
committerMichael Brown2009-07-18 00:06:35 +0200
commitde50a19ae3ae9562766481b33457819297cce4c5 (patch)
tree15cea30252fd1ab5ec47caad4f0489f2ad2e7322
parent[hermon] Remove an unnecessary check for GID-less transmissions (diff)
downloadipxe-de50a19ae3ae9562766481b33457819297cce4c5.tar.gz
ipxe-de50a19ae3ae9562766481b33457819297cce4c5.tar.xz
ipxe-de50a19ae3ae9562766481b33457819297cce4c5.zip
[hermon] Disable debugging around mapping of firmware tables
-rw-r--r--src/drivers/infiniband/hermon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c
index 2e3d206b..64da82ba 100644
--- a/src/drivers/infiniband/hermon.c
+++ b/src/drivers/infiniband/hermon.c
@@ -1663,6 +1663,12 @@ static int hermon_map_vpm ( struct hermon *hermon,
assert ( ( pa & ( HERMON_PAGE_SIZE - 1 ) ) == 0 );
assert ( ( len & ( HERMON_PAGE_SIZE - 1 ) ) == 0 );
+ /* These mappings tend to generate huge volumes of
+ * uninteresting debug data, which basically makes it
+ * impossible to use debugging otherwise.
+ */
+ DBG_DISABLE ( DBGLVL_LOG | DBGLVL_EXTRA );
+
while ( len ) {
memset ( &mapping, 0, sizeof ( mapping ) );
MLX_FILL_1 ( &mapping, 0, va_h, ( va >> 32 ) );
@@ -1671,6 +1677,7 @@ static int hermon_map_vpm ( struct hermon *hermon,
log2size, 0,
pa_l, ( pa >> 12 ) );
if ( ( rc = map ( hermon, &mapping ) ) != 0 ) {
+ DBG_ENABLE ( DBGLVL_LOG | DBGLVL_EXTRA );
DBGC ( hermon, "Hermon %p could not map %llx => %lx: "
"%s\n", hermon, va, pa, strerror ( rc ) );
return rc;
@@ -1680,6 +1687,7 @@ static int hermon_map_vpm ( struct hermon *hermon,
len -= HERMON_PAGE_SIZE;
}
+ DBG_ENABLE ( DBGLVL_LOG | DBGLVL_EXTRA );
return 0;
}