From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: davem@davemloft.net,
Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>,
netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Andrew Bowers <andrewx.bowers@intel.com>
Subject: Re: [net-next 03/15] ice: Add support for FW recovery mode detection
Date: Tue, 5 Nov 2019 17:48:36 -0800 [thread overview]
Message-ID: <20191105174836.4df162dd@cakuba.netronome.com> (raw)
In-Reply-To: <20191106004620.10416-4-jeffrey.t.kirsher@intel.com>
On Tue, 5 Nov 2019 16:46:08 -0800, Jeff Kirsher wrote:
> From: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
>
> This patch adds support for firmware recovery mode detection.
>
> The idea behind FW recovery mode is to recover from a bad FW state,
> due to corruption or misconfiguration. The FW triggers recovery mode
> by setting the right bits in the GL_MNG_FWSM register and issuing
> an EMP reset.
>
> The driver may or may not be loaded when recovery mode is triggered. So
> on module load, the driver first checks if the FW is already in recovery
> mode. If so, it drops into recovery mode as well, where it creates and
> registers a single netdev that only allows a very small set of repair/
> diagnostic operations (like updating the FW, checking version, etc.)
> through ethtool.
>
> If recovery mode is triggered when the driver is loaded/operational,
> the first indication of this in the driver is via the EMP reset event.
> As part of processing the reset event, the driver checks the GL_MNG_FWSM
> register to determine if recovery mode was triggered. If so, traffic is
> stopped, peers are closed and the ethtool ops are updated to allow only
> repair/diagnostic operations.
>
> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
> Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
You shouldn't need to spawn a fake netdev just to recover the device.
Implement devlink, you can have a devlink instance with full debug
info and allow users to update FW via the flash op, even if driver is
unable to bring up any port.
next prev parent reply other threads:[~2019-11-06 1:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-06 0:46 [net-next 00/15][pull request] 100GbE Intel Wired LAN Driver Updates 2019-11-05 Jeff Kirsher
2019-11-06 0:46 ` [net-next 01/15] ice: implement set_eeprom functionality Jeff Kirsher
2019-11-06 0:46 ` [net-next 02/15] ice: add ethtool -m support for reading i2c eeprom modules Jeff Kirsher
2019-11-06 0:46 ` [net-next 03/15] ice: Add support for FW recovery mode detection Jeff Kirsher
2019-11-06 1:48 ` Jakub Kicinski [this message]
2019-11-06 18:50 ` Jeff Kirsher
2019-11-06 0:46 ` [net-next 04/15] ice: Update Boot Configuration Section read of NVM Jeff Kirsher
2019-11-06 0:46 ` [net-next 05/15] ice: handle DCBx non-contiguous TC request Jeff Kirsher
2019-11-06 0:46 ` [net-next 06/15] ice: fix driver unload flow Jeff Kirsher
2019-11-06 0:46 ` [net-next 07/15] ice: Adjust DCB INIT for SW mode Jeff Kirsher
2019-11-06 0:46 ` [net-next 08/15] ice: save PCI state in probe Jeff Kirsher
2019-11-06 0:46 ` [net-next 09/15] ice: Check for null pointer dereference when setting rings Jeff Kirsher
2019-11-06 0:46 ` [net-next 10/15] ice: write register with correct offset Jeff Kirsher
2019-11-06 0:46 ` [net-next 11/15] ice: print unsupported module message Jeff Kirsher
2019-11-06 0:46 ` [net-next 12/15] ice: print PCI link speed and width Jeff Kirsher
2019-11-06 0:46 ` [net-next 13/15] ice: Get rid of ice_cleanup_header Jeff Kirsher
2019-11-06 0:46 ` [net-next 14/15] ice: Rename VF function ice_vc_dis_vf to match its behavior Jeff Kirsher
2019-11-06 0:46 ` [net-next 15/15] ice: Fix return value when SR-IOV is not supported Jeff Kirsher
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=20191105174836.4df162dd@cakuba.netronome.com \
--to=jakub.kicinski@netronome.com \
--cc=andrewx.bowers@intel.com \
--cc=anirudh.venkataramanan@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@redhat.com \
--cc=sassmann@redhat.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).