Received: by 10.213.65.68 with SMTP id h4csp223226imn; Fri, 23 Mar 2018 03:15:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELst2aTjSN3krwEcLD5GajjRdIbc4mLi9uJxJxzW/XKZsvs0WYY2CICnh3o0/cHsKS9IrQqV X-Received: by 10.101.97.88 with SMTP id o24mr4138116pgv.270.1521800152370; Fri, 23 Mar 2018 03:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521800152; cv=none; d=google.com; s=arc-20160816; b=Ug77mXs939GAxnTlo06/7QKHoP/DDYKMhAEPNmtqgtBL5LLvleOeuG0KJrk0B1Ex2A yqYE5Wt+wnXhAJO06mMSrpFqh+sUh+ActNzItTDwRwVRQ41hfLtGXYAMpO4zWcQ/Nqzx fWQtry/iLvDWn2sNO+7h18twcYI9Dua55ycCkRTImZG23nEFMza98mwrguO6PI6W8te7 HQg2a75FXV7O7KITdcAuZkXu1zV9QUMHLQjKPYG0ZSptj6WZyiFYv6FVLGPaYza39E96 wYCon9qNlQOgbiEuqbZP7uYtA3WI1Sz/IMLY0d0V9YNoMkHswiRTF/sxt7uL7fd6FjQ/ bjig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=5hFStPEXbwYQf0y2DASHlnybKah/4QDtjhfu9Mv2hks=; b=K+L0ko2F8sn5TGOeoQFQIuwKurTA40nFRBGPr+5s2sCxrN0PzeM9glBNIAwLhsOAwA NxWZbTdQn1oEFJOk2mF1lv5vryCPChF7NJkX4a4kTOwOO9JX5fGVYJU81wqDfT6NGwOn xx1KlqTk/K08UQRnGAC0IwxXUMySYb804hXtzYsofD20md7z8AJJCI1F/smF4lhyeRxj wYzy/7mBE5hVXJKYkg5lAh1rEDicerHbhAbhRDEIjGQEs11FMFKo7YAUEr2PSYPJSbvH ayF2JMQlI1xBVOR7LOZTOy5gPNei0uUUPxa2atPzaACaGiVw+3YxosjOfN9TO4Z2qfa6 zR4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si2285312pfw.400.2018.03.23.03.15.37; Fri, 23 Mar 2018 03:15:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755973AbeCWKOE (ORCPT + 99 others); Fri, 23 Mar 2018 06:14:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45036 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755901AbeCWKOA (ORCPT ); Fri, 23 Mar 2018 06:14:00 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 84E01122A; Fri, 23 Mar 2018 10:13:59 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bernd Faust , Sasha Neftin , Jacob Keller , Aaron Brown , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.4 29/97] e1000e: fix timing for 82579 Gigabit Ethernet controller Date: Fri, 23 Mar 2018 10:54:16 +0100 Message-Id: <20180323094159.269039346@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094157.535925724@linuxfoundation.org> References: <20180323094157.535925724@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bernd Faust [ Upstream commit 5313eeccd2d7f486be4e5c7560e3e2be239ec8f7 ] 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 Acked-by: Sasha Neftin Acked-by: Jacob Keller Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/e1000e/netdev.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -3526,6 +3526,12 @@ s32 e1000e_get_base_timinca(struct e1000 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 */