Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet
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
..
2016-03-01 15:19:43 -05:00
2016-04-18 14:53:21 -04:00
2016-02-25 16:51:05 -05:00
2016-01-10 22:50:14 -05:00
2016-02-17 16:15:45 -05:00
2016-05-12 00:04:08 -04:00
2016-05-09 00:15:23 -04:00
2016-04-28 14:21:15 -04:00