From: leonidk Date: Wed, 22 Oct 2008 11:14:42 +0000 (+0000) Subject: [MLX4] print to Event Log first several HCA commands timeout errors. [mlnx: 3194] X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=20583795995b5b8c5397b41372a24408cc11f6c0;p=~shefty%2Frdma-win.git [MLX4] print to Event Log first several HCA commands timeout errors. [mlnx: 3194] git-svn-id: svn://openib.tc.cornell.edu/gen1@1672 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/branches/WOF2-0/trunk/hw/mlx4/kernel/bus/net/cmd.c b/branches/WOF2-0/trunk/hw/mlx4/kernel/bus/net/cmd.c index a49a5f10..123ad705 100644 --- a/branches/WOF2-0/trunk/hw/mlx4/kernel/bus/net/cmd.c +++ b/branches/WOF2-0/trunk/hw/mlx4/kernel/bus/net/cmd.c @@ -280,7 +280,11 @@ static int mlx4_cmd_wait(struct mlx4_dev *dev, u64 in_param, u64 *out_param, if (wait_for_completion_timeout(&context->done, msecs_to_jiffies(timeout))) { if (!context->done.done) { + static int spam_limit = 10; err = -EBUSY; + if (spam_limit-- > 0) + mlx4_err(dev, "mlx4_cmd_wait: Command %02x completed with timeout after %d secs \n", + op, timeout/1000); goto out; } }