Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1772871lql; Wed, 13 Mar 2024 07:51:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTLh+rMdjCt4FwsX8RoyhvVmcSvfRYpSAilrmPHwuY8FQGOhWz24pwvOnQdc5PQDvpIy5cvKBfddmQ2QoSaecL31/UYSNLZPrK7n2RnA== X-Google-Smtp-Source: AGHT+IElrmJhYu9KqM/zUyA+QOuk2y3+Ok/LePIBPwSbdPJHd8jE7U1OW89Fmr20Rsth0+kGF9rr X-Received: by 2002:a17:906:6815:b0:a45:98f3:997e with SMTP id k21-20020a170906681500b00a4598f3997emr7709226ejr.7.1710341478063; Wed, 13 Mar 2024 07:51:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710341478; cv=pass; d=google.com; s=arc-20160816; b=A0RIGB/riyvX6FRdPnJecKaMytsADQ1x7ALHNP/ugcnuqMtgLpzw37kUfkuiUGF4yk pT9m3i/4dTL/cVa1dsLZCNKTtku6c0mDASgkfQazm6C0X0o9vC7ZC1CGOnVzIXeLvvgi 1ve29ZQVuWNozs8ylha/sW6rhi2TRCwKR9PbeXc/VFKVgA17v1FN1qFwFImiKGN1mYsE kru2hvIE2qhaN6vsn6oOkHuGQ09qxgQ8xfrqAo7RSPw4NQ0N3GXwN2QkcKAWtvNMwjhs 8mgkGTSJKBdNh4C9sztCfG2X5DUuzOT66gTx9CRQmP2GvNDTmo4y0KtyM6sKkvoA0o26 T+JA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8VJkHw9Sd5alOnv5C50Y3H8ffoBOxoKu755mmz9UUEI=; fh=rwAm5kRO84BmyXd6k0rHzyFGl95O1B4Otg4qineXUlk=; b=urpHLZLat/oQO/RseZpFx1UYhSmtsgb46gGdQuTrQkr0vXQYYZOgzYVQ9sJB8QrtY/ 9lNZCDMe7WoSuV/17QmrIZQheC5jygiwDYNNniKDcRtXaaDXPnQgtfFEdMavsj1a2DnC 9V9J7VCFN+EHViG0YcTCgXok7mMBXgtIdBbSDO/uNwftGL9vg+O2v5Jr2o/ngLA/gHBo OPgpCSSbsoA9YbjG1fbNBCDehNPUnOISjowJwhJnvD5jOR8OubG5RuluxTGU5aXMOyVG 7zKW73XB4Ycw9G2SOai5wNu9OTn/5EGiRGjdn88vQRPQQeleX6TM5fCPBCwYy+Rfri6w x/yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NanRpLdQ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-101641-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f20-20020a1709062c5400b00a465461bd31si804804ejh.138.2024.03.13.07.51.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 07:51:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101641-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=@bootlin.com header.s=gm1 header.b=NanRpLdQ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-101641-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 am.mirrors.kernel.org (Postfix) with ESMTPS id BEF2B1F22AF8 for ; Wed, 13 Mar 2024 14:51:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCAC5168BA; Wed, 13 Mar 2024 14:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="NanRpLdQ" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 6CF4F4A07; Wed, 13 Mar 2024 14:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710341467; cv=none; b=UNaV2iMBFxr0Ae+dFlFaw7GM9d5lNo3+jQLqmmwzkTYirNixvg9OFk2rILCeDHx45HNsw6l9hluIGR0QW+jhbiGyo7VRP1bPYFUmRoODgQ8pQmx9uMgPml/KsJHFZ7kxHfnTlkCrIsbA0zuNKmKLKr5gM/6E7wKkPCBo0HVtosM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710341467; c=relaxed/simple; bh=XoSkEQZquKyZCCzKctPvka6Uyyakyksn1egML4TSArQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mJJtamQ3ED8Vh40HM8/Xl8LZeS3A+1uJIx4mTjZFOAVLSXdtYBsZdkMqJ3r9fa7RRLJAGvF/LVsjdQFQgr3RzzD4oKYWLy3buhMLUupQ8147kITJ4IUg8ewokYp8FneZYX3xMKui6zCU/MsKXFm3/S6EzG0QYZ6PsZ/5QBkr08A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=NanRpLdQ; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 31F8F1C0009; Wed, 13 Mar 2024 14:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710341457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8VJkHw9Sd5alOnv5C50Y3H8ffoBOxoKu755mmz9UUEI=; b=NanRpLdQ1MKcQhvI41Tc50fWxjFE6Ck2VgQfOtWkPRHoqBld3vHI/Df6Mt37+cqK3PfJSa 4zJ/kPmXzvsfOvjrZ7OupGuHiG0S78UA2iKK9Wkc+DUWGnjxUpWckZ2Rk6q+KWUEGJPVef lSW/qwmCFjWiBShrjbjamuTxCqNpaAf1fdyeVwCJyZ0V1UBbzHAiWDEWCscClK4Le61Om/ A38TN5xhY+0WJIBKLCkD7KKFIo7jHhQIpy36lWks5LyFUG0yAJCtwQx2RhVnRXtKXxm64X iQT301CSo1jomtMpFfVDud/Tppvvx2d9Y8bbHkN0yTPFMwJo1e8Yaj9WXKoflg== Date: Wed, 13 Mar 2024 15:50:54 +0100 From: Alexandre Belloni To: David Woodhouse Cc: Peter Hilber , linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, virtio-dev@lists.oasis-open.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, "virtio-comment@lists.oasis-open.org" , "Christopher S. Hall" , Jason Wang , John Stultz , "Michael S. Tsirkin" , netdev@vger.kernel.org, Richard Cochran , Stephen Boyd , Thomas Gleixner , Xuan Zhuo , Marc Zyngier , Mark Rutland , Daniel Lezcano , Alessandro Zummo , "Ridoux, Julien" Subject: Re: [RFC PATCH v3 0/7] Add virtio_rtc module and related changes Message-ID: <202403131450547f373268@mail.local> References: <0e21e3e2be26acd70b5575b9932b3a911c9fe721.camel@infradead.org> <204c6339-e80d-4a98-8d07-a11eeb729497@opensynergy.com> <667c8d944ce9ea5c570b82b1858a70cc67b2f3e4.camel@infradead.org> <57704b2658e643fce30468dffd8c1477607f59fb.camel@infradead.org> <202403131118010e7ed5bf@mail.local> <20240313125813ec78d5a9@mail.local> <96be7312f7bddaf06c690e082a8028fa8b511deb.camel@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96be7312f7bddaf06c690e082a8028fa8b511deb.camel@infradead.org> X-GND-Sasl: alexandre.belloni@bootlin.com On 13/03/2024 14:06:42+0000, David Woodhouse wrote: > If you're asking why patch 7/7 in Peter's series exists to expose the > virtio clock through RTC, and you're not particularly interested in the > first six, I suppose that's a fair question. As is the question of "why > is it called virtio_rtc not virtio_ptp?". > Exactly my question, thanks :) > But let me turn it around: if the kernel has access to this virtio > device and *not* any other RTC, why *wouldn't* the kernel use the time > from it? The fact that it can optionally *also* provide paired readings > with the CPU counter doesn't actually *hurt* for the RTC use case, does > it? As long as it doesn't behave differently from the other RTC, I'm fine with this. This is important because I don't want to carry any special infrastructure for this driver or to have to special case this driver later on because it is incompatible with some evolution of the subsystem. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com