aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAvinash Dayanand <avinash.dayanand@intel.com>2016-07-27 12:02:36 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-08-18 11:43:12 -0700
commit70df973b5eb48b19ba29105ecfecb3e50efe3c6d (patch)
tree05aa5aebc18c112ed29aa67e7fd4519c1d060891 /drivers
parenti40e: don't allow reduction of channels below active FD rules (diff)
downloadlinux-dev-70df973b5eb48b19ba29105ecfecb3e50efe3c6d.tar.xz
linux-dev-70df973b5eb48b19ba29105ecfecb3e50efe3c6d.zip
i40e: Force register writes to mitigate sync issues with iwarp VF driver
This patch is a fix for the bug i.e. unable to create iwarp device in VF. This is a sync issue and the iwarp device open is called even before the PCI register writes are done. Forcing the PCI register writes to happen just before it exits the function. Change-ID: I60c6a2c709da89e845f2764cc50ce8b7373c8c44 Signed-off-by: Avinash Dayanand <avinash.dayanand@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_client.c b/drivers/net/ethernet/intel/i40e/i40e_client.c
index 8726269188f3..90b435cd77ec 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_client.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_client.c
@@ -793,7 +793,8 @@ static int i40e_client_setup_qvlist(struct i40e_info *ldev,
wr32(hw, I40E_PFINT_AEQCTL, reg);
}
}
-
+ /* Mitigate sync problems with iwarp VF driver */
+ i40e_flush(hw);
return 0;
err:
kfree(ldev->qvlist_info);