]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Add MC BISTs to ethtool offline self test on EF10
authorJon Cooper <jcooper@solarflare.com>
Mon, 16 Sep 2013 13:18:51 +0000 (14:18 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:05:48 +0000 (22:05 +0000)
commit9a669d1a4cc18e63ec4891d8e1e0cac646b79b53
treed6454c540ab6a192f8147173e3cf73e669de28c4
parent431d4809ddd782b14c41fcfb82e1a59f20e6f24a
sfc: Add MC BISTs to ethtool offline self test on EF10

To run BISTs the MC goes down in to a special mode where it will only
respond to MCDI from the testing PF, and TX, RX and event queues are
torn down. Other PFs get a message as it goes down to tell them it's
going down.

When the other PFs get this message, they check the soft status
register to tell when the MC has rebooted after BIST mode and they can
start recovery.

[bwh: Convert the test result to 1 or -1 as for earlier NICs]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/enum.h
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/selftest.c
drivers/net/ethernet/sfc/selftest.h