From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796194096; b=hIom+fRhH7ZubYrpSlqjquAJQHNztsFZ3jaAHd6Hw68Mefc/p9GWZcUXSrjEIeJbjeDo RYcKSIbW7mrwWJ5wQAaJP0EGcoJZBbzvImK2WACUQTOsUEqi/Rgf1Q1Wp7AqOqk8Zlk5w t3DmvraWrMYSe0arufs1PjzWboaalwmBkMnEEyN814Ad0AZUKsA3ZU0FMkeIVQiEgpvPB jppK2eR+mWl8vMlXH9N2NEXw2HmyPZKhDs+ODqvL14Yo1j5ZTBbSzOkrFrGcRfR+3VE2Y a1sHGrYqeRJPlIk+yJMvLiNfbBFUGGcb00qsjNh0IrEwmiWBTyLhz1xAdrRaN7mUfcA== 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=se9nYxDN7W3cfai19K9AOs91PUGi/avtYzUU2df5GYeanab8UZZEk8bbyiAbO5KYevw0 T6oFqM1pz7I2ORT7qXTqdcfWe/xkqJTH7MY1MlayvPiwf7eCn1GD5Zb7V+9Hbdg/+VzvH 2RdkJ5VUlBbTZxlRYTEJIdhnXR+5lRr3vnf7wA3oogGTTrnYKTYqWebKGb51TnWKKoHl6 9bzLTAncLeELHV6BuC+KIjdN0trEmurTmxmKEDeYyTkHrNSHoI9Hei/r/sdBWwp9Kmu6X 422TAWFtcsVLq7sLqXwZlJxxlocbLfSww5tYz87yn/GQSm/UqOFTnfsu86yJh1t+RtQ== 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="lg/osnxy"; arc=none smtp.remote-ip=209.85.214.176 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 3586E606A323 for ; Wed, 2 Dec 2026 06:48:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3586E606A323 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=lg/osnxy Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2f01f296937so94942205ad.3 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=lists.linux.dev; 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=lg/osnxy3lVvcExgjT3g88gQy549OhcMWX1iH3z2XiWPzY1IZeG+cr1odEmiGnypDw HPS91tFNsi9JwLaIJVyMha8ToWk3CWG8kKKIK/1vgX4QWO0IG6rb753cVwA82RytDBkH V0N8+q+2kFpJwcbInfVyhQuXV6rwqTzT7ULmK5Yi9q8d+my67wHR0BrhCF3pDYGJPl+G T4tLj5+s/ygyMpt7YtIiBEe9xFnx3X1+9di14HBUI6Ga423rck33t+rgVMnFeq0Zyd56 nUFJradYK3dhGuIB1md5D0rg7rXK4if3zV/xNfr7qFea+SiNWYnbB0Y7EKiFL53zAacD bCfw== 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=UTxX+vj8EjEtIUZP/ekzbLhQNDx/xxwokUWkD0pdJ9q7ne/UgVYuGlQpcW+m6syrTQ GJIHuqR5rUaULep0kCDhGiyNQf+oemDRhhDO74y0RHWyPipQLWqy8fEKv9THifQVZZTP /lRlvYJODfRElXlXCqIhtzoMZCTs8261HATwS5Mz39bqKgFUTtTw0iPzf/AL0anlNH7C BQ4NJlG0uegAqDvQqCnlZMdv58pdFNEFLniRxoKcp3+AUx968ylcYS/GUyMji2hiK6qt lOrO1BNKFBA2e+tZznZbaPMx9/iAGgciIWqGo+15B5hpuqzNbOuPGOc14HhSWvAklIj8 PLxw== X-Forwarded-Encrypted: i=1; AL+hErFjpTmlGAQEGvPjq1XRNhkVMU7Qjv8+QBZ8Pxnb0kgc9pRSx8eaI/EUrOXfhNKY7qRDc+s0u48BOGs=@lists.linux.dev X-Gm-Message-State: APuU4Z+SjDh+UzQe7QZ3B9HUItjI5jHgSuXbBve6QSIyrEw2z0dqlha/ trt3qlSEWUQ7svh2CmRSGRJsVPKU5MBmu9kaOFW0n9oH6llwXW9h1lY7 X-Gm-Gg: AZFdTZeBJX0XNXX016FyLfl32J7aVBHhEMNU6db9FzXc8Dq1l4GitoZTIAcCQ0WGymV MJPDF7zQdGNAWiBUdPkPAG2T64LMWxN4REK8cyGrYMHDwvUxykdibBN8OT5GEl5o0CcZC8lwm8e miKbhUPm1MGHRAOUCuq/nBiAtEtvUkfM99w/OEgSxVStvqARSyDa6n9FvghdPGIdigM7A1M7c/2 togNErXcA/BRoO0jq8ksaIU5rPbczSRSErB2+zT/ogNG+YB24HqNKVSoVoW/up49PAXrH6iSDOC AoUJH2ux7OtXCaJGXXFAAjqpmPH4JPvyP8o2kq1K6OsGvCsJAwNsp4RIaR0UrMwJWnw5xQ+4JdF pXNTwv2ZIWSRQF+GifoCbneHa1B5eOWpstHT4hAmsbGTwI711SHE7gEkEKyNDjZFn9tKqoBtcaQ YqdaCzEnYJTbd+DV38btuZB1R4U2zPhw9JQ8mVpSj788wjyFxslyMiJzzeMi/cS8BURxr4cl2EO oR5SJzyBV0YZDOos1ruUnsJ54zO/IdMwtwk/1A1hxYzbZ4xPomWzmAx78zFVI2GgUDY5G5G93Pl /bEVdHQORnYuYqam33ZusQ== 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: timestamp@lists.linux.dev 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.