From nobody Mon Jun 8 03:21:17 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 91B633D6465; Tue, 2 Jun 2026 09:46:03 +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=1780393566; cv=none; b=q3BpzRmarR5z6blqaKsxybXUDxVVOhWW0qclABqB7I2bke7h1anbIFwU1eyA/qnvzuoVyipTSux1K/FSvt9TsFBMrinzUxa2PiaFCQbxVswcw7Za+5hdJ6eDKWQc66VaUUJwCezRyMYwAXCAHhJaVewuWQXvUeMHVN+jqPMyEpA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393566; c=relaxed/simple; bh=/xRFsWiKgHnNZ8++v5EAg364JmgSjZk2DYXVikHS53Y=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=aj+p/FBed+qudoHPdB72/e+L8wOJtZNtiBo2ko0tbisuUgHq59l+RJFVnHOimwPCj2B6Rbk6gu8qYni1BZQRmGAB+jO5VOgSWDgbvlX//7otX+WS8kkUQBsQ1tJM2MEB+qPWFS5X5RwHak9JaL9sb46voislXvDbgPIEeKyQCAI= 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=tLaTWXb9; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=LsURvLP8; 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="tLaTWXb9"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LsURvLP8" Date: Tue, 02 Jun 2026 09:46:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780393562; 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=9RtFeG25scViIB+RdMwjGM41pM9riMyF+xDEQc9edIs=; b=tLaTWXb97wNY09ogZlK5tUnoZrkjt1qlg6xHHPbKj1BrR0/iHvHFCyH3sPR0me4EwMddK2 HO4HEJLC0AHw7nYufZfhOIpvbMHOOvP0/2UUMlV5/H0sIpnTUbhU7kkNJlP9kvWclUsNNQ ulq4hKyIAeFkLutkkFsbgtkDIf3nfH7ZXIUxcQ9eN7Nv1ocEWQj5t1jmHqIfhWcB67MLGP fvwdoqvzwbZlz7QrGZiLOlu5CY/3OlZjKdxWFgrQozMYyOIyorRIjWLP9kiLA+++T0jpkt TTI2zwjxjr9rTE4fVV3xCKllkVMIYOJUvA3QdWfX3Pw3pPIq34OQz7PX/JdbNg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780393562; 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=9RtFeG25scViIB+RdMwjGM41pM9riMyF+xDEQc9edIs=; b=LsURvLP8+/ymdWFQD9wfPGeNKqaGfkdpj2HC3Fc34f5QRZTuasjdO9IQFST67zLARZ/7RO qVN0TSo0mAnsbkCA== 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: <178039356072.2140988.8221472125337927939.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: 001b4d0c82580e56fd7b39317fb07c0a463db3da Gitweb: https://git.kernel.org/tip/001b4d0c82580e56fd7b39317fb07c0a4= 63db3da Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:48 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 02 Jun 2026 11:39:59 +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);