Re: [PATCH v6 0/7] platform/chrome: cros_ec_sensorhub: Timestamp wrap and drift filter fixes

From: Tzung-Bi Shih

Date: Sun Nov 01 2026 - 23:02:10 EST


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!