Message ID | 20240103115602.19044-5-lakshmi.sowjanya.d@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-15472-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4970655dyb; Wed, 3 Jan 2024 03:58:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGROP7F7s/QZwrHwaKLmKX9X24TlWgatdp1PjbynzQV+VpbvRbbrHv5UDjqLKe0MPhcqhbI X-Received: by 2002:ac8:7f4f:0:b0:428:24fd:ec1f with SMTP id g15-20020ac87f4f000000b0042824fdec1fmr5549050qtk.94.1704283137136; Wed, 03 Jan 2024 03:58:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704283137; cv=none; d=google.com; s=arc-20160816; b=Z1yHuNwdMZIBGxIjh/MwmCjs5oa2BR7UzR7Hjhl8OksV1MPXmDYr4nAMR7F0B8JFAH rLzcv7OUwCVvqtL88jAe2331nSEMmNZorufmNxuPF5k7DcbEHVuXvgfx9sbXUmtmh3ar cCTdlfUu+I/b71U0angULPUeq73EDkk3jh+xat0X4NOyZ1FcovnS++Xgy9KfrxWGoT2m 1PuOi2/INnbuMqjGLGIZ4b1XSns+mjGsTtIHB6IW4hRFfI1YFip8LRSDo8vJkRAIqtIP Q/pqTFbQqTV0+svCw38Rv9pOLbjL4jVpQLws69xkXHJa/kCASYFq9sRCij9EJWz9T2Ul hwwg== 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=HY+3K73QFQIQdkcgLLe45LamK6tjdiSgaK06u0vyUyw=; fh=4NrVLy9e1N+ecgT+cYXeaYo3IQFJO3N8B6ul/oSBUd8=; b=uTTAzbOx84BBlLrAdTQK9KBH4WQVNuurEziCKk3sCV/IBF+jKRwBrPnGQUP3HzvV0a LBtG59jlmSGPqhCa6u0hFPbPrEGGlWgGP5r+zgSD/99vB7dcLDQsuRGQ3G0wiOevTKQO CLCJm+xRYQqf9hCN3Z+KitY3q5+GSirdcrwCcaXvdGQqvIttUTSoQJQbbudaj14QlSP6 Xm36HqtDSBhaqK+2yrv5y0pcIhtYtKF9fek8vy+Yb3ErruPWzai9Vw9S1Mieb0hMb4So pbTwdxD7c4LLcV3MfEegRNfcK/2AUby0J9hs1XJoFhHBrQeAVBRNc10KtwFvETQvxazx uVcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=amo91kT+; spf=pass (google.com: domain of linux-kernel+bounces-15472-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15472-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 x1-20020a05622a000100b0042583ddd457si28581965qtw.305.2024.01.03.03.58.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 03:58:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15472-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=amo91kT+; spf=pass (google.com: domain of linux-kernel+bounces-15472-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15472-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 E79CB1C227D5 for <ouuuleilei@gmail.com>; Wed, 3 Jan 2024 11:58:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9193E1A5A1; Wed, 3 Jan 2024 11:56:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="amo91kT+" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (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 70551199B6; Wed, 3 Jan 2024 11:56:47 +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=1704283007; x=1735819007; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=D/PGOAIibkxDj9zFnqmFxn8bnVqH9KXwIHXO5AddAko=; b=amo91kT+8xIn8KuIt3zwL9Ez+7SbdFXLpbi3ascRlsd9/QThO/yAnogj x5lO7SyykgoQ1dPju528wDtEmpyJku3jZeHUFA+nqoUBEopWpArh74lX8 DQxzYoS7uhlf25W6sPEFx4abYzZFQJjTTeSdVMY/Xbho/iybviGCQYimP qzKcsW2etRk3VjaKa7sHlF3uAOqNRMQCPgicsc2qzsPeZxqbGY3W3q2FU 2PcSjteTIi7w2ZGa7UGZdqZnMOZI9p5pwkzbn142qlmWFWobCNl0kMKXs cqVrCZCgdUT4L3Gyrdf9Ng6n65yWOvU0tUr5CTAjXrP/cWljE5jZJF1pQ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="428169500" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="428169500" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2024 03:56:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="1111348069" X-IronPort-AV: E=Sophos;i="6.04,327,1695711600"; d="scan'208";a="1111348069" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmsmga005.fm.intel.com with ESMTP; 03 Jan 2024 03:56:29 -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 v3 04/11] igc: remove convert_art_to_tsc() Date: Wed, 3 Jan 2024 17:25:55 +0530 Message-Id: <20240103115602.19044-5-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240103115602.19044-1-lakshmi.sowjanya.d@intel.com> References: <20240103115602.19044-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: 1787070394774777406 X-GMAIL-MSGID: 1787070394774777406 |
Series |
Add support for Intel PPS Generator
|
|
Commit Message
D, Lakshmi Sowjanya
Jan. 3, 2024, 11:55 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(-)
diff --git a/drivers/net/ethernet/intel/igc/igc_ptp.c b/drivers/net/ethernet/intel/igc/igc_ptp.c index 928f38792203..7899947cc855 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