Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp856441lqt; Tue, 19 Mar 2024 06:10:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZAc6q4vD5hddkuiY0t+Z6xTLFPyaiHPQ81eWZ198tV3J/xis+tYDySljl5YOJKZkRHIPphmCWnPgz6HQuDKyEqDhLtdCaYAbayqfNcQ== X-Google-Smtp-Source: AGHT+IELH9e+Q3SZdfcGBS92uLYxTK4YIiYZyFH/34E8qkcYz3Y0EGX7hesK8XlTZhrPAnZztwZG X-Received: by 2002:a17:902:e802:b0:1dd:9984:29d3 with SMTP id u2-20020a170902e80200b001dd998429d3mr17050176plg.32.1710853829699; Tue, 19 Mar 2024 06:10:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710853829; cv=pass; d=google.com; s=arc-20160816; b=a34RsvU9ELR94EPhLtKqsV188RuPyZ5MPjTUZzKBWofc/drON3ql/pUHPJmjYOT3nc nMR4cZeohYzFV3Yyz6LqHD5ceK1OjFMpZc81BuWcX5WwL+xfUgqOlYLmUAf+eXfkm7Xp hAOwXM5uGfIMOgq5R+ypnMb3+py63OOaI+GdPaqjaKddyhwTN5/Ao32XipSqzT4q2CCQ m9AOaIJO2wwR7tFcJW2lzvx62IjGhzeAbeo0dzzTghtBHzJBpvOQUXcYzGPbyh7yXPYv XBSZhzh8aIw/jMyT25KNBHBBmUjpb57eHZHEZbVDjpNI1Uns+R/2H0yDezwyG6q1qdmF mEow== 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=XlQBFW1Jy4FEH+8IAy3+RnqD/Vl3NFXabLbEkvgc2Hc=; fh=CGg6k4pIc/rgUymTUfzOJIVXiUSHuw63GXmrBxA2aU8=; b=jUtw2aA6LiDjpCJWN8MyQSTj6Pa/HIgTx4122vvLhX/sByBQu4NrLFF2obiqgQD3bE c8wZL8X+Fyizx1pw2V8nC3y8j+iT/iBY8Sig1pY2bEN6aSCO/ZBuobOS04u9NCXNnFMf 2YUreMUJ69lldcIiX3Nfjdi9w/Gqlq5wvnftPIfWiNDfxfL+oq4xq9eSb14+9YLSEugA a4KpVr/ACfccxUW/AYUr1utnwKsE7eOyicveuzOmOyeipKXlytxJSnqrcwwhNuceM/4u TxZNQxM9U+M+myeSaolKXFypsev4WLXWM5qlXsb43CADPzba5ykK0gQ6R4tgBwWNev2C W5NA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ctnS1q05; 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-107563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f13-20020a170902684d00b001dd8af2a0c3si9007599pln.110.2024.03.19.06.10.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 06:10:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ctnS1q05; 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-107563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107563-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 62A52B230D4 for ; Tue, 19 Mar 2024 13:09:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E21E823D0; Tue, 19 Mar 2024 13:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ctnS1q05" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 2A9C240BF0; Tue, 19 Mar 2024 13:06:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853607; cv=none; b=MX+IXyBJgBZp+QyWFzjMuFhUxLfIT7i+Sj/9DQjJcEcjegYSh4on149vLcBT151u+ghMx59AdmQBXOtAvs3DuKym/7cOG/2Qft/ZOj8cfZcyyfC95+RCqyhztEzZA9/BWNc6mXRINu/A0MIj2/3Wq97LfXlwghUjqzZbfWKo8jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710853607; c=relaxed/simple; bh=rZDLfhfpSZ9NfdEthCrn4EePA9THWzFIkSeNAaXhRPI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=S0bt0WM1WHup/dscHcXlzSnWzWjBuiGqVtFPBDI4upvt7LeShJ/vVImp9ctnGZDPW+KSoUEEzPoPOtVYlneKPIqGJcsFVSvhwKSvKcoZP/nHe9BhwAguEMUgsl2HSEvjTpN2urzobYRPCj+RlOBB0qP7X7Igvgt1TXXDaJshqNI= 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=ctnS1q05; arc=none smtp.client-ip=198.175.65.16 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=1710853606; x=1742389606; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rZDLfhfpSZ9NfdEthCrn4EePA9THWzFIkSeNAaXhRPI=; b=ctnS1q05VRxi0DjrwFUlhQExj91gb99HIvyvvLDg5IzRxUOqf+rgpOBm pix/NxtgMX9L5xRNtK1F4dgJD84N7UV0XHE/cGfPBn5PGypnrDNEmqnML nQURMcJM8ucCoB4okclKTEZWQ475ZvqwzcFhzvjPpO3UpIxOgZIWpyvfR Vj4d6F60ejgNR4FAKlsH36I03Mop9SzPnRYB2Vg2pZpKZvEbpjGTnSZlJ C37b1IQqhaRKZYOKfLA1iFeZeIcTF9HgqqvHN1ZfBy7yWdmZL8LfaFv4G YwNiDuPZNlpEDXRr1Ksk7zmJv0aaVGxCm+KkY9Wxy6OPNqzGdnSAkT0vI A==; X-IronPort-AV: E=McAfee;i="6600,9927,11017"; a="5843025" X-IronPort-AV: E=Sophos;i="6.07,137,1708416000"; d="scan'208";a="5843025" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2024 06:06:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,137,1708416000"; d="scan'208";a="44883240" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa001.fm.intel.com with ESMTP; 19 Mar 2024 06:06:38 -0700 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, basavaraj.goudar@intel.com, thejesh.reddy.t.r@intel.com, lakshmi.sowjanya.d@intel.com Subject: [PATCH v5 07/11] ice/ptp: remove convert_art_to_tsc() Date: Tue, 19 Mar 2024 18:35:43 +0530 Message-Id: <20240319130547.4195-8-lakshmi.sowjanya.d@intel.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240319130547.4195-1-lakshmi.sowjanya.d@intel.com> References: <20240319130547.4195-1-lakshmi.sowjanya.d@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Thomas Gleixner 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 Signed-off-by: Lakshmi Sowjanya D --- drivers/net/ethernet/intel/ice/ice_ptp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c index c11eba07283c..c416dd2e6622 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.c +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c @@ -2116,7 +2116,8 @@ ice_ptp_get_syncdevicetime(ktime_t *device, hh_ts_lo = rd32(hw, GLHH_ART_TIME_L); hh_ts_hi = rd32(hw, GLHH_ART_TIME_H); hh_ts = ((u64)hh_ts_hi << 32) | hh_ts_lo; - *system = convert_art_ns_to_tsc(hh_ts); + system->cycles = hh_ts; + system->cs_id = CSID_X86_ART; /* Read Device source clock time */ hh_ts_lo = rd32(hw, GLTSYN_HHTIME_L(tmr_idx)); hh_ts_hi = rd32(hw, GLTSYN_HHTIME_H(tmr_idx)); -- 2.35.3