From nobody Mon Jun 8 03:19:48 2026 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 464453FFAD5; Thu, 4 Jun 2026 09:07:51 +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=1780564072; cv=none; b=Uou29JRjxrZCCW338D6HLYaz55DoxAeQv0hhzP+UnFDgXGxf/LIsMevOA4GctbATnc9oBa2vl0GEEVCEsiNCzjvgYHvUuKxOyZtIUBycXX9TucYgZ7KIh75ke3WpCk+urjT5+If7zgsO+mwAsV32Su/WW8OTG9dF91WgMWmwMS4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780564072; c=relaxed/simple; bh=lPSjxfzHR3qBfYsx4aa+xJIsSZSxq/Rb4+IF6yrRPVk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=ZhnISRYArIqAiD6xiLKy0T7SBEj73/4CNgaxATxDEgZhmbjA1YkIuX+Ds25JDZW/iNM3PueURlVHoeobqYj0/KGoSYhmd0rOTTqJBFZ31qXpKrwZQItPKIXaWMkg8BhyAx4jAFS55ZQP82MH9/HavK6pOAFPjxAsfkr5bSNrXP0= 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=SBkkdoFb; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=FOMmmVsP; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SBkkdoFb"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="FOMmmVsP" Date: Thu, 04 Jun 2026 09:07:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780564070; 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=7KXD433dDG54p0s8hd835pyECzb4djUQpswFBAgfTQo=; b=SBkkdoFb723rwL+SDuIj9v+tOzvoY9CScTaHgOgi/qOT7AUQ4hH53sxcLcdgDM++nq3Ihi MKFshPCtR1HNYJP7iMWtQMHPyc8uJ8kzUZkIiAMmov5w5eHGsQ69X/0JVmD0AQpHhFjbnj WTuO6/7aDhRxfJPLv8Egvf59949G03Y/DqurmZSrUa/LRU88ppu1r75J2Uv0tcewiAUth+ oiDpCQqN9R9cMeQTrIdhE8rxENT9sUfPqnz7SatUKlyx2UPGClycDHp4yRmudEhIOIKRuy f/4odM3KAIECQPZMlu7d8dOToKMwHPmRtQQQl/KWWvPANXCmc6pggKOXlJKIEg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780564070; 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=7KXD433dDG54p0s8hd835pyECzb4djUQpswFBAgfTQo=; b=FOMmmVsPoLus8uQheE3LNftrMOCrR4l8G3IUWtFKTvEUrK+ZcD1559TZLl0LbOwErK2ASL 1zG1WDgGz7tORiBA== 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/ptp] net/mlx5: Use provided clock ID for history snapshot Cc: Thomas Gleixner , Arthur Kiyanovski , David Woodhouse , Jacob Keller , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260529195557.689836531@kernel.org> References: <20260529195557.689836531@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178056406866.710.9996078283457804658.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: quoted-printable The following commit has been merged into the timers/ptp branch of tip: Commit-ID: 8216433ebe7e1b904c9e0f3176d7f99cbdb78bcd Gitweb: https://git.kernel.org/tip/8216433ebe7e1b904c9e0f3176d7f99cb= db78bcd Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:48 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 04 Jun 2026 11:04:17 +02:00 net/mlx5: Use provided clock ID for history snapshot The PTP core indicates in system_device_crosststamp::clock_id the clock ID for which the system time stamp should be taken. That allows to utilize hardware timestamps with e.g. AUX clocks. Use ktime_get_snapshot_id() and hand the provided clock ID in. No functional change. Signed-off-by: Thomas Gleixner Tested-by: Arthur Kiyanovski Reviewed-by: David Woodhouse Reviewed-by: Jacob Keller Link: https://patch.msgid.link/20260529195557.689836531@kernel.org --- drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c b/drivers/= net/ethernet/mellanox/mlx5/core/lib/clock.c index d785f1b..5df7861 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c @@ -340,7 +340,7 @@ static int mlx5_ptp_getcrosststamp(struct ptp_clock_inf= o *ptp, goto unlock; } =20 - ktime_get_snapshot(&history_begin); + ktime_get_snapshot_id(cts->clock_id, &history_begin); =20 err =3D get_device_system_crosststamp(mlx5_mtctr_syncdevicetime, mdev, &history_begin, cts); @@ -366,7 +366,7 @@ static int mlx5_ptp_getcrosscycles(struct ptp_clock_inf= o *ptp, goto unlock; } =20 - ktime_get_snapshot(&history_begin); + ktime_get_snapshot_id(cts->clock_id, &history_begin); =20 err =3D get_device_system_crosststamp(mlx5_mtctr_syncdevicecyclestime, mdev, &history_begin, cts);