Message ID | 20231221093254.9599-5-lakshmi.sowjanya.d@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-8146-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp294020dyi; Thu, 21 Dec 2023 01:40:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGg+ZcY0eD8kznHBeg7RQZVVY66M7f7onX5XElloCVxRpBS+yYgS5fi5uqPSdYzv+PbVdb8 X-Received: by 2002:a05:622a:14ce:b0:427:7c4f:9d16 with SMTP id u14-20020a05622a14ce00b004277c4f9d16mr4475606qtx.14.1703151603527; Thu, 21 Dec 2023 01:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703151603; cv=none; d=google.com; s=arc-20160816; b=qYM2XlDJsBIIjE5o1XRw+2uns5a4KNqmMcIILdnZgU2yGIKU4fmVa25zwlwFob38Hx jvleKqn9AGTuU6a2ekCBKQFOXj6R4+EIRMANXoQSvvBg65cRx6QENN+vcC3C2xtk12en GPZgu8GjRHLxDWfElQBHY/lk4GI+OIaYOa58IvUY31oLLqDrqEIiVP/cduxuu2Fas5Gk wuKqsAOs+F9lcJnS0I9VEkVN7zSv6la4J2I9+mJqT197ynBbQzBHDqclfNneilVV5jHJ nyDLhIPFDBL+ysfYNc8UxnjADVoe0oZ1+XsIYYeevzShyXrWmFLKnon4mhJpkcP5l+uH AAgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=g6PMf4LeFLj6oaUgCdfFWfrnF6Z853ZYm4qrUxlOA6A=; fh=4NrVLy9e1N+ecgT+cYXeaYo3IQFJO3N8B6ul/oSBUd8=; b=uuZn++9TgV6lA3OOkxIniiAihdoTCQ2MPFYEoAa61JciX0OZK8S59dYUaz/ZPrQTCo O0JcCJ0e0qSL6Z76QsUEznmf32rk2YCZ4E2JAXLtuibFiileHkKBQfmpS00MiIVOKUon PXMNygy3Pnm/UFTBOjKDM2J1++usqEHXKmPFLBLGlQlA+OtZ+5TpWe2n/8axNHrRC5Dz zQAxu8hkP6BYeabzQP87vcor1uYW21S6DcrEGu8aePpFmbbCh8S2pRE0GLFfRxqMgXwX TzOt/bzWJLdgVMNoropZuMr5Rdj+ZDWNCHr3rUS5svQmdw6cV4fR3R3A19/y+SI77eBM q1xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e95KwguN; spf=pass (google.com: domain of linux-kernel+bounces-8146-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8146-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e14-20020ac8598e000000b0042582adeedesi1696370qte.81.2023.12.21.01.40.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:40:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8146-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e95KwguN; spf=pass (google.com: domain of linux-kernel+bounces-8146-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8146-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 413651C234CE for <ouuuleilei@gmail.com>; Thu, 21 Dec 2023 09:40:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3401251C42; Thu, 21 Dec 2023 09:33:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="e95KwguN" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47F5551C26; Thu, 21 Dec 2023 09:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703151208; x=1734687208; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FqzmFJD7Hjfw0d9iCOZZDYcOM+cgVL/B/wnjWMOn7QY=; b=e95KwguNwJeVqKo/gHrw5AfYu7+2068kw+T9iK2A+wkUq4GLTwb8fSR2 yVtIISvmdJELyd4juX/Gc7cFeFXELoAe8GGnKsnUd/XiaxT3Vhml2hEJV S2wyilF4IVHeT/d7TF8geYMp/Bchtu0EsZjPmd8Zo/WVzXmgbvxcMqRyA zWlqyJJP71LxwpMmTJLFDNxbxH2e/bBtXHiE/Qukv674oh8K17FOaiiFy pMzmhj++xDbpJsY9k0ULQDE7kIjb8osPJ6sg6XccQwBetghcBFNHQhdB9 9EuEV0cxJPopUaAX2+MJ4l23bcVG3Qr+PDFFt+/xkNrrrqbbWC4jVJ9XP A==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="3188551" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="3188551" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 01:33:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="810918202" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="810918202" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by orsmga001.jf.intel.com with ESMTP; 21 Dec 2023 01:33:21 -0800 From: lakshmi.sowjanya.d@intel.com To: tglx@linutronix.de, jstultz@google.com, giometti@enneenne.com, corbet@lwn.net, linux-kernel@vger.kernel.org Cc: x86@kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, intel-wired-lan@lists.osuosl.org, andriy.shevchenko@linux.intel.com, eddie.dong@intel.com, christopher.s.hall@intel.com, jesse.brandeburg@intel.com, davem@davemloft.net, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, perex@perex.cz, linux-sound@vger.kernel.org, anthony.l.nguyen@intel.com, pandith.n@intel.com, mallikarjunappa.sangannavar@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [RFC PATCH v2 04/10] igc: remove convert_art_to_tsc() Date: Thu, 21 Dec 2023 15:02:48 +0530 Message-Id: <20231221093254.9599-5-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20231221093254.9599-1-lakshmi.sowjanya.d@intel.com> References: <20231221093254.9599-1-lakshmi.sowjanya.d@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785883895862305216 X-GMAIL-MSGID: 1785883895862305216 |
Series |
Add support for Intel PPS Generator
|
|
Commit Message
D, Lakshmi Sowjanya
Dec. 21, 2023, 9:32 a.m. UTC
From: Thomas Gleixner <tglx@linutronix.de> Remove convert_art_to_tsc() function call, Pass system clock cycles and clocksource ID as input to get_device_system_crosststamp(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com> --- drivers/net/ethernet/intel/igc/igc_ptp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Comments
On Thu, Dec 21, 2023 at 03:02:48PM +0530, lakshmi.sowjanya.d@intel.com wrote: > From: Thomas Gleixner <tglx@linutronix.de> > > Remove convert_art_to_tsc() function call, Pass system clock cycles and > clocksource ID as input to get_device_system_crosststamp(). ... > + return (struct system_counterval_t) { > + .cs_id = CSID_X86_ART, > + .cycles = tstamp, > + .nsecs = true, Either you should remove the extra spaces before '=' or replace them by TAB(s). > + };
diff --git a/drivers/net/ethernet/intel/igc/igc_ptp.c b/drivers/net/ethernet/intel/igc/igc_ptp.c index 928f38792203..11108eb075bc 100644 --- a/drivers/net/ethernet/intel/igc/igc_ptp.c +++ b/drivers/net/ethernet/intel/igc/igc_ptp.c @@ -911,7 +911,11 @@ static bool igc_is_crosststamp_supported(struct igc_adapter *adapter) static struct system_counterval_t igc_device_tstamp_to_system(u64 tstamp) { #if IS_ENABLED(CONFIG_X86_TSC) && !defined(CONFIG_UML) - return convert_art_ns_to_tsc(tstamp); + return (struct system_counterval_t) { + .cs_id = CSID_X86_ART, + .cycles = tstamp, + .nsecs = true, + }; #else return (struct system_counterval_t) { }; #endif