OSDN Git Service

ice: devlink: add shadow-ram region to snapshot Shadow RAM
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 12 Oct 2021 00:41:10 +0000 (17:41 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 15 Dec 2021 16:34:54 +0000 (08:34 -0800)
commit78ad87da99788538f3f26235fe78bc52075a6f4f
treee31fe4139a718cf2aefbbc941b3bf7f8590e7e2a
parent3bc14ea0d12a57a968038f8e86e9bc2c1668ad9a
ice: devlink: add shadow-ram region to snapshot Shadow RAM

We have a region for reading the contents of the NVM flash as
a snapshot. This region does not allow reading the Shadow RAM, as it
always passes the FLASH_ONLY bit to the low level firmware interface.

Add a separate shadow-ram region which will allow snapshot of the
current contents of the Shadow RAM. This data is built from the NVM
contents but is distinct as the device builds up the Shadow RAM during
initialization, so being able to snapshot its contents can be useful
when attempting to debug flash related issues.

Fix the comment description of the nvm-flash region which incorrectly
stated that it filled the shadow-ram region, and add a comment
explaining that the nvm-flash region does not actually read the Shadow
RAM.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_devlink.c