]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40evf: Add additional check for reset
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 10 Mar 2016 22:59:49 +0000 (14:59 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 17:40:47 +0000 (10:40 -0700)
commit25b8061724e55921d58140d330dd32a2ad9bf63f
tree1c6b9831af215208efe3ef051a408c113dbd50bc
parent713da23f7897783fd20ac46977a67983a5dde1c5
i40evf: Add additional check for reset

Orabug: 23176970

If the driver happens to read a register during the time in which the
device is undergoing reset, it will receive a value of 0xdeadbeef
instead of a valid value. Unfortunately, the driver may misinterpret
this as a valid value, especially if it's just looking for individual
bits.

Add an explicit check for this value when we are looking for admin queue
errors, and trigger reset recovery if we find it.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 19b73d8efaa459a66665b5e0a3e7acedd05f4901)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c