Skip to content

Intel Keem Bay WDT bug fixes

[email protected] linux-watchdog lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 3 repliesIn review
  2. v110 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- Dropped a patch with the incorrect fix
regarding the WDT suspend/resume function.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9watchdog: keembay: Update WDT pre-timeout during the initializationdrivers/watchdog/keembay_wdt.c+3 -00 replies
2/9watchdog: keembay: Upadate WDT pretimeout for every update in timeoutdrivers/watchdog/keembay_wdt.c+1 -00 replies
3/9watchdog: keembay: Update pretimeout to zero in the TH ISRdrivers/watchdog/keembay_wdt.c+2 -00 replies
4/9watchdog: keembay: Clear either the TO or TH interrupt bitdrivers/watchdog/keembay_wdt.c+4 -30 replies
5/9watchdog: keembay: Remove timeout update in the WDT start functiondrivers/watchdog/keembay_wdt.c+0 -10 replies
6/9watchdog: keembay: Removed timeout update in the TO ISRdrivers/watchdog/keembay_wdt.c+0 -10 replies
7/9watchdog: keembay: MACRO for WDT enable and disable valuesdrivers/watchdog/keembay_wdt.c+4 -20 replies
8/9watchdog: keembay: WDT SMC handler MACRO name updatedrivers/watchdog/keembay_wdt.c+3 -30 replies
9/9watchdog: keembay: Typo corrections and other blank operationsdrivers/watchdog/keembay_wdt.c+7 -40 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchGuenter RoeckAndy ShevchenkoKris Pan
1/9R-b R-b T-b
2/9R-b R-b T-b
3/9R-b R-b T-b
4/9R-b R-b T-b
5/9R-b R-b T-b
6/9R-b R-b T-b
7/9R-b R-b T-b
8/9R-b T-b
9/9R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/9] Intel Keem Bay WDT bug fixes

From: Shruthi Sanil <[email protected]>

The series of patches include the below bug fixes
in the Intel Keem Bay watchdog timer driver:

Patch 1/9:
- Update WDT pre-timeout during the initialization
The pretimeout register has a default reset value. Hence when a smaller WDT timeout is set which would be lesser than the default pretimeout, the system behaves abnormally, starts triggering the pretimeout interrupt even when the WDT is not enabled, most of the times leading to system crash. Hence an update in the pre-timeout is also required for the default timeout that is being configured.

Patch 2/9:
- Upadate WDT pretimeout for every update in timeout The pre-timeout value to be programmed to the register has to be calculated and updated for every change in the timeout value. Else the threshold time wouldn't be calculated to its corresponding timeout.

Patch 3/9:
- Update pretimeout to 0 in the TH ISR
The pretimeout has to be updated to 0 during the ISR of the ThresHold interrupt. Else the TH interrupt would be triggerred for every tick until the timeout.

Patch 4/9:
- Clear either the TO or TH interrupt bit
During the interrupt service routine of the TimeOut interrupt and the ThresHold interrupt, the respective interrupt clear bit have to be cleared and not both.

Patch 5/9:
- Remove timeout update in the WDT start function
Removed set timeout from the start WDT function. There is a function defined to set the timeout. Hence no need to set the timeout again in start function as the timeout would have been already updated before calling the start/enable.

Patch 6/9:
- Removed timeout update in the TO ISR
In the TO ISR removed updating the Timeout value because its not serving any purpose as the timer would have already expired and the system would be rebooting.

Patch 7/9:
- MACRO for WDT enable and disable values
Introduced MACRO's for WDT enable and disable values for better readability

Patch 8/9:
- WDT SMC handler MACRO name update
Updated the WDT SMC handler MACRO name to make it clear that its a ARM SMC handler that helps in clearing the WDT interrupt bit.

Patch 9/9:
- Typo corrections and other blank operations Corrected typos, aligned the tabs and added new lines wherever required for better readability

Changes since v1:
- Dropped a patch with the incorrect fix
regarding the WDT suspend/resume function.

Shruthi Sanil (9):
watchdog: keembay: Update WDT pre-timeout during the initialization
watchdog: keembay: Upadate WDT pretimeout for every update in timeout
watchdog: keembay: Update pretimeout to zero in the TH ISR
watchdog: keembay: Clear either the TO or TH interrupt bit
watchdog: keembay: Remove timeout update in the WDT start function
watchdog: keembay: Removed timeout update in the TO ISR
watchdog: keembay: MACRO for WDT enable and disable values
watchdog: keembay: WDT SMC handler MACRO name update
watchdog: keembay: Typo corrections and other blank operations

 drivers/watchdog/keembay_wdt.c | 34 ++++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 12 deletions(-)

base-commit: 88b06399c9c766c283e070b022b5ceafa4f63f19

Signature · 1 line
2.17.1