netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: sshah@solarflare.com
Cc: netdev@vger.kernel.org, linux-net-drivers@solarflare.com,
	rstonehouse@solarflare.com
Subject: Re: [PATCH net v3] sfc:On MCDI timeout, issue an FLR (and mark MCDI to fail-fast)
Date: Wed, 16 Apr 2014 14:35:03 -0400 (EDT)	[thread overview]
Message-ID: <20140416.143503.820604109876720374.davem@davemloft.net> (raw)
In-Reply-To: <534ECBA4.20408@solarflare.com>

From: Shradha Shah <sshah@solarflare.com>
Date: Wed, 16 Apr 2014 19:27:48 +0100

> From: Edward Cree <ecree@solarflare.com>
> 
> When an MCDI command times out (whether or not we find it
> completed when we poll), call efx_mcdi_abandon(), which tells
> all subsequent MCDI calls to fail-fast, and queues up an FLR.
> 
> Because an FLR doesn't lead to receiving any reboot even from
> the MC (unlike most other types of reset), we have to call
> efx_ef10_reset_mc_allocations.
> In efx_start_all(), if a reset (of any kind) is pending, we
> bail out.
> Without this, attempts to reconfigure (e.g. change mtu) can
> cause driver/mc state inconsistency if the first MCDI call
> triggers an FLR.
> 
> For similar reasons, on EF10, in
> efx_reset_down(method=RESET_TYPE_MCDI_TIMEOUT), set the number
> of active queues to zero before calling efx_stop_all().
> And, on farch, in efx_reset_up(method=RESET_TYPE_MCDI_TIMEOUT),
> set active_queues and flushes pending & outstanding to zero.
> 
> efx_mcdi_mode_{poll,event}() should not take us out of fail-fast
>  mode. Instead, this is done by efx_mcdi_reset() after the FLR
> completes.
> 
> The new FLR reset_type RESET_TYPE_MCDI_TIMEOUT doesn't really
> fit into the hierarchy of reset 'scopes' whereby efx_reset()
> decides some resets subsume others.  Thus, it uses separate logic.
> 
> Also, fixed up some inconsistency around RESET_TYPE_MC_BIST,
> which was in the wrong place in that hierarchy.
> 
> Signed-off-by: Shradha Shah <sshah@solarflare.com>

Applied, thanks.

      reply	other threads:[~2014-04-16 18:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-16 18:27 [PATCH net v3] sfc:On MCDI timeout, issue an FLR (and mark MCDI to fail-fast) Shradha Shah
2014-04-16 18:35 ` David Miller [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=20140416.143503.820604109876720374.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=linux-net-drivers@solarflare.com \
    --cc=netdev@vger.kernel.org \
    --cc=rstonehouse@solarflare.com \
    --cc=sshah@solarflare.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).