Skip to content

Commit 10a955f

Browse files
Anjali Singhai JainJeff Kirsher
authored andcommitted
i40e: Detect ATR HW Evict NVM issue and disable the feature
This patch fixes a problem with the HW ATR eviction feature where the NVM setting was incorrect. This patch detects the issue on X720 adapters and disables the feature if the NVM setting is incorrect. Without this patch, HW ATR Evict feature does not work on broken NVMs and is not detected either. If the HW ATR Evict feature is disabled the SW Eviction feature will take effect. Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com> Signed-off-by: Alice Michael <alice.michael@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent 28921a0 commit 10a955f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎drivers/net/ethernet/intel/i40e/i40e_main.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8963,6 +8963,14 @@ static int i40e_sw_init(struct i40e_pf *pf)
89638963
I40E_HW_PTP_L4_CAPABLE |
89648964
I40E_HW_WOL_MC_MAGIC_PKT_WAKE |
89658965
I40E_HW_OUTER_UDP_CSUM_CAPABLE);
8966+
8967+
#define I40E_FDEVICT_PCTYPE_DEFAULT 0xc03
8968+
if (rd32(&pf->hw, I40E_GLQF_FDEVICTENA(1)) !=
8969+
I40E_FDEVICT_PCTYPE_DEFAULT) {
8970+
dev_warn(&pf->pdev->dev,
8971+
"FD EVICT PCTYPES are not right, disable FD HW EVICT\n");
8972+
pf->hw_features &= ~I40E_HW_ATR_EVICT_CAPABLE;
8973+
}
89668974
} else if ((pf->hw.aq.api_maj_ver > 1) ||
89678975
((pf->hw.aq.api_maj_ver == 1) &&
89688976
(pf->hw.aq.api_min_ver > 4))) {

0 commit comments

Comments
 (0)