From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796194096; b=BAZqSwL5I2j77zPs7tTV4nU+o0jgQfFjfUvL4uCOXI/xt1BJlLuwzYNwpywVnALLLBwc w45F3XNUlJmrmpiW0k5KwDVYhiiNesdZc+e8l+ehz2ZvlIx7x28+qfEySQyPbqXqEqlhj 7BjAPZDrFzCbzxQ4FGDdCQK4TY0uGbY8vvJO+pZ5u3CudZQXjb/sCaGl7yi7JBEiAAV6o X8YwOkOIyW/XbwayAME2VRxZjDY7/xTf7QzAjI86L33MtiJNzJH+dJAtWO9odtWSaxjVo 2S+t6qEnCZNrW4+m9mgRmCYXZ0Yc1aqzhqYstub2DMgqMPbijLsMomngdrwqztv+2JQ== 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=p3oV+wiaZ+KVTZgKJlG2eUPeZyRKKSSMl/AuJ/yJRtPWJYqZIsMnnH9nwn5xSC4DSSY1 E/mr3wtmETIAwQoLVJZXNCvmGhm2E1ADgjYbqofez9F+cXAlgGrbiU5sgH//Czej/bGjI czKbPYpSCMkisJxTjCOoTfio0O9N9eNZc9LbReV6lwAR3UQPa6awum90nIKAddHzQ6Nhc uI34GSYPWG+l0KuIapU8jSrVa5AXKkziKmiQzL1k5fjMd25KLxApRs3IlXtq3I8jMBi+9 FoddEHLAH6CIInugXnc3vJm0WxTx4LWBJhQCKn3qgAkVfqRztqmlBoKMdQKhfZ7Xx4w== 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.173 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 33A2F606A31A for ; Wed, 2 Dec 2026 06:48:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 33A2F606A31A 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-f173.google.com with SMTP id d9443c01a7336-2f037bc348dso98724915ad.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=RKFKZPJblcVOhA2mK9PyFVqJbwKb5rol1FrLJSmAozEjBpAiOv952WwV/VsiWH53PM k+1N7JpN/efD7Mh0DNSB9XszPlhET3HnHoqgezIrjrS5CNWC5a6X1B0noXZuRUfpYdGK bNLDEawhvkEnBazU0CI2sOftSvRA7eTvA2W5+EErhflX7Heh994atfrOXnU/0tBCI9Mu MWjGWQ4jxgcZEhtsn8/AggWkkvP3O4timYnwm71mrh7yhU+3zDq1ODJoYBAnfBXJ2Avl EOAoFUb/umq7dJN7UGmjAYpJmj6fC4/k/0DZYvzpHpLrFIipd3mqL6zif/Q4CMashKC0 KdhQ== X-Forwarded-Encrypted: i=1; AL+hErH/G6QAmTmPG8q5LVRbgJtaWFWz4jJAX20WJ/L19QY/arbRNJmzrbtzkdgbkU5LV8tj9WQ45Gjeev2f@vger.kernel.org X-Gm-Message-State: APuU4Z8ZiSd8jQZvNbsAXO9DBzDL4OFIqBjLKx9PAYh5AzMH/XNMM9av q/7dsz6xlq9qKVI9svsUeqTxUYZGF0hvkTBr8uvMosC+6YPhdULBX4sW X-Gm-Gg: AZFdTZfxtvD0UkSgD6XoknXaHspnublp2t2OKeru73BXT8ktkjxw7D5wPjVO5s7Mye4 7eVwpk/l8Gr/m5k9ooNaqI+wVSb+ttVjUqu8DVm/PWB1V/wD4KYUx5HyZrOSSzJ8r2FKMblMd6c wXLTGQE2JmcQW8QL15gk3r06tHDxYABVyAHmA4iV+WnOuFuOZXznoE2hGEX6RpvltYCVO50hXhG MUF7FfDThAdE5Tm6nWKATfhTWjT0x9RdoeY1HoGEFD6L59c8+ojrrKbCik9vGE3O8Afkop6u9xz bGPFsA1fmXWcXujyt/cNbMOXGMNEGEbuj51P+KOiKU0CxwvxZXRH1brC9POOrQJXyVxmIJ8hGZI Hd8cc/7+sHIr0TwZeUgjh3n9fTfhXdMjW/ikPmlQlnWon41zskRSBOWBREk8Qb/0tU5E2cvUauP nug4S4yb5XAUXRxZFBAjaI7p2b13mLeX29bBTnaNYB6tz8JKyzyO9+R1NdSiat2IycZFNAcrVs4 3XTn+3THt07ZmuWt7Jw/YazMeh7gBYzB5zvzKbU50OlRPtpHlRPGbKFQKZkeHcHN23236wBZXyS z7LBVe2nm81mUfni/TfMMA== 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-gpio@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.