From nobody Mon Jun 8 03:20:27 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 34EDB3FFAA2; Thu, 4 Jun 2026 09:07:50 +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=1780564071; cv=none; b=nbluU9Inui7XRJIyb++O6zZxDNO6kbvGmfeyPoDyPiL3zkYoEZc08M2VkJj+boKgEOmwkNGMyRZ0D3F1NAS/8o2P0w49nZIcI7t4oFOgu/wmalhQKd+DkBssP65hK9zgGR7blGMaygrDx/dV+XPjfy/jpc+Ptfc6jUJSmmIGPgw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780564071; c=relaxed/simple; bh=jws3ZimnScaRNLeAqsGVCDEgooqqLCLOrTGCy5FH4yM=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=bgltkp5JsQv6Zk2v5Z8vUzyiYAbZg6nWOYga1+bmbVQCo7wO9SmYX3qxERr7Ze5luOvGvhTGngA/K3FzbpHcfq09eBVsNuLHZB7OkU1fbMuMkg3VixzVozJLXclBFA77s7d5OmCALpJeoHDP27dwo5iAO+gfnNt64t+wvmK7860= 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=TcTMw2/x; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=f1+oU2o2; 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="TcTMw2/x"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="f1+oU2o2" Date: Thu, 04 Jun 2026 09:07:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780564068; 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=jiXo+ff9LQLJyiZkCUSKz4KzeQduP937dZsjhVdxCc8=; b=TcTMw2/xei5YMLSo/s+funo2E68LTC7P3bVGg5ec1NJ+hTJM5GlKsrxY50XMjwe5zE9T8w tNlEH5rGXnwNqotcEiilvelWit2IjDq/z57ccMjZqNg2cEW9K7XpuXZCwwYlqy+zjDBSRY K1K+/4b1Jv8WVwOrmTYee04eyMTwTsIN/1gJE7/M8mB/w9Dgmf4lMPr1eMnpJsLzyQWwne AqkRL9TB0noWJyvtgRmKgf3BW6IQLwe+x7KwSMUCqXTOkz8VdBoPYfBn1T0VXrRyn6WxyZ 8WrYcsxNKOaYutvRI7lo9ZQNDvquc6ODIVNy5AtyrdEwg1c+c1hbmLuG8hZb7w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780564068; 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=jiXo+ff9LQLJyiZkCUSKz4KzeQduP937dZsjhVdxCc8=; b=f1+oU2o2U6OxBg+oG1pD5GpWYepfDhkYGD+inebSCCPTRmkQESPfZszZdjrz32JyXJzRvz rPnVxGgCSLDaNNDg== 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] virtio_rtc: Use provided clock ID for history snapshot Cc: Thomas Gleixner , Arthur Kiyanovski , David Woodhouse , Jacob Keller , "Michael S. Tsirkin" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260529195557.744271454@kernel.org> References: <20260529195557.744271454@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178056406743.710.17627144868965527228.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: 786493096848006020d7b8e57a53742a64fe5d4d Gitweb: https://git.kernel.org/tip/786493096848006020d7b8e57a53742a6= 4fe5d4d Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:52 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 04 Jun 2026 11:04:17 +02:00 virtio_rtc: 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 Acked-by: Michael S. Tsirkin Link: https://patch.msgid.link/20260529195557.744271454@kernel.org --- drivers/virtio/virtio_rtc_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_rtc_ptp.c b/drivers/virtio/virtio_rtc_pt= p.c index f845999..ff8d834 100644 --- a/drivers/virtio/virtio_rtc_ptp.c +++ b/drivers/virtio/virtio_rtc_ptp.c @@ -139,7 +139,7 @@ static int viortc_ptp_getcrosststamp(struct ptp_clock_i= nfo *ptp, if (ret) return ret; =20 - ktime_get_snapshot(&history_begin); + ktime_get_snapshot_id(xtstamp->clock_id, &history_begin); if (history_begin.cs_id !=3D cs_id) return -EOPNOTSUPP; =20