All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Chiang <achiang@hp.com>
To: Eilon Greenstein <eilong@broadcom.com>
Cc: David Miller <davem@davemloft.net>, netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH 1/4]bnx2x: Removing the PMF indication when unloading
Date: Mon, 3 Nov 2008 15:07:43 -0700	[thread overview]
Message-ID: <20081103220743.GA16427@ldl.fc.hp.com> (raw)
In-Reply-To: <1225728673.14568.10.camel@lb-tlvb-eliezer>

* Eilon Greenstein <eilong@broadcom.com>:
> 
> When the PMF flag is set, the driver can access the HW freely. When the
> driver is unloaded, it should not access the HW. The problem caused fatal
> errors when "ethtool -i" was called after the calling instance was unloaded
> and another instance was already loaded

Without this patch, a BCM57711E will cause an MCA on a BL870c
within minutes of starting a test that pushes traffic over the
ports while in multi-function mode (100% of the time within 10
minutes).

I've been testing this patch for the last two hours or so and it
seems to fix the problem.

Tested-by: Alex Chiang <achiang@hp.com>

> 
> Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
> ---
>  drivers/net/bnx2x_main.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
> index fce7451..61152e1 100644
> --- a/drivers/net/bnx2x_main.c
> +++ b/drivers/net/bnx2x_main.c
> @@ -6481,6 +6481,7 @@ load_int_disable:
>         bnx2x_free_irq(bp);
>  load_error:
>         bnx2x_free_mem(bp);
> +       bp->port.pmf = 0;
> 
>         /* TBD we really need to reset the chip
>            if we want to recover from this */
> @@ -6791,6 +6792,7 @@ unload_error:
>         /* Report UNLOAD_DONE to MCP */
>         if (!BP_NOMCP(bp))
>                 bnx2x_fw_command(bp, DRV_MSG_CODE_UNLOAD_DONE);
> +       bp->port.pmf = 0;
> 
>         /* Free SKBs, SGEs, TPA pool and driver internals */
>         bnx2x_free_skbs(bp);
> --
> 1.5.4.3
> 
> 
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2008-11-03 22:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 16:11 [PATCH 1/4]bnx2x: Removing the PMF indication when unloading Eilon Greenstein
2008-11-03 22:07 ` Alex Chiang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081103220743.GA16427@ldl.fc.hp.com \
    --to=achiang@hp.com \
    --cc=davem@davemloft.net \
    --cc=eilong@broadcom.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.