]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: driver initialization for kdump/kexec
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Thu, 15 Jun 2017 18:48:09 +0000 (14:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jun 2017 19:21:07 +0000 (15:21 -0400)
commitc9c01661adb93ef05f0d104ba0437c85fb1b34c0
treede3f5026310de3fc9df222f576a672cf761d4765
parent7d7d165c401d0e6d1cb0f16194276c0cc83b6675
ibmvnic: driver initialization for kdump/kexec

When booting into the kdump/kexec kernel, pHyp and vios
are not prepared for the initialization crq request and
a failover transport event is generated. This is not
handled correctly.

At this point in initialization the driver is still in
the 'probing' state and cannot handle a full reset of the
driver as is normally done for a failover transport event.

To correct this we catch driver resets while still in the
'probing' state and return EAGAIN. This results in the
driver tearing down the main crq and calling ibmvnic_init()
again.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c