Message ID | 20240207060854.6524-5-lakshmi.sowjanya.d@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-55997-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2031158dyb; Tue, 6 Feb 2024 22:11:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHu6SKeuLAj196zcBKWG9AeRJdprY8qhkpxVmNtsPlBC2biMakCmmYfr9LaQ9u/uS9WlveY X-Received: by 2002:ac8:57d5:0:b0:42b:f5f2:e51a with SMTP id w21-20020ac857d5000000b0042bf5f2e51amr9748488qta.1.1707286275406; Tue, 06 Feb 2024 22:11:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707286275; cv=pass; d=google.com; s=arc-20160816; b=njKn3NHojRlagirwnQp0GK5XXagNC4zG4eIURCYBd9iBc7El54CUK3w3xozV2OD4jM H8aAPuxvjufOq+aEEN9Lj3oVj6hHUJqjksOPZZ9xw7JI5j9uXXSnXwEhDyPKqo2EgzIO 4pQ+K73+yH8w9AVqev1QXqvy6YqvAoyqZ/lIZTzU+k5wkCcjUhQZqo9J7Ifcv1JWv1BM XMQGtnOj4M2vfpEQgn//fj0Sf7PiYyaxgpZvGuwJF92VPGuSsvP5aczZdt9FS2oPxjks uRSUEQSwdRLUsxgj6XWLMc6mfMhwm9/Rr4nNCaJNjc8gPpuZa6kBTSmXTtYQsZX7RdqW C/kw== ARC-Message-Signature: i=2; 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=ZMVsDlHEi/hhbc7fNNZPtLZD9sTr8uGUpT+Hx2HmiTk=; fh=sV+K451Mjujb069iLQeqdpMa2IkMLhVFKv7NllvY8vA=; b=pkLbxWBstIv0Xc/1Rg2pa9LZMn96Kvb1bRSVO0a0HDnB7PiYxmNNIgUTV6Mb6lhMx1 nkrKUTdXEb5CJJSZ+HMYsBHqGLB1eJJtLHZFL7u6HxA0pE+VsCoCvRig+WL5U8JoSVoD NRV9yyBBIHYS3rs1GBB11R0jzg/Vo8yZmE/nKHu52yPzDGC+slKhn4Tpoo8BxI8p3ki8 8bW8/gpVsc4bnudfmfMJxrnZ1UGxT9sKEkuhBUo/WqzA8B5h9nzvRVT6zaDWe2NQ+32L 44JmRflnqJ1Htsi5dCfffcW9IRjIhCcvTEhqcJB4R+NWWYbpXpYhNuYNMfxD9rC/hvwX r/Pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="cRLhPJ/O"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-55997-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55997-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVVn7iYhxMKYmb2jeztFsQVex4m34ZLHKO97w3siVG8FDsDtxMJnUc5XeU930hunXkDOwAU0I3eCGDjz9bdNADi3avO2A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i18-20020ac85e52000000b0042c361c6ab3si535181qtx.17.2024.02.06.22.11.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 22:11:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55997-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="cRLhPJ/O"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-55997-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55997-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 382371C243B5 for <ouuuleilei@gmail.com>; Wed, 7 Feb 2024 06:11:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FAF5200DE; Wed, 7 Feb 2024 06:09:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cRLhPJ/O" 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 89DE4200A4; Wed, 7 Feb 2024 06:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707286171; cv=none; b=Lysa1XLIiwRxljqSsDEgFTUXBD0k1k+3aucmJW5Q11qOMjwcdjSZFIiDjBLSz4aMD+oLEVykuOiB5S2aXxLrZISuCfGDWBo/3DyR5ke/omX3umwlzqR6sLPoPzKXzb0CIbuMqNsD/lw0mxz6s+CueeyKbDfxcPbxFtpH0AHOGHA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707286171; c=relaxed/simple; bh=gErqH5iZ2fUCryD2fkCZUAp/vYOS2rcIZgcdaSpVZdg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ys4YoeaOaOrvqQcgqmmCQkcC2Z5apZwdiB7WADClzgXQ6DDKSn2A4DjfvDpvHKZQTbIF9Z5fkrS9Dkwxzp7nlfes2CAIHS8njg2F7JiuCLbgrlfbwU++vmOazkk4BgvmJ5tPnQUh7Cnl+GCoD1rN4ekszzNG363+Ny0dyPCAwIQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cRLhPJ/O; arc=none smtp.client-ip=192.55.52.88 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=1707286169; x=1738822169; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gErqH5iZ2fUCryD2fkCZUAp/vYOS2rcIZgcdaSpVZdg=; b=cRLhPJ/OeA2sWjLKX0unCS2ZbzKp8NegeOQ98B+B3pvz6Ly77Il9wNRg XYt9zT4M/n/1YIiiX4aRKxz6zh1Pogr8W5hiGdrQAd7vJGwQiz5EP9crj 3D5oD8N5IeHEoGx2zHW5KnN95HGc6s2juJx8+qgUQ3bMoi2v8CtqgHmGl gIeI2VfWM6ndP3vd2+1bb9JsYuX1SC8wgL+fPym+D7JX43trXpogju6pw Cx2pIRCMHNNFNjmLYszUZvprrHgJgtwf1pw60LOXRzCniY8nYX9OxfGxE 92oKfLDIyHjmEKYG272/X30WdMbxj98ZhbPfa5pUKRHTQGSxZk+CAMRQx A==; X-IronPort-AV: E=McAfee;i="6600,9927,10976"; a="436053987" X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="436053987" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2024 22:09:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,250,1701158400"; d="scan'208";a="5849766" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa004.fm.intel.com with ESMTP; 06 Feb 2024 22:09:22 -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, peter.hilber@opensynergy.com, pandith.n@intel.com, mallikarjunappa.sangannavar@intel.com, subramanian.mohan@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v4 04/11] igc: remove convert_art_to_tsc() Date: Wed, 7 Feb 2024 11:38:47 +0530 Message-Id: <20240207060854.6524-5-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240207060854.6524-1-lakshmi.sowjanya.d@intel.com> References: <20240207060854.6524-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: 1790219413410878664 X-GMAIL-MSGID: 1790219413410878664 |
Series |
Add support for Intel PPS Generator
|
|
Commit Message
D, Lakshmi Sowjanya
Feb. 7, 2024, 6:08 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 885faaa7b9de..0f568fc4b902 100644 --- a/drivers/net/ethernet/intel/igc/igc_ptp.c +++ b/drivers/net/ethernet/intel/igc/igc_ptp.c @@ -901,7 +901,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