[openib-general] Got FW area not aligned to 4096
Batwara, Ashish
Ashish.Batwara at lsi.com
Tue Nov 28 15:49:24 PST 2006
We are using prior to OFED-1.1 with Mellanox HCA (Arbel).
We are seeing that err (context->result) is always set to -EBUSY in the
below piece of code in file mthca_cmd.c. I looked at the OFED-1.1, and
am seeing that there are some changes in this area. At this point in
time, I do not want to upgrade to OFED-1.1, but would like to get around
to this problem?
Can anyone suggest what may be the work around to get going with this
issue?
Thanks
Ashish
static int mthca_cmd_wait(struct mthca_dev *dev,
u64 in_param,
u64 *out_param,
int out_is_imm,
u32 in_modifier,
u8 op_modifier,
u16 op,
unsigned long timeout,
u8 *status)
{
int err = 0;
struct mthca_cmd_context *context;
down(&dev->cmd.event_sem);
spin_lock(&dev->cmd.context_lock);
BUG_ON(dev->cmd.free_head < 0);
context = &dev->cmd.context[dev->cmd.free_head];
dqvkiText(ibDqWriter, FDL_NORMAL, "context address in mdev =
0x%x", context);
dev->cmd.free_head = context->next;
spin_unlock(&dev->cmd.context_lock);
init_completion(&context->done);
err = mthca_cmd_post(dev, in_param,
out_param ? *out_param : 0,
in_modifier, op_modifier,
op, context->token, 1);
if (err)
{
goto out;
}
context->timer.expires = jiffies + timeout;
mthca_dbg(dev, " Timer value: 0x%x ", (jiffies + timeout));
add_timer(&context->timer);
wait_for_completion(&context->done);
del_timer_sync(&context->timer);
err = context->result;
if (err)
{
goto out;
}
Original Message-----
From: Roland Dreier [mailto:rdreier at cisco.com]
Sent: Monday, November 27, 2006 6:39 PM
To: Batwara, Ashish
Cc: openib-general at openib.org
Subject: Re: [openib-general] Got FW area not aligned to 4096
> 11/27/06-19:13:04 (GMT) (L3c84e240): NOTE: Got FW area not aligned
to 4096 (20/c0100004).
Does this always happen, or only on some tries loading the driver?
What kernel version are you running? Did you patch the mthca driver
or anything like that?
What type of platform are you using? Are you running a 32-bit or
64-bit kernel?
I don't see anything obviously wrong with the code, so I'm wondering
if it's getting miscompiled on your system.
- R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20061128/37bcab41/attachment.html>
More information about the general
mailing list