]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99f41e6533d854efd91a5cca4522707383b346af
treee31fe4139a718cf2aefbbc941b3bf7f8590e7e2a
parent6b6743aed1c31874d7e640a82d4eedbd8d87326f
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