Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/e1000: fix i219 hang on reset/close
[ upstream commit 1fc9701] [ upstream commit 675f65d] Squashing these commits because an issue was identified with the first commit after it was applied on master but before backported to stable. The second commit fixes the issue introduced in the first commit. commit 1fc9701 Author: Xiao Zhang <xiao.zhang@intel.com> Date: Mon Jul 22 23:11:52 2019 +0800 net/e1000: fix i219 hang on reset/close Unit hang may occur if multiple descriptors are available in the rings during reset or close. This state can be detected by configure status by bit 8 in register. If the bit is set and there are pending descriptors in one of the rings, we must flush them before reset or close. Fixes: 8058034 ("e1000: support EM devices (also known as e1000/e1000e)") Signed-off-by: Xiao Zhang <xiao.zhang@intel.com> Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com> commit 675f65d Author: Xiao Zhang <xiao.zhang@intel.com> Date: Wed Sep 11 01:40:55 2019 +0800 net/e1000: fix MAC type checking The mac types of i219 are e1000_pch_spt and e1000_pch_cnp, correct the checking code of mac type when flushing i219 descriptor rings. Fixes: 1fc9701 ("net/e1000: fix i219 hang on reset/close") Reported-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Xiao Zhang <xiao.zhang@intel.com> Acked-by: Kevin Traynor <ktraynor@redhat.com> Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com> Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
- Loading branch information
1 parent
9bbac9b
commit 0c97c2c
Showing
3 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters