mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Satyam Gupta <sgsatyam@google.com>
Cc: Benson Leung <bleung@chromium.org>,
	Guenter Roeck <groeck@chromium.org>,
	Gwendal Grignou <gwendal@chromium.org>,
	Scott Collyer <scollyer@google.com>,
	chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 0/7] platform/chrome: cros_ec_sensorhub: Timestamp wrap and drift filter fixes
Date: Mon, 2 Nov 2026 04:01:38 +0000	[thread overview]
Message-ID: <augLIhP4jcY1CCf0@google.com> (raw)
In-Reply-To: <20261029092846.1567475-1-sgsatyam@google.com>

On Thu, Oct 29, 2026 at 09:28:39AM +0000, Satyam Gupta wrote:
> This series fixes how the 32-bit EC timestamps are unwrapped, and
> several issues in the filter that converts them to the AP timebase. They
> caused sensor timestamps to be off by a whole overflow period (about 71.6
> minutes) after long gaps such as suspend, Out Of Order (OOO) timestamps,
> and large gaps between sensor samples during batching.
> 
> Patches 1 and 2 handle the EC timestamp wrap across long gaps. Patch 3
> fixes an off-by-one in the filter history shift. Patches 4 to 6 make the
> drift estimate robust to interrupt jitter and to switches between
> streaming and batching. Patch 7 drops samples whose timestamp goes
> backward instead of re-timing them.
> 
> [...]

Applied to

    https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[1/7] platform/chrome: cros_ec_sensorhub: Unwrap sample TS relative to FIFO TS
      commit: 5d4991976df243d2880e06424c0c91fa05b403d8
[2/7] platform/chrome: cros_ec_sensorhub: Reset TS filter on EC/AP time mismatch
      commit: f2d353ccd15d5b12aaffab63539954c8a2a5898e
[3/7] platform/chrome: cros_ec_sensorhub: Fix TS filter history shift index
      commit: 19bc5f68e08b6ccaa3682808e46933784db577c9
[4/7] platform/chrome: cros_ec_sensorhub: Clamp clock drift slope to MAX_DRIFT_PPM
      commit: 3c127f4fa7b40ebc8a0777f55f1bd992a3668968
[5/7] platform/chrome: cros_ec_sensorhub: Reset TS filter on ODR or mode changes
      commit: 2c6a906d46fbd1f2e4a841e6ccf26b2e531fc6d5
[6/7] platform/chrome: cros_ec_sensorhub: Increase TS_HISTORY_BORED_US to 2s
      commit: 8ecd9cc825eb111b60372a990217cfaaa1f453ac
[7/7] platform/chrome: cros_ec_sensorhub: Drop sensor samples with past timestamps
      commit: f19a0c420750d232fdd4b91848f0e12a2911fa53

Thanks!

      parent reply	other threads:[~2026-11-02  4:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29  9:28 Satyam Gupta
2026-10-29  9:28 ` [PATCH v6 1/7] platform/chrome: cros_ec_sensorhub: Unwrap sample TS relative to FIFO TS Satyam Gupta
2026-10-29  9:28 ` [PATCH v6 2/7] platform/chrome: cros_ec_sensorhub: Reset TS filter on EC/AP time mismatch Satyam Gupta
2026-10-29  9:28 ` [PATCH v6 3/7] platform/chrome: cros_ec_sensorhub: Fix TS filter history shift index Satyam Gupta
2026-10-29  9:28 ` [PATCH v6 4/7] platform/chrome: cros_ec_sensorhub: Clamp clock drift slope to MAX_DRIFT_PPM Satyam Gupta
2026-10-29  9:28 ` [PATCH v6 5/7] platform/chrome: cros_ec_sensorhub: Reset TS filter on ODR or mode changes Satyam Gupta
2026-10-29  9:28 ` [PATCH v6 6/7] platform/chrome: cros_ec_sensorhub: Increase TS_HISTORY_BORED_US to 2s Satyam Gupta
2026-10-29  9:28 ` [PATCH v6 7/7] platform/chrome: cros_ec_sensorhub: Drop sensor samples with past timestamps Satyam Gupta
2026-11-02  4:01 ` Tzung-Bi Shih [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=augLIhP4jcY1CCf0@google.com \
    --to=tzungbi@kernel.org \
    --cc=bleung@chromium.org \
    --cc=chrome-platform@lists.linux.dev \
    --cc=groeck@chromium.org \
    --cc=gwendal@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=scollyer@google.com \
    --cc=sgsatyam@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®