Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp849536lqj; Mon, 3 Jun 2024 02:43:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUq6cnNnPwH6AdyymC//pz89eqSdlM9/0QbiRRtSjbBjfMPTgXbB7NeEqmXo9BKaQyAZ2DKBEfudqNxcXM4sww12e73G8dJGGJqJ4R5PA== X-Google-Smtp-Source: AGHT+IHKSSSXQU1/ZKkgpHyzSN0+D9p3S5oQ5ggrjspbLdWSrVVpvSCnlO/sD5sT0x7qEtl5plLI X-Received: by 2002:a50:8e59:0:b0:579:f34c:e380 with SMTP id 4fb4d7f45d1cf-57a363c51dcmr5710586a12.18.1717407798278; Mon, 03 Jun 2024 02:43:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717407798; cv=pass; d=google.com; s=arc-20160816; b=LirSC880gY/AYXv9/dEK3tNkfKNtArjA+Fp5bNjHnhp3afKHK5DW3M1nPjwl915wqq KP6MaqwPnt7MI3lLvnewJ5IylQQPH5uEORHSE45/CIrEbNRC8dLYZU1OJKsn9+VaCIb1 vdyiGA/eQsRi1WhdcWhlfTOQcl4gi43Z1iOsEm7Xyt89bEtKXsv4cjCaQ4z359HB8luZ 8VjLnGSU5pR/PclpgafyYC1phbxze/oAJssiySBBLKPctbWfSPKH2MlUqYm8aPbC4pvo kUkqwPtsnW5VkFxbwRR8X4nkwWVP6bIaqp1gpPUV9Ei9/qZqxNFcJmLymMhP8h6qOIjn ef8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=rKB0i+Xw0s34V0VaCOLycKmnkXW0NpNteJ2EfwZ5fkU=; fh=FchdWRbqOqOp2PzGf1clrWHzi5p/6mtWu/TH2BNm8RE=; b=I5MqpiIEJqrg8PwTz8mQUmQtMeyHddyWKZymfuXMJ7sEmJSpQlpbX633E7AvlozDd0 Xs6PYOX5bpyoPsEaz8bL+1FuwxKj/XBwUaXRSVs1DqTBd85j6lN7nVCxaJQbY40JTIbv spdugaJc88zQGH/OC5s+vmQKM/0J3j/sD0MZfn2S/7LIdXGG7kJvEpkBQmIrqPwf+NCC W47UWQcEO39Okr/YyDL/mFv7fBPQyD6b5//S4iewuL68ktSz5atFThyoKwRLKYyK4qgX f5KqF+geQt6gRwJ7ml/py4maS6KuXBNZPegx1SiDRgURGufRgIqLhaipCdb//3ehXK1A CyRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0hpaSHvg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-198883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cae266si3651775a12.600.2024.06.03.02.43.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:43:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0hpaSHvg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-198883-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id AA2FA1F27CCA for ; Mon, 3 Jun 2024 09:33:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF78B85C5E; Mon, 3 Jun 2024 09:30:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0hpaSHvg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="KbkHnkWZ" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 6D1598592C; Mon, 3 Jun 2024 09:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407012; cv=none; b=Uguc6nVJH7jXSg+acY5ooCesGkZORXFX6/jxr+M6iq++SBK+ieasfRPXy2pZ5VxocYlfcLRl9TYiu/YwvP5NJLU2ff6WRHNMgAdGr5ZHUA3j8jYd9eHaPEqI3OGT15HEjLdqW6qczl3mOplJxZwweC2y8luk1YN2MnYMB7IcLE0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407012; c=relaxed/simple; bh=HhuIosCNoexClEssSxNK79UUt256uY7hhE51/TFdEKc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Gf9SkNEMhKfDF4/ftmwjMb+SHBR4IC98enPRuWGFLon50zBRWY3JaXlrM2JKxvZ8Kp24+NV0PLwtjfzBsb9sddXbgh36Rg3+eQAhTErs8alC3goVwvUNSqNp7Pr9PM6USK91/BXZRjGA9K2+tDgIn2Kkg8A6xSS7pJ8MZuoimlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0hpaSHvg; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=KbkHnkWZ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Mon, 03 Jun 2024 09:30:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1717407008; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rKB0i+Xw0s34V0VaCOLycKmnkXW0NpNteJ2EfwZ5fkU=; b=0hpaSHvgI/PkT1wC4xaNJ2OR/dH/MoxWZZ8+Q41K1TyGo2nIjwoup4zJV/NRXYwql+lBI+ PDw5tyJskf+2iAh/JvAcfXha8bKxc+tE7ojF7Kb9fJUaztZeXVwI6S+iQOsBJdZCvaexbB owEruktiA3oW9lXjNa3iUfiU/LGcE1dRo9lfk5cl2Mjz6stono6tQMII3k7AXID5mc1pUh Bqyf2cCOfVAasrvXYrPRJ8cJwTKBef4ekB/wvNbZa7ns5upiuCFw1odFjKay29QJ+/3Uzy xDxatLiTabgIqKxWDykZt54m0O9lSx+8AgrthWIEqROJvk7nFhno4M6yJPUFOg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717407008; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rKB0i+Xw0s34V0VaCOLycKmnkXW0NpNteJ2EfwZ5fkU=; b=KbkHnkWZvcx7KGd2kOMyLDVqRLzemCesEV0tEH7r4C9l1ldzjp1f0racZ7Pjp3WD0aLBUm vWYm0QDkrOwWCRBQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] ice/ptp: Remove convert_art_to_tsc() Cc: Thomas Gleixner , Lakshmi Sowjanya D , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240513103813.5666-8-lakshmi.sowjanya.d@intel.com> References: <20240513103813.5666-8-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 Message-ID: <171740700839.10875.14505632188201193249.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/core branch of tip: Commit-ID: d4bea547ebb577a4b4c545a4a81d495cec7eefe1 Gitweb: https://git.kernel.org/tip/d4bea547ebb577a4b4c545a4a81d495cec7eefe1 Author: Thomas Gleixner AuthorDate: Mon, 13 May 2024 16:08:08 +05:30 Committer: Thomas Gleixner CommitterDate: Mon, 03 Jun 2024 11:18:51 +02:00 ice/ptp: Remove convert_art_to_tsc() The core code now provides a mechanism to convert the ART base clock to the corresponding TSC value without requiring an architecture specific function. Replace the direct conversion by filling in the required data. No functional change intended. Signed-off-by: Thomas Gleixner Signed-off-by: Lakshmi Sowjanya D Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240513103813.5666-8-lakshmi.sowjanya.d@intel.com --- 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 0f17fc1..15ca440 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.c +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c @@ -2091,7 +2091,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));