mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-02 09:16:41 +09:00
i40e: clear AQ head and tail registers
During admin queue shutdown clear some more registers explicitly. Change-Id: Ifb235c691e1c55e76bf66e0642207f464153d05a Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
5807822f84
commit
26d7178f5b
@@ -466,10 +466,15 @@ static i40e_status i40e_shutdown_asq(struct i40e_hw *hw)
|
||||
return I40E_ERR_NOT_READY;
|
||||
|
||||
/* Stop firmware AdminQ processing */
|
||||
if (hw->mac.type == I40E_MAC_VF)
|
||||
if (hw->mac.type == I40E_MAC_VF) {
|
||||
wr32(hw, I40E_VF_ATQLEN1, 0);
|
||||
else
|
||||
wr32(hw, I40E_VF_ATQH1, 0);
|
||||
wr32(hw, I40E_VF_ATQT1, 0);
|
||||
} else {
|
||||
wr32(hw, I40E_PF_ATQLEN, 0);
|
||||
wr32(hw, I40E_PF_ATQH, 0);
|
||||
wr32(hw, I40E_PF_ATQT, 0);
|
||||
}
|
||||
|
||||
/* make sure lock is available */
|
||||
mutex_lock(&hw->aq.asq_mutex);
|
||||
@@ -500,10 +505,15 @@ static i40e_status i40e_shutdown_arq(struct i40e_hw *hw)
|
||||
return I40E_ERR_NOT_READY;
|
||||
|
||||
/* Stop firmware AdminQ processing */
|
||||
if (hw->mac.type == I40E_MAC_VF)
|
||||
if (hw->mac.type == I40E_MAC_VF) {
|
||||
wr32(hw, I40E_VF_ARQLEN1, 0);
|
||||
else
|
||||
wr32(hw, I40E_VF_ARQH1, 0);
|
||||
wr32(hw, I40E_VF_ARQT1, 0);
|
||||
} else {
|
||||
wr32(hw, I40E_PF_ARQLEN, 0);
|
||||
wr32(hw, I40E_PF_ARQH, 0);
|
||||
wr32(hw, I40E_PF_ARQT, 0);
|
||||
}
|
||||
|
||||
/* make sure lock is available */
|
||||
mutex_lock(&hw->aq.arq_mutex);
|
||||
|
||||
Reference in New Issue
Block a user