Skip to content

Commit 5afe67b

Browse files
manishc88smb49
authored andcommitted
bnx2x: Invalidate fastpath HSI version for VFs
BugLink: https://bugs.launchpad.net/bugs/1964422 commit 802d4d2 upstream Commit 0a6890b ("bnx2x: Utilize FW 7.13.15.0.") added validation for fastpath HSI versions for different client init which was not meant for SR-IOV VF clients, which resulted in firmware asserts when running VF clients with different fastpath HSI version. This patch along with the new firmware support in patch #1 fixes this behavior in order to not validate fastpath HSI version for the VFs. Fixes: 0a6890b ("bnx2x: Utilize FW 7.13.15.0.") Signed-off-by: Manish Chopra <[email protected]> Signed-off-by: Prabhakar Kushwaha <[email protected]> Signed-off-by: Alok Prasad <[email protected]> Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Kamal Mostafa <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent 5fececb commit 5afe67b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,18 @@ static void bnx2x_vf_igu_reset(struct bnx2x *bp, struct bnx2x_virtf *vf)
758758

759759
void bnx2x_vf_enable_access(struct bnx2x *bp, u8 abs_vfid)
760760
{
761+
u16 abs_fid;
762+
763+
abs_fid = FW_VF_HANDLE(abs_vfid);
764+
761765
/* set the VF-PF association in the FW */
762-
storm_memset_vf_to_pf(bp, FW_VF_HANDLE(abs_vfid), BP_FUNC(bp));
763-
storm_memset_func_en(bp, FW_VF_HANDLE(abs_vfid), 1);
766+
storm_memset_vf_to_pf(bp, abs_fid, BP_FUNC(bp));
767+
storm_memset_func_en(bp, abs_fid, 1);
768+
769+
/* Invalidate fp_hsi version for vfs */
770+
if (bp->fw_cap & FW_CAP_INVALIDATE_VF_FP_HSI)
771+
REG_WR8(bp, BAR_XSTRORM_INTMEM +
772+
XSTORM_ETH_FUNCTION_INFO_FP_HSI_VALID_E2_OFFSET(abs_fid), 0);
764773

765774
/* clear vf errors*/
766775
bnx2x_vf_semi_clear_err(bp, abs_vfid);

0 commit comments

Comments
 (0)