All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: davem@davemloft.net
Cc: Mitch Williams <mitch.a.williams@intel.com>,
	netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
	Andrew Bowers <andrewx.bowers@intel.com>,
	Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Subject: [net-next v3 08/13] ice: write register with correct offset
Date: Wed,  6 Nov 2019 16:52:15 -0800	[thread overview]
Message-ID: <20191107005220.1039-9-jeffrey.t.kirsher@intel.com> (raw)
In-Reply-To: <20191107005220.1039-1-jeffrey.t.kirsher@intel.com>

From: Mitch Williams <mitch.a.williams@intel.com>

The VF_MBX_ARQLEN register array is per-PF, not global, so we should not
use the absolute VF ID as an index. Instead, use the per-PF VF ID.

This fixes an issue with VFs on PFs other than 0 not seeing reset.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c b/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
index ad757412bb04..3d8c231b0614 100644
--- a/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
+++ b/drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
@@ -390,7 +390,7 @@ static void ice_trigger_vf_reset(struct ice_vf *vf, bool is_vflr, bool is_pfr)
 	 * by the time we get here.
 	 */
 	if (!is_pfr)
-		wr32(hw, VF_MBX_ARQLEN(vf_abs_id), 0);
+		wr32(hw, VF_MBX_ARQLEN(vf->vf_id), 0);
 
 	/* In the case of a VFLR, the HW has already reset the VF and we
 	 * just need to clean up, so don't hit the VFRTRIG register.
-- 
2.21.0


  parent reply	other threads:[~2019-11-07  0:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-07  0:52 [net-next v3 00/13][pull request] 100GbE Intel Wired LAN Driver Updates 2019-11-06 Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 01/13] ice: add ethtool -m support for reading i2c eeprom modules Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 02/13] ice: Update Boot Configuration Section read of NVM Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 03/13] ice: handle DCBx non-contiguous TC request Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 04/13] ice: fix driver unload flow Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 05/13] ice: Adjust DCB INIT for SW mode Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 06/13] ice: save PCI state in probe Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 07/13] ice: Check for null pointer dereference when setting rings Jeff Kirsher
2019-11-07  0:52 ` Jeff Kirsher [this message]
2019-11-07  0:52 ` [net-next v3 09/13] ice: print unsupported module message Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 10/13] ice: print PCI link speed and width Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 11/13] ice: Get rid of ice_cleanup_header Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 12/13] ice: Rename VF function ice_vc_dis_vf to match its behavior Jeff Kirsher
2019-11-07  0:52 ` [net-next v3 13/13] ice: Fix return value when SR-IOV is not supported Jeff Kirsher
2019-11-07  3:24 ` [net-next v3 00/13][pull request] 100GbE Intel Wired LAN Driver Updates 2019-11-06 Jakub Kicinski
2019-11-07  5:46 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191107005220.1039-9-jeffrey.t.kirsher@intel.com \
    --to=jeffrey.t.kirsher@intel.com \
    --cc=andrewx.bowers@intel.com \
    --cc=davem@davemloft.net \
    --cc=mitch.a.williams@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@redhat.com \
    --cc=sassmann@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.