From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796194096; b=pPe0UE+8+bzlQsl5qDN2mANWIRLkov8qrgUZmAj5XuSw6dcJOExUBFmLLSBVPbN4Hdlo tUd/VwUaEsqv34RvEHOAn+xy7NCwc6gNWbOHq4gEBQdqpI2MlUkgEFWAvPbQaHhoCqDgK 8oN7IzvJ+8IzfNmHqzyXdRWgY126HEyCUDAyVftWx1CsHW2Er4f47JxQs1Uu+o1NVj1D7 XfqWdMIZ5tu7b5eYYzkVJLv85l/B41BNZb4w0sP1bRC8eqJ1TFlxIY/Y+q+18Sk9CyyUk BYziWkx8wi7dRurR68AxZiCSnbveK3kmHX5rkc9Ueep5lbMtY553+uSn+QK6oJXeuLw== 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=e27i/ftjNn5EsVJQ2btU+93i6yRh9shJPUg3m1r3p+ybl49oWT2c+vR2khRdM7p7rr1H nLeXwvnrLX23VE+uFvUTMJjbkw7F/+uhbyYmkmcQ8DyO4mjzGGrYYNYjc7uJx00wU4x+Y sP+Kpk4f3stZgCCRYUPZV31nczmN6G0uZuP0CC9hx/ftLNvCCuZLZtHiaL8DY4Pfhfd3G JeFzKflzrb3mtdBWKGP3nJxrNT2xvBh4DCrucnFIWnfzMteTKzmxjFAxU7IxhBdTVJa1d 26dfPBIUGJfeZnj1iMSuRQRdfQStb2izx4TaHTPq2+Lq1LGAbJDhetbgCx/Ru3hPXTg== 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.182 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 490B8606A32E for ; Wed, 2 Dec 2026 06:48:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 490B8606A32E 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-f182.google.com with SMTP id d9443c01a7336-2f02f04a426so96317905ad.1 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=MPgmNPMtCErXhcs1B26aWTqg1TjjXPApBCVedReQz+DfQTYFi+ljh33a5MK0bYmGP7 FtzYLzvsyQSf3Uuqt7TBOREzsxINpX9Yo9AqWOgZ9LEwNBBIQ8qvcCATYKgzzSUMfJKQ rPUFrvdPq29kEk0EfZk/3AGzTWu6CgnsRz5r43dNbDOX2iCfUaXuUNwBeo3+nIvV0cwo wymDRXN4I3ssbsdIltixXWZQxf00xsIEdu7W5WraFqNa1VnjuX60QrpA6IOFC5SZHEPW Kuxa6vchOcF5p6cvJnlCDUD9FKmcaiaQS8U7MBlMVfBKGRawVYg8QtSkatjvjbUSCtCn cpdA== X-Forwarded-Encrypted: i=1; AL+hErE3kMvMxepip2Iz9KSExO6c2WiV/TTp7nls0Rj7OVlpugRY23psPZnzrbcZxkCLld0NAXs7Wk7HjDY=@vger.kernel.org X-Gm-Message-State: APuU4Z9sKGJ6ltzOWkr8dFe2/vbGVQhmKLMuu0vUrG7zuTBCgZqKPjva CnsvfWfWTI8pp4Cs6W9ZWsguaYONmO/h4o2IY+qN86aw/MC8hPvSlcZE X-Gm-Gg: AZFdTZcX/20RUaBoR/Syf0ZTTJkVtKxAJnPr3hI12WD5wwTaR7uy3zU6x4k9mxRFIxA tNbdoVi60X1gvuylek8dq4ub1u9BnCbe0oJpAidypMO2JC6RVC9hNrJW3u/KRzwLFeBFfXFbQnV MNDsZ2QvKyU2PgvZ/21uovI8lQ9XBXViHo3udYCy1FfSXXbtRWe4lisrvGT8rlBXYFooC+HmC16 twdgzRqh9TwcaxAzLV10HRLoa24tJ96K20KYsSsQKH966oWswh7tZbLN0hhWkYVzmvUb+JMjsl8 masocMog0XOOQ/feFPnEffW9pU/Y794/88w9CfzyAMZwv1+8J/xI4twdo6xk16FA42DRNcGzAXk zYnD6hnuI/Y6SLfNxsYsCfJGAlPAt/Ng/6dkCNLmUngpYuFTQ9EpJ2XkS7CoRBXkA4tKZZOTdF8 Lmxs6ERpgnLpI7qMzrQDvqWO/o/JGxuzwDYm0tu0ZYhCSOiqyZEtctlsuz+RgYU2y7MNF2lvLBg bI7eD4fcN+nRMt3juQfI5837K+S7NuOc4fytGWNad4KlO6FQ1zqr6/gIsdB1BWxlW3mAaAwlUpH gjHjhFHzPzAiyPawhh82aw== 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-api@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.