[Intel-wired-lan] [next PATCH S30 v3 11/13] i40evf: Add additional check for reset

Bowers, AndrewX andrewx.bowers at intel.com
Tue Mar 15 16:55:42 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of ajdayana
> Sent: Thursday, March 10, 2016 3:00 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S30 v3 11/13] i40evf: Add additional
> check for reset
> 
> From: Mitch Williams <mitch.a.williams at intel.com>
> 
> 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 at intel.com>
> ---
>  drivers/net/ethernet/intel/i40evf/i40evf_main.c | 2 ++
>  1 file changed, 2 insertions(+)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
Driver correctly handles commands while device is in reset, confirmed registers return 0xDEADBEEF during reset


More information about the Intel-wired-lan mailing list