From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796194096; b=g+AM9QegpBD5RodpBmeI25t7xy292PquPskyd9acUc7K/TInYugZ6wIWEEtTg69eYLzy Mf02Ya8ctLxKcR53pKn8wyroH4HMh2CyqIVhsrBQJTEB8FhQBMl5TW1Ks/pEdNcRYDQ7p m2ey6QQ8hA5Ck31emJ/Ha1N58zUdhkY0F0+j4A2eL3cDmAHMehxj9aEbx7rPC6vR2gAZE ld4Ge/TzjLa8E1BnPuoRbCuQYadoI5DLdIbYWhwknBAnbETK3FFxW97bHXTGiCLYkmL5S VAoWIfbG66g5vT7gL1GHRVTQf4SKipnNyEOITGr/D42ipgKGFNMYQeEvXQzwgRLDBxg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796194096; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=yDx5kH5j9qhEFwfa/gi5n5ctU2q0r8PFjHtH+4Xk8wM=; b=J9kiFDEyypTxcfXGoA9EP70Tbo37YLRwKR0Cb8CPMp+Xz1TkQkB8zx5ci2sww7TyHvx6 SitgZQ9QGRrXHOix3tU837wZiSIKzWlM+MYoY4UvEx42OhbPqWuwr50eEgJCY2YQ2+M9/ gQSMomI+canjmSNIwGG3hMdLPxrwO0QOomzKXBJq+bSg/Uv9rEMGZx8RWfLg0aJ6kyrd4 NTiyKKGUQ7gx1jkxrl0ZaBB1hvWCA2bnHKZfhgU+2gm4t93suB+iOWHOCagsvniYRqqcB YM8ZRjQLxdBdMsPdbeZi9X1tP58CEZwd3L61A8x86GyjGTiSSnHhX8ZxCfnrDeOol/w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=M0izbA9X; arc=none smtp.remote-ip=209.85.214.174 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A67E606A329 for ; Wed, 2 Dec 2026 06:48:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3A67E606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=M0izbA9X Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2f037bc348dso98724925ad.0 for ; Tue, 01 Dec 2026 22:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796194095; x=1796798895; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=yDx5kH5j9qhEFwfa/gi5n5ctU2q0r8PFjHtH+4Xk8wM=; b=M0izbA9XN2aKlNoxtgOTVIVRUHO8k6hbJPkAulOUG1urEyLdlY2r6opRi1k8MzS/bZ 90vzJ+YWCw/LeZvV8Cvvb/xT4iNxRkwXkToEReUhJNXgNUp9uoBI2ugOCP5mag5WrXXB iFvb7zwE0c9ZX+/pHMSfEPyvN6vaUCc1YJ4UBysbnGz1cQnidj0mthhUY4h8cQgYos9v U7xQe2dPOOdNiNDNIQxLeSE+W0bXfuZ8rpkGZPi4EJwJC8KnVAcBBhQr4H28D8JWY+NH 8W2j9HF68t9PQNW4TEe3g2/mLg0i91koPNeLGjpLgAxvavuv4QggXEQP/3vgQyJUuXPq rWHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796194095; x=1796798895; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=yDx5kH5j9qhEFwfa/gi5n5ctU2q0r8PFjHtH+4Xk8wM=; b=nRHWQzzgDuqHQKoC0tm7PBofgxoqxkx0TDP6ee7hb5ug9sLQpyeFFG+xeG2bhiwKu9 I4cPqrVLG35AwPLwXkJMJ47f113659aAexZwbsUhUUVfYFTfPRmsUV4ve1Qeuf68qvdm L87A/6GZ2/QLycj2sphIhinam8Q+lC6sulsU/H+wKi6j4l9Kk3Pxz6J4ExvL+6nNrMTO cLxrsVUnnOKosKRqSvdGrCMJYBl5JtDlF+E8+URdLOisuOM59r/3WhYXJHUeNxgsbo+z DkSsKDkHk3oYDCCtZozACerWazct9oeVZ60KwuBU00VW1x8naZCb2jNRlCwxssFweRJl H17g== X-Forwarded-Encrypted: i=1; AL+hErExYBkNJRu5N2vgGzBqZJVLmTTmgla+ABZkBcX3yPGJdGdOXtzrB9+2ZnocY5+sF7eNF7Gv/sU9//I=@vger.kernel.org X-Gm-Message-State: APuU4Z8qI+/hHi/NW6JuUwx4uBej7Hh5MnHwayekZl0FKktdDnUTJPp+ /tqyieM+vAgqpV4kQPM+AmSJi8+cwMRQkc9ZIgJ/7egFSY92RyaQ0r+U X-Gm-Gg: AZFdTZeMkOYSuzQVumEzOIbf4h1CzliJJEo00cRd0kqEGBIDhlklMlYBIGnCGuV30r1 Xlkd6VicksJXFOCVFjRUbwvm3+X+AwWT3zBruTOT2wtxbI+Gjmnbvz/60eGv2NjoCslio2aHusH FW68molkQJauLQrHjCVKPlNfvHhKA8vHlFWH06TkZPwcFsssHB5Mb7/XHJE1S/Dd/yiCFPUneJr 3ZjzoyqUmpRgp2pY/5T7RUgVzoZ+3sLCszuJD8r7ZeLMSndc/Rm3zpXRVzKncLOa7uyYVzSMnod XagdsNAo5R5MuFgzbJjk4YvsEjFBpwlWUr1BrjymJQSMzBkW7ni/CVRI023joAX0LC+DbGki2dq RL511f67s/zmgfKHqNnDZ6ungz3O2EFXORKSkqCeSaxxnu0vjCDraQJTz8LtiW/dzFV2tbbxWWC q5+rIYuZkTT9UMROTN8aUCf4Sbt7J0t157GSHkGoRjAbAtnL558T432TcuJhfXAm1QNmtdX6a5v aU8BEKs+OfV44GOi5ukz1Xx3+jxQjnN7zYWhxKEIb4oxcss/gQpPZ3HQuMczj8+f0Sdbe0ZocjK uo5uOzpSpJYzyy6KNdkyQg== X-Received: by 2002:a17:902:ec81:b0:2f0:44b2:648a with SMTP id d9443c01a7336-2f161981dcemr59540625ad.42.1796194095373; Tue, 01 Dec 2026 22:48:15 -0800 (PST) Received: from rigel ([203.206.255.89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f0c42a6sm197624585ad.23.2026.12.01.22.48.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 22:48:14 -0800 (PST) Date: Wed, 2 Dec 2026 14:48:01 +0800 From: Kent Gibson To: Eli Gavril Cc: Dipen Patel , Linus Walleij , Bartosz Golaszewski , Thierry Reding , Jonathan Hunter , Jonathan Corbet , Shuah Khan , Randy Dunlap , timestamp@lists.linux.dev, linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-doc@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH 0/3] hte, gpio: HTE timestamps in CLOCK_REALTIME on NVIDIA Tegra Message-ID: <20261202064801.GA25224@rigel> References: <20261130142435.1292201-1-eli.gavril@gmail.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130142435.1292201-1-eli.gavril@gmail.com> On Mon, Nov 30, 2026 at 04:24:32PM +0200, Eli Gavril wrote: > HTE supports the NVIDIA Tegra Generic Timestamping Engine (GTE), but > only in the GTE's own counter time, not in CLOCK_REALTIME, so it cannot > be used as is to timestamp a GNSS PPS. NVIDIA instead uses its > out-of-tree nvpps driver [1], which reads the GTE through HTE but > reports through its own character device rather than the GPIO API. This > series adds CLOCK_REALTIME timestamps to HTE and the GPIO API. > > Patch 1 adds a CLOCK_REALTIME-correlated time to struct hte_ts_data, > patch 2 fills it in the Tegra194 GTE driver, and patch 3 returns it when > user space requests HTE and REALTIME together, which is rejected today. > If a separate flag is preferred over combining the two, I can change it. > Using a combination of the two flags seems appropriate. A separate flag would be more confusing. A couple of nits: I would prefer if the HTE consumer (gpiolib-cdev here) could confirm that the HTE provider supports realtime so a request would return EOPNOTSUPP if not, rather than using time 0 in edge events for that purpose. Similarly, it would be preferable for the HTE provider to only populate realtime_ns when requested by the consumer, so as not to waste time for consumers that do not require it. Both of those could be achieved by adding a capability request mechanism to the HTE API. Cheers, Kent.