🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19340

[RFC] igc: TimeHAT I226 PPS input filtering and output mode

#19340
From: Ahmad Byagowi
Date: Thu, 19 Nov 2026 19:32
55 lines
14235 bytes
Hello,

I would like to upstream a proper solution for the PPS behavior addressed by
the TimeHAT igc driver modifications:

https://github.com/Time-Appliances-Project/TimeHAT

There are two independent changes in those packages.

The EXTTS change accepts single-edge requests and filters events using the
current SDP level in the interrupt handler. The recent packages wait 20 us
before reading the level, with configurable delay and inversion. They also
force every enabled request to rising-only, including both-edge requests.
That behavior needs to be corrected before it could be proposed upstream.

An independent user reported improvement with the patched input path here:
https://github.com/geerlingguy/time-pi/issues/28

This is a user report, not a controlled current-mainline validation. LinuxPTP's
both-edge mode with the correct physical pulse width should be included in
the baseline. Sampling GPIO after an interrupt also cannot reliably identify
the timestamped edge if another transition has already occurred.

Is there a documented I225/I226 edge selector, latched edge indication, or
supported workaround that would allow reliable single-edge EXTTS while
preserving both-edge behavior? If there is no such mechanism, I would like
to establish the supported approach for this hardware with LinuxPTP.

The independent PEROUT change removes the 500000000 ns half-period from the
frequency-mode condition, so a one-second output uses the target-time path.
The project README reports that this resolves its PPS output behavior.

However, both the packaged driver and current upstream already contain
5e91c72e560c ("igc: Fix PPS delta between two synchronized end-points") and
84a192e46106 ("igc: Handle PPS start time programming for past time values").
The current source also programs a future target time in frequency mode.
I do not yet have a controlled comparison isolating a residual output failure
despite these fixes, or an erratum establishing the need to switch modes.

The proposed comparison is stock current igc against the same source with
only the one-line mode change. It will measure phase against an independent
reference, pulse width and polarity, and behavior under PHC adjustments,
CPU/network load, and repeated enable/disable on both channels.

Are there known I226 revisions or operating conditions where frequency-mode
1PPS remains incorrect with ST0/ST1 set? Would a target-time workaround be
appropriate if that comparison reproduces the failure?

The goal is small, independently justified changes against the Intel trees,
with the correct API semantics and hardware evidence. The packaged driver
should not be merged wholesale.

Thank you,
Ahmad Byagowi
Technical Details
Message-ID: <CAOQiBWOrLLR_hDAxGQeDT0ogrR0zDDvo4vrk6_viqurAHh33uQ@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-sfo.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367289-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-sfo.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367289-linux-kernel-netdev=dewy.ru
From: ahmadexp@gmail.com (Ahmad Byagowi)
Newsgroups: linux.kernel.netdev
Subject: [RFC] igc: TimeHAT I226 PPS input filtering and output mode
Date: Thu, 19 Nov 2026 11:32:29 -0800
Organization: Usenet Network
Message-ID: <CAOQiBWOrLLR_hDAxGQeDT0ogrR0zDDvo4vrk6_viqurAHh33uQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
	logging-data="2962158"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:K3hFFVks7zVcntcDZWMlvLODRZ0= sha256:Co4lha6CwVI7sVX8w5EmeI7TkSfMM/GKj8lfz1CxEv8=
	sha1:3UMjb6yD4O1qEeIwgrpC7WGZ34Y= sha256:3Z/Xg4EsjPm/9nwehOhX5E7S6fxEq4IwSEtrVGWut6Q=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id ED360115753; Thu, 19 Nov 2026 22:33:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id iAemKCQ2_p2p;
	Thu, 19 Nov 2026 22:32:58 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-367289-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 09BD511572B; Thu, 19 Nov 2026 22:32:47 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id E5EA0668DC0; Thu, 19 Nov 2026 19:32:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795116764;
	b=vEAzwBmBey6d5Ig2pzF05j3t3/nKp0yCyzWrp+Ew/OLTE7+Prc8JdCRW5c0HgmqBms7r
	 gAhPvOGVUmCVwOMKqXR6LcT2vATSozBRxPqeAHBgJhzBrTziNh+9gh/CTBG08BKU7Xcs+
	 FZJ233zuwjGiyrZO+pzgEyFjCdArgSkgGUcjSDps2m8Mj+fjCQNm9lryJzq4ltexQUwKu
	 HI5EPv3wSe8XjZ/gASrDUuGhePCorke7EGp2BglX4m0knryxYphyfEAbGJf9R84h0lryd
	 b4aQlbh3Pkb+KPWE5FC1fPUPSlxAYtwYjazaucZf/LBZLLfr1Kezb61TrYlLv+5OzZg==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795116764;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:Content-Type;
	bh=2c/CMF807UVrQ1AK631l/bk5YzH/qPyRcaggbCxLlzY=;
	b=HvcJehzrtNtOiNra5ajHRksFTKMGBNV7RUmE/7TCisIIcMEBBSa1VIvQVPWg132VO2Lu
	 XIZViDOhC22YRsbgoEUMi2ATG3/81RlUglNucgrb4XOZ1u4OLnGsnk2xxURVrt73qR4/e
	 XFHmPzDEY+Sl9QSunIA2wF+4jpBPR1hCdZWgN778ZmStpIDUT7MaE80irvL/Prb0lVAig
	 qJ43vLT7/AT8SbeQpEimt6W85vqhrougSrpCgIz+mNeom8sP5UwCERRVR61vDjR/ZiBZ+
	 cSpfZJuv2gBZxjAsTtkmPKYwGzdY0sa1+ytWthZWZSJ3AsehwkYidZVQX7fCYSm+hEw==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=LRH4bQHu;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D97E606A333;
	Thu, 19 Nov 2026 19:32:44 +0000 (UTC)
X-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=LRH4bQHu
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.167.41
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795116763;
	b=b+UAqOGP7fL1UhrGangF7zYvNWVHvaUzSz+Qq1QSg13d4Ysw4C1b91+r1Fj9WNndJnWu
	 18Ej/dt8E/K1GdCp9OYNxRPkifY6wXuBc5ggPDutOQq/sV7ABv6E/uc80y+rstMngwcYu
	 4l/dOFbgrzknjFRxox+8m1bdlzELLs3ts319SAjbAsh1gcDzUItbOOrljDS8wiGZimF5u
	 GLL2ZYiUjXaUIzYVdhVKaqpB5ERUctPwmf0oeawSEavDqHfn+tP/L1uUfv2WBZb3orM7I
	 c1MvAGZFa7ysLBqTvwZC2vm8UMk4mO2Pm6he0eRUH9UeT4IGwdT34TSEfzTbsd8/V6A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795116763;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 MIME-Version:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type;
	bh=2c/CMF807UVrQ1AK631l/bk5YzH/qPyRcaggbCxLlzY=;
	b=S0dfFhcCqv1jXS5lAgLQX3B8u3k4RU1LsVVEaAG4AV/QLxhQp+uGwcDriFcnUjj4iqSI
	 wca7y+hEM1DHyfkSfg9KjUVPsNz+L1fBgQDraZ80LkdoUB0GbXFgYwsC4hcBOerofhKz9
	 LDrD03XubeQlNMSytyxnG4GWI2nQ4SToirS7N1zdLjIQ+7SRE9GX3gPyA5BmHEtLXJuv+
	 5RCD0e33tauhksSRQlZxMmVbNnd0Q8weVb5iAO72A3seKAueH0xwvtFB6GnVOHls57vXm
	 JyFE03ujj8uRaeLF3ar0Pd6kKYsx/aBEdKwv06wHWPq7pMGzASLCrCTiObQERCt97sw==
X-ARC-Authentication-Results: i=2; 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=LRH4bQHu;
	arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.167.41
X-Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41])
	(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 3B880606A326
	for <netdev@vger.kernel.org>; Thu, 19 Nov 2026 19:32:43 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3B880606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-5c14f3dab0cso17072e87.1
        for <netdev@vger.kernel.org>; Thu, 19 Nov 2026 11:32:42 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1795116761; cv=none;
        d=google.com; s=arc-20260327;
        b=Q21/arzHExuehiinDPSa0Or5xlAALEualeMVY1wJbPx89SfnD3646BRDVNUUR1BGjw
         L9sAg5o8wrqCsebZ3ZrG6DoLGWXN8rVt0p+xDLX2szeZ9pb9AZKHWH7r4/5SL/XfQkjj
         CNOU1aNLtRcQBUuILmqb98fxOci3OFAuSzCHmxXPg27SNMhozOmTjq9qCg+ednmZbzd5
         lSJeqpih22fnvZF10mvwLibiMe81nh+izKizwcSxkVOLHDbENkrRsJ64dnSumEnBrLB5
         WF4BnTrk6NMspkFhL+iPwbTkdf9jhBob06CQ16WO4UOfR5QgCI/QMtC9Bl1HE1uyXAgv
         tHWg==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=cc:to:subject:message-id:date:from:mime-version:dkim-signature;
        bh=2c/CMF807UVrQ1AK631l/bk5YzH/qPyRcaggbCxLlzY=;
        fh=6WR8VOuA6KmxnF1FUPOhtCQkFWdz2U66bdT8uJ1YRnI=;
        b=lEEP2PoZJUUudslnKoVyRxf2FyYJmR/PULiIH3mUU0F9b31h+MINOlLMb1nPGpu6Ed
         1IkubwJMh3iIMKSimmHe5Ng850z97GmF5QG5iw1qkYr3azabTXh+Pf9DZfjrdh2H8dZB
         bUiimZHErqatz0payoy/7128DLiTMXY9cBooIBUnnNCoxcXvc8UABMN4Hrqn1KvwambE
         UbfNEESRk8rtvn3dKIlte6VseU9Qr7pXNZhufaquJ/mPt0ZPKQASS5nqRMnXDcoWborU
         PNI9UbRxjgt2YRGkj5yP/1DjZRJ/6biYuy2ZKHy5hgabWxiIz+Ie7yTJVRKgAbNLngJL
         9f+A==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795116761; x=1795721561; darn=vger.kernel.org;
        h=content-type:cc:to:subject:message-id:date:from:mime-version:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=2c/CMF807UVrQ1AK631l/bk5YzH/qPyRcaggbCxLlzY=;
        b=LRH4bQHuzh/UJhOZ0Uil67+DPLIEdZAzc8rkXVE7GE6Tn73uVT+7q3/rRfpIjb78Mv
         8HSPE39wlR0/qJKwYKN9aSwy1bQmujSafA0Qee/gAZrM2Ls9UH8stos4+Dy16DcmX74Z
         fe+cmZd+8hivJwgwPg55ZXJ3kts28t8jzQegBUZPYQaEIRC2Og35ZFzOMojQ5CsujOwt
         GTTJ6CTISP3T24tSWu8DAGEZi7dRJkcVy3DIVqSGiXK8WvjxE+Q8I4pY453L/e5DZ6RI
         8/rYTJ5uSgaz90SzO3gT+w+wkY6rMMaRMgAdlg/ClOq2DYuxYBUikCtZN9eaBABn9wPE
         HjPA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795116761; x=1795721561;
        h=content-type:cc:to:subject:message-id:date:from:mime-version
         :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
         :reply-to:content-type;
        bh=2c/CMF807UVrQ1AK631l/bk5YzH/qPyRcaggbCxLlzY=;
        b=Li/lfTpr6blcOiJ+CbZAU5Ca61mBMLPDCSC9ejVMcXCo+lYTU7fA4AyJO0CoXHt+Sm
         S5Kkjv8Y4kAT/S1vTwIdMJMnN/NE7l7pdrtWLjxxFLu4HBs5MKVxj9AV3crZyoMl/kiW
         rjKzG0es/5Agjg9l9NjLM9tl2+R9XHDHViuS8+3Ta1xj0RwCvLqGM9lUez5Fy0EdPADi
         po6IVj1t8gKfV+FdWuPbuC4xqNKPMPVA/o1y0V6SWPXBCRhtuCWOWT1IwJwinERX4q2w
         tqyx+37vnrOZDwjX0LXZz9bfhbuKsH4+hF0J+mKv4butbg34UwtP9QxIEHtk7QlPxgSm
         0Htg==
X-Forwarded-Encrypted: i=1; AL+hErGClW63BITwoG+nF+9hmzWC8+0S0J44yxHR7NiApj20JyMzXzc1OAGmTreUlPh3Yjus73Vjuuk=@vger.kernel.org
X-Gm-Message-State: APuU4Z+Jzz9IMjycuRbQN1Un/9JarqCayBUyqoJc59kZo/1UIGKh+gL5
	Hmd3wA2l4r3cppoQviQ1xrPzMQsCqk6i6mg8NR7PZKvYbJg8g7+/9gHaGt8d9k88HZFwmCh58xP
	oJ3BHXnxZUC1EacyEfXeEiFM3vE17Ce0=
X-Gm-Gg: AYBFou0lHrUrQ8j5PkB1r+YvSLSllOXAhh3I2nNB2q8/mO283PdLTmDrdp0BOMiHmU/
	qQIJhIly3MpjzFkT/w56uwSXtRw8pCL96Ml8bW6IBT4ku75P2NeVo+rjVlpKmg8uuwXZpGjwYvy
	0H89GnUotMkVak34Jxy6L2Aaoa7tLFjbuCJ6pzzYLg0YxArhS6XY6YbuwuHaytf8WXPP/ScgN4x
	RdldA5Y0QnDGMQRhf1NZXgCUTG6YUiSzNnhwuA0enCO6iYnc43l39jJbIc0shqX8lA2bcrQOUw7
	irvumJlRtond7j1AH/fSBqXe8hSYexQpyRUCTuzI9V0rsCohufiEG8t9xdcbeT0Dbdsym7FsCOk
	ov1pXnxu0gz7jfThzEvd2YNwWXzkJmVMDdLxz5SHHwDNtddscZWLxiOc37IvZ/Tgpgh9tHxXBJM
	I3O2ZGm7GLmZfMV8tpxpc=
X-Received: by 2002:a05:6512:3b21:b0:5c1:4c4b:6b2d with SMTP id
 2adb3069b0e04-5c1bc8f0665mr180691e87.58.1795116761108; Thu, 19 Nov 2026
 11:32:41 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Gm-Features: Aa3M54oofjjNnNH9tTc-QtW1TB2fkTZKj5AQD815z4ZiiX_4dzQU-6GhVDld0gY
X-Cc: Richard Cochran <richardcochran@gmail.com>, netdev@vger.kernel.org, 
	"anthony.l.nguyen@intel.com" <anthony.l.nguyen@intel.com>, 
	"przemyslaw.kitszel@intel.com" <przemyslaw.kitszel@intel.com>