|
@@ -553,8 +553,9 @@ shutdown_arq_out:
|
|
|
**/
|
|
|
i40e_status i40e_init_adminq(struct i40e_hw *hw)
|
|
|
{
|
|
|
- i40e_status ret_code;
|
|
|
+ u16 cfg_ptr, oem_hi, oem_lo;
|
|
|
u16 eetrack_lo, eetrack_hi;
|
|
|
+ i40e_status ret_code;
|
|
|
int retry = 0;
|
|
|
|
|
|
/* verify input for valid configuration */
|
|
@@ -613,6 +614,12 @@ i40e_status i40e_init_adminq(struct i40e_hw *hw)
|
|
|
i40e_read_nvm_word(hw, I40E_SR_NVM_EETRACK_LO, &eetrack_lo);
|
|
|
i40e_read_nvm_word(hw, I40E_SR_NVM_EETRACK_HI, &eetrack_hi);
|
|
|
hw->nvm.eetrack = (eetrack_hi << 16) | eetrack_lo;
|
|
|
+ i40e_read_nvm_word(hw, I40E_SR_BOOT_CONFIG_PTR, &cfg_ptr);
|
|
|
+ i40e_read_nvm_word(hw, (cfg_ptr + I40E_NVM_OEM_VER_OFF),
|
|
|
+ &oem_hi);
|
|
|
+ i40e_read_nvm_word(hw, (cfg_ptr + (I40E_NVM_OEM_VER_OFF + 1)),
|
|
|
+ &oem_lo);
|
|
|
+ hw->nvm.oem_ver = ((u32)oem_hi << 16) | oem_lo;
|
|
|
|
|
|
if (hw->aq.api_maj_ver > I40E_FW_API_VERSION_MAJOR) {
|
|
|
ret_code = I40E_ERR_FIRMWARE_API_VERSION;
|