All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] e1000e: fix timing for 82579 Gigabit Ethernet controller
@ 2017-02-16 18:42 ` Bernd Faust
  0 siblings, 0 replies; 15+ messages in thread
From: Bernd Faust @ 2017-02-16 18:42 UTC (permalink / raw)
  To: Jeff Kirsher, Yanir Lubetkin, intel-wired-lan, netdev, linux-kernel
  Cc: Bernd Faust

After an upgrade to Linux kernel v4.x the hardware timestamps of the
82579 Gigabit Ethernet Controller are different than expected.
The values that are being read are almost four times as big as before
the kernel upgrade.

The difference is that after the upgrade the driver sets the clock
frequency to 25MHz, where before the upgrade it was set to 96MHz. Intel
confirmed that the correct frequency for this network adapter is 96MHz.

Signed-off-by: Bernd Faust <berndfaust@gmail.com>
---
 drivers/net/ethernet/intel/e1000e/netdev.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 7017281..8b7113d 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -3511,6 +3511,12 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca)

 	switch (hw->mac.type) {
 	case e1000_pch2lan:
+		/* Stable 96MHz frequency */
+		incperiod = INCPERIOD_96MHz;
+		incvalue = INCVALUE_96MHz;
+		shift = INCVALUE_SHIFT_96MHz;
+		adapter->cc.shift = shift + INCPERIOD_SHIFT_96MHz;
+		break;
 	case e1000_pch_lpt:
 		if (er32(TSYNCRXCTL) & E1000_TSYNCRXCTL_SYSCFI) {
 			/* Stable 96MHz frequency */
--
2.7.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-03-24  0:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-16 18:42 [PATCH] e1000e: fix timing for 82579 Gigabit Ethernet controller Bernd Faust
2017-02-16 18:42 ` [Intel-wired-lan] " Bernd Faust
2017-02-16 18:42 ` Bernd Faust
2017-02-19 12:55 ` [Intel-wired-lan] " Neftin, Sasha
2017-02-19 12:55   ` Neftin, Sasha
2017-02-26  9:08   ` Neftin, Sasha
2017-02-26  9:08     ` Neftin, Sasha
2017-02-27  8:20     ` Neftin, Sasha
2017-02-27  8:20       ` Neftin, Sasha
2017-02-27  8:39     ` Neftin, Sasha
2017-02-27  8:39       ` Neftin, Sasha
2017-02-28 21:09       ` Keller, Jacob E
2017-02-28 21:09         ` Keller, Jacob E
2017-03-24  0:43 ` Brown, Aaron F
2017-03-24  0:43   ` [Intel-wired-lan] " Brown, Aaron F

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.