Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp283670lqp; Wed, 12 Jun 2024 01:06:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3aDXbzeMqFhWX9MdXBO2LRSabtMN2jV+xk25m5+eDTodlbdurPTxD+iM3WEHpWCHAIYAyZq2AR6WVOBbZAyg1AICtvJiBOo/SYnz1yQ== X-Google-Smtp-Source: AGHT+IGPNIBhO3ISRKaDLAN6pq8tTPCsAI7UYf4AQ1Ju26c7+I4qnCkylELTwBXcgzwzm+baaRCO X-Received: by 2002:a17:90b:4b42:b0:2c3:296a:caad with SMTP id 98e67ed59e1d1-2c4a752d1f7mr1398177a91.0.1718179594474; Wed, 12 Jun 2024 01:06:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718179594; cv=pass; d=google.com; s=arc-20160816; b=srkqmXXlZXE+BL6QoB98nYZuAvl6iALcUUmzCxXCw3hg4Ld5iU6RvHcuQOkHazcHSv 8sFAqOYLTXrSnRIxk5LfNolIawHAH0iUUiOX00eYr4blW+qkDTUJ0z9HOOLmD5hM8Xan VMknFJ/jvBDSvKaGcwYdkUgOz2eMjypaGlULhAaqWTU0mG6XKQiLxNmk8hdi9CNnzdfS 9wnDeCYFCjJEIBpEioRuIaGQ+jHg4bHjpNey3bxNWgh9IrFp0eKctZXAz5tby9Nzw7o6 GkbLbeU5s/v5WI7/x9cieZSpIhgsMjZdRrV836ZOgho5TfIibabd1WV62NERwIPWFDMa O4ZQ== 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=PHOOx2QVAkMPeeXAvzqgNUCUEIVGFUaDriLDFdx8Cqg=; fh=qyjw1IF6qibPFJXdKGkLtefJTuXeQ0IBp5UA2OTA/z0=; b=jV4+ssTDC4caRdZQNGpq7vKPFCKpb0u7O6kOA3QxN8f35D3BmYKSi1Ljt6mE0IxX+k FYu//F12dokmN3nkOJx1OxDKEypEDbEaYMz/kkDDkgvYDQg14fFs1UiX87qr12ndzuNe 5oXqTHSa/QyhHIDDvo+89kK7JecYC/xCbnuPmsFwsGdU+zcC6teYh6sQEqF0nK8o+ANo N90G8sTWN7ZTf7IgihEQh72DBrtWQ2or7FrBLLFaCYTlKh6QxCV8aY7EeS7e0B9GMn8g 371xpilBaabdkWfL5XuDcv383i0dRmmgQZgUGCICcIpXoIAy4iDIstjfg4Z0D4pzIT43 mVfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PexS0sML; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-211130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a76a5bfdsi1005813a91.110.2024.06.12.01.06.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 01:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PexS0sML; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-211130-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 36D9A288969 for ; Wed, 12 Jun 2024 08:05:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A227E16D4FF; Wed, 12 Jun 2024 08:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PexS0sML" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C237816D4F2; Wed, 12 Jun 2024 08:03:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179405; cv=none; b=r47KBlW34J6JjS8sx9X4WnkIMIqmxMDTHW0SUKpXurRhNfdcNbJ5WqjTTQz4HDwIZPZNn77VBv7JlMTE0EkFXME+0+KfqQnyDnt2mUeUESnRKeSX+In46+6mDE8XMNpN93bb6EdRxCpMyUhf5oUJ4G4mNAWsA67bUN4jXx5z6qQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179405; c=relaxed/simple; bh=6enCHXveZgAYbXgHaRRpmhGhyCreyLPzbGhbgLZ2hDQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SAKCbqhNwKPfYYa+leMAwhbsK2XxRXu1QIAEq/GGTIhLO+Sc06wLwXYBbLC/oKmc3Yf9pA90URdS2SvHWKZDsIXCKdnpyZGIQ0iWxS7ChP+OUPhi12zFMrPqn8UnILOJYAbMieohRTjej7tde/dhgSvQa6aZ9NsZG2lhv1hr5OY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PexS0sML; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0108FC3277B; Wed, 12 Jun 2024 08:03:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718179405; bh=6enCHXveZgAYbXgHaRRpmhGhyCreyLPzbGhbgLZ2hDQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PexS0sMLd/W7IVnk6pm9zOlPdZ2d1ATfswIV2WMX6kJykYjXi4XTFo9+nC8zKGb7v LNPCDoCOTVh3QdwZq3W0JkIOVMxSUFyDHxhD9cnnVVFSqkeEdsKBTykvHY3LFX6aVt 8vJM+fk6Q/Aj9ApalxqUN4BokJwCRtNwIblf7RUw= Date: Wed, 12 Jun 2024 10:03:22 +0200 From: Greg KH To: lakshmi.sowjanya.d@intel.com Cc: tglx@linutronix.de, giometti@enneenne.com, corbet@lwn.net, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, andriy.shevchenko@linux.intel.com, eddie.dong@intel.com, christopher.s.hall@intel.com, pandith.n@intel.com, subramanian.mohan@intel.com, thejesh.reddy.t.r@intel.com Subject: Re: [PATCH v10 2/3] Documentation: driver-api: pps: Add Intel Timed I/O PPS generator Message-ID: <2024061215-deflected-dimness-a317@gregkh> References: <20240612035359.7307-1-lakshmi.sowjanya.d@intel.com> <20240612035359.7307-3-lakshmi.sowjanya.d@intel.com> <2024061230-thimble-oxymoron-3beb@gregkh> 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: <2024061230-thimble-oxymoron-3beb@gregkh> On Wed, Jun 12, 2024 at 10:02:46AM +0200, Greg KH wrote: > On Wed, Jun 12, 2024 at 09:23:58AM +0530, lakshmi.sowjanya.d@intel.com wrote: > > From: Lakshmi Sowjanya D > > > > Add Intel Timed I/O PPS usage instructions. > > > > Co-developed-by: Pandith N > > Signed-off-by: Pandith N > > Signed-off-by: Lakshmi Sowjanya D > > Reviewed-by: Andy Shevchenko > > Acked-by: Rodolfo Giometti > > --- > > Documentation/driver-api/pps.rst | 24 ++++++++++++++++++++++++ > > 1 file changed, 24 insertions(+) > > > > diff --git a/Documentation/driver-api/pps.rst b/Documentation/driver-api/pps.rst > > index 78dded03e5d8..75f7b094f963 100644 > > --- a/Documentation/driver-api/pps.rst > > +++ b/Documentation/driver-api/pps.rst > > @@ -246,3 +246,27 @@ delay between assert and clear edge as small as possible to reduce system > > latencies. But if it is too small slave won't be able to capture clear edge > > transition. The default of 30us should be good enough in most situations. > > The delay can be selected using 'delay' pps_gen_parport module parameter. > > + > > + > > +Intel Timed I/O PPS signal generator > > +------------------------------------ > > + > > +Intel Timed I/O is a high precision device, present on 2019 and newer Intel > > +CPUs, that can generate PPS signals. > > + > > +Timed I/O and system time are both driven by same hardware clock. The signal > > +is generated with a precision of ~20 nanoseconds. The generated PPS signal > > +is used to synchronize an external device with system clock. For example, > > +it can be used to share your clock with a device that receives PPS signal, > > +generated by Timed I/O device. There are dedicated Timed I/O pins to deliver > > +the PPS signal to an external device. > > + > > +Usage of Intel Timed I/O as PPS generator: > > + > > +Start generating PPS signal:: > > + > > + $echo 1 > /sys/devices/platform/INTCxxxx\:00/enable > > + > > +Stop generating PPS signal:: > > + > > + $echo 0 > /sys/devices/platform/INTCxxxx\:00/enable > > Why is this not described in Documenation/ABI/ ? Oops, that was patch 3/3, sorry.