mirror of https://gitee.com/openkylin/linux.git
ice: Poll for reset completion when DDP load fails
There are certain cases where the DDP load fails and the FW issues a core reset. For these cases, wait for reset to complete before proceeding with reset of the driver init. Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
b113cabd43
commit
9918f2d22f
|
@ -3086,6 +3086,9 @@ ice_log_pkg_init(struct ice_hw *hw, enum ice_status *status)
|
||||||
case ICE_AQ_RC_EBADMAN:
|
case ICE_AQ_RC_EBADMAN:
|
||||||
case ICE_AQ_RC_EBADBUF:
|
case ICE_AQ_RC_EBADBUF:
|
||||||
dev_err(dev, "An error occurred on the device while loading the DDP package. The device will be reset.\n");
|
dev_err(dev, "An error occurred on the device while loading the DDP package. The device will be reset.\n");
|
||||||
|
/* poll for reset to complete */
|
||||||
|
if (ice_check_reset(hw))
|
||||||
|
dev_err(dev, "Error resetting device. Please reload the driver\n");
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue