ice: add additional debug logging for firmware update
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 7 Oct 2020 17:54:45 +0000 (10:54 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 20:14:19 +0000 (13:14 -0700)
commit1e8249cc9dc51d1f64b1322fa69834c589c8a3b4
tree0c5eebfe1fa53dbae479c8e9668e11466ee0fe0b
parent48d40025b5392dc9010eec3c99a5a4b6e5a29d1e
ice: add additional debug logging for firmware update

While debugging a recent failure to update the flash of an ice device,
I found it helpful to add additional logging which helped determine the
root cause of the problem being a timeout issue.

Add some extra dev_dbg() logging messages which can be enabled using the
dynamic debug facility, including one for ice_aq_wait_for_event that
will use jiffies to capture a rough estimate of how long we waited for
the completion of a firmware command.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Brijesh Behera <brijeshx.behera@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_devlink.c
drivers/net/ethernet/intel/ice/ice_fw_update.c
drivers/net/ethernet/intel/ice/ice_main.c