linux/drivers/net/ethernet/intel
Denys Vlasenko a07fd74d5e e1000e: e1000e_cyclecounter_read(): fix er32(SYSTIML) overflow check
If two consecutive reads of the counter are the same, it is also
not an overflow.  "systimel_1 < systimel_2" should be
"systimel_1 <= systimel_2".

Before the patch, we could perform an *erroneous* correction:

Let's say that systimel_1 == systimel_2 == 0xffffffff.
"systimel_1 < systimel_2" is false, we think it's an overflow,
we read "systimeh = er32(SYSTIMH)" which meanwhile had incremented,
and use "(systimeh << 32) + systimel_2" value which is 2^32 too large.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: intel-wired-lan@lists.osuosl.org
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-05-13 14:52:31 -07:00
..
e1000 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-04-09 17:41:41 -04:00
e1000e e1000e: e1000e_cyclecounter_read(): fix er32(SYSTIML) overflow check 2016-05-13 14:52:31 -07:00
fm10k treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
i40e i40e: constify i40e_client_ops structure 2016-05-05 23:32:59 -07:00
i40evf i40evf: Allocate Rx buffers properly 2016-05-05 23:07:30 -07:00
igb igb: make igb_update_pf_vlvf static 2016-05-13 14:39:59 -07:00
igbvf igbvf: remove "link is Up" message when registering mcast address 2016-02-24 15:45:50 -08:00
ixgb drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
ixgbe Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue 2016-05-04 17:13:34 -04:00
ixgbevf ixgbevf: Remove unused parameter 2016-05-04 00:24:32 -07:00
e100.c e100: Release skb when DMA mapping is failed in e100_xmit_prepare 2015-08-18 14:06:05 -07:00
Kconfig net: intel: remove dead links 2016-04-06 20:54:45 -07:00
Makefile