Skip to content

Conversation

@alvsun
Copy link
Contributor

@alvsun alvsun commented Apr 24, 2025

Backport 2bda7b8~2..2bda7b8 from #82905

Fixes #88946

ChiHuaL added 2 commits April 24, 2025 11:02
This commit fixes some potential leakage in the timer driver.

Signed-off-by: Jun Lin <[email protected]>
(cherry picked from commit bdf0500)
Originally, when the timer's source clock is 32.768 kHz, the timer driver
uses two consecutive reads to ensure the timer reading is correct.
However, it is not robust enough due to an asynchronous timing issue in
the chip. The workaround is to add at least two NOPs between the
LDR and CMP instructions. This commit implements the workaround in the
assembly code to ensure it is not affected by the compiler toolchain
or optimization flags.

Signed-off-by: Jun Lin <[email protected]>
(cherry picked from commit 2bda7b8)
@alvsun alvsun marked this pull request as ready for review April 24, 2025 05:59
@github-actions github-actions bot added the area: Timer Timer label Apr 24, 2025
@github-actions github-actions bot requested review from andyross and teburd April 24, 2025 06:00
@alvsun alvsun added the Backport Backport PR and backport failure issues label Apr 24, 2025
@github-project-automation github-project-automation bot moved this to To do in Backports Apr 24, 2025
@fabiobaltieri fabiobaltieri assigned MulinChao and unassigned andyross Jun 3, 2025
@dkalowsk dkalowsk added this to the v3.7.2 milestone Jun 4, 2025
@nashif nashif merged commit e3248cd into v3.7-branch Jun 4, 2025
26 checks passed
@github-project-automation github-project-automation bot moved this from To do to Done in Backports Jun 4, 2025
@nashif nashif deleted the backport-82905-to-v3.7-branch branch June 4, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Timer Timer Backport Backport PR and backport failure issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

8 participants