net/ice/base: allow tool access to manageability register

E810-T supports signed netlists and to support this, the NVM update
tool needs to be able to read the GL_MNG_DEF_DEVID register. Add
said register to the allowlist in ice_validate_nvm_rw_reg.

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Junfeng Guo <junfeng.guo@intel.com>
This commit is contained in:
Qi Zhang 2021-09-16 17:52:58 +08:00
parent ed2ffccdc1
commit a972972fe0

View File

@ -4,6 +4,8 @@
#include "ice_common.h" #include "ice_common.h"
#define GL_MNG_DEF_DEVID 0x000B611C
/** /**
* ice_aq_read_nvm * ice_aq_read_nvm
* @hw: pointer to the HW struct * @hw: pointer to the HW struct
@ -1203,6 +1205,7 @@ ice_validate_nvm_rw_reg(struct ice_nvm_access_cmd *cmd)
case GLGEN_CSR_DEBUG_C: case GLGEN_CSR_DEBUG_C:
case GLGEN_RSTAT: case GLGEN_RSTAT:
case GLPCI_LBARCTRL: case GLPCI_LBARCTRL:
case GL_MNG_DEF_DEVID:
case GLNVM_GENS: case GLNVM_GENS:
case GLNVM_FLA: case GLNVM_FLA:
case PF_FUNC_RID: case PF_FUNC_RID: