Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp233994imm; Tue, 22 May 2018 17:44:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqA1AtJW7GjKzJdBWNAaYNjD2rrg+0hD1RKfhgKsMRduZB2xzjKvIvSOmLEH/8EK6cU5yN1 X-Received: by 2002:a62:e0cf:: with SMTP id d76-v6mr680652pfm.52.1527036297033; Tue, 22 May 2018 17:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527036296; cv=none; d=google.com; s=arc-20160816; b=klxfxgWRxb8ObPSCSqIgyC+o104EB4upZbJYJQ1zYpBcPJNiMf07P4mnLFD9DYpKzv 51mlunVeiZ+3k+NLBd1WkifYnAxIyiuWpfLkAXGL9ipQc94Iy5kcnAXOI0YqeNYPdFjz PNNYOpey+mrMhl8JygTkVY/Wc106VhmLmiJoejlYOZrWNNq8k3YRQUfaJedBGpUg8LYL UceqsXTNN0l3vCUDSsp9bdR6lqIrMPVxQMyO4sXlDyNRz5QG0uoz5vH7Z0NNSH4GE4yB Vbn6jtXcW/1ixAGPfx6LWB+E7gRh1WwpZT7K64xIiNGNaXs/e3tWr99SfIeJ23nkATZr C/zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=CmauJOPQXTV0cFLGRZOO+OG7iQoQgvSCf8NUo+W7dI8=; b=U6ebbmpNyZMsMt/BO+/wX9divULYwl29xMCF12QtOe5q35Jl5/Ca2LDDc4WZ9WWy5Y qjrmAV/lHNhtcnnv9p/S6cZoDXzj7cc7XGgQYn7TYLk9Q3mhkJDR6Qnuip9mp/0ykGqJ fxRVIguYS6zqIYTBf5dBPWDSDD2BaKETU4zlkIngi1oxtmup1K8cUMb+N54aVtS5VX6Q wx01BiQQ4Qj9YoPD6oU2RijnLEXR1ixvA5tC3SscbE7WSMWpdkzK/PJHZiQORhyPsJce NNRs7jvpiLPZitCH5SzJST44jiALo67F5Y+FqxCAgAlkq2oQZms1kaiifwhuGjZP2hXa DEXg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2-v6si17399734plh.136.2018.05.22.17.44.40; Tue, 22 May 2018 17:44:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753529AbeEWAob convert rfc822-to-8bit (ORCPT + 99 others); Tue, 22 May 2018 20:44:31 -0400 Received: from mga04.intel.com ([192.55.52.120]:34869 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbeEWAoa (ORCPT ); Tue, 22 May 2018 20:44:30 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2018 17:44:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,431,1520924400"; d="scan'208";a="57630843" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by fmsmga001.fm.intel.com with ESMTP; 22 May 2018 17:44:27 -0700 Received: from orsmsx158.amr.corp.intel.com (10.22.240.20) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 22 May 2018 17:44:27 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.209]) by ORSMSX158.amr.corp.intel.com ([169.254.10.238]) with mapi id 14.03.0319.002; Tue, 22 May 2018 17:44:26 -0700 From: "Brown, Aaron F" To: Benjamin Poirier , "Kirsher, Jeffrey T" CC: "ehabkost@redhat.com" , "netdev@vger.kernel.org" , "jayanth@goubiq.com" , "linux-kernel@vger.kernel.org" , "Bart.VanAssche@wdc.com" , "postmodern.mod3@gmail.com" , Achim Mildenberger , "intel-wired-lan@lists.osuosl.org" , "olouvignes@gmail.com" Subject: RE: [Intel-wired-lan] [PATCH] e1000e: Ignore TSYNCRXCTL when getting I219 clock attributes Thread-Topic: [Intel-wired-lan] [PATCH] e1000e: Ignore TSYNCRXCTL when getting I219 clock attributes Thread-Index: AQHT6DCtUDdppdXIbkmUH97qUqERPKQ8jdnQ Date: Wed, 23 May 2018 00:44:26 +0000 Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B964D305D@ORSMSX101.amr.corp.intel.com> References: <02874ECE860811409154E81DA85FBB5882D918F3@ORSMSX115.amr.corp.intel.com> <20180510072835.5549-1-bpoirier@suse.com> In-Reply-To: <20180510072835.5549-1-bpoirier@suse.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On > Behalf Of Benjamin Poirier > Sent: Thursday, May 10, 2018 12:29 AM > To: Kirsher, Jeffrey T > Cc: ehabkost@redhat.com; netdev@vger.kernel.org; jayanth@goubiq.com; > linux-kernel@vger.kernel.org; Bart.VanAssche@wdc.com; > postmodern.mod3@gmail.com; Achim Mildenberger > ; intel-wired-lan@lists.osuosl.org; > olouvignes@gmail.com > Subject: [Intel-wired-lan] [PATCH] e1000e: Ignore TSYNCRXCTL when getting > I219 clock attributes > > There have been multiple reports of crashes that look like > kernel: RIP: 0010:[] timecounter_read+0xf/0x50 > [...] > kernel: Call Trace: > kernel: [] e1000e_phc_gettime+0x2f/0x60 [e1000e] > kernel: [] e1000e_systim_overflow_work+0x1d/0x80 > [e1000e] > kernel: [] process_one_work+0x155/0x440 > kernel: [] worker_thread+0x116/0x4b0 > kernel: [] kthread+0xd2/0xf0 > kernel: [] ret_from_fork+0x3f/0x70 > > These can be traced back to the fact that e1000e_systim_reset() skips the > timecounter_init() call if e1000e_get_base_timinca() returns -EINVAL, which > leads to a null deref in timecounter_read(). > > Commit 83129b37ef35 ("e1000e: fix systim issues", v4.2-rc1) reworked > e1000e_get_base_timinca() in such a way that it can return -EINVAL for > e1000_pch_spt if the SYSCFI bit is not set in TSYNCRXCTL. > > Some experimentation has shown that on I219 (e1000_pch_spt, "MAC: 12") > adapters, the E1000_TSYNCRXCTL_SYSCFI flag is unstable; TSYNCRXCTL reads > sometimes don't have the SYSCFI bit set. Retrying the read shortly after > finds the bit to be set. This was observed at boot (probe) but also link up > and link down. > > Moreover, the phc (PTP Hardware Clock) seems to operate normally even > after > reads where SYSCFI=0. Therefore, remove this register read and > unconditionally set the clock parameters. > > Reported-by: Achim Mildenberger > Message-Id: <20180425065243.g5mqewg5irkwgwgv@f2> > Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1075876 > Fixes: 83129b37ef35 ("e1000e: fix systim issues") > Signed-off-by: Benjamin Poirier > --- > drivers/net/ethernet/intel/e1000e/netdev.c | 15 ++++++--------- > 1 file changed, 6 insertions(+), 9 deletions(-) Tested-by: Aaron Brown