Skip to content

sbsa-gwdt cleanup and fixes

Igor Mammedov qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sbsa-gwdt: reduce code identhw/watchdog/sbsa_gwdt.c+20 -182 replies
2/6arm: gwdt: consolidate clear WS0 and WS1 on explicit refreshhw/watchdog/sbsa_gwdt.c+4 -41 reply
3/6arm: gwdt: simplify WCV update conditionhw/watchdog/sbsa_gwdt.c+6 -61 reply
4/6sbsa-gwdt: rename sbsa_gwdt_update_timer() to sbsa_gwdt_wor_update_timer()hw/watchdog/sbsa_gwdt.c+6 -61 reply
5/6sbsa-gwdt: don't arm timer for compare values above INT64_MAXhw/watchdog/sbsa_gwdt.c+17 -11 reply
6/6sbsa-gwdt: reschedule timer on direct WCV loadhw/watchdog/sbsa_gwdt.c+9 -01 reply

Reviews trailers per patch

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

PatchEric AugerPeter Maydell
1/6R-b R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] sbsa-gwdt cleanup and fixes

Series picks up dropped gwdt fixes from

[PATCH v3 00/17] Add watchdog support to arm/virt board
https://patchew.org/QEMU/[email protected]/

patches were basically rewritten to make changes simpler/easier to reson about.

patch 6/6 is partial fix with open question:

sbsa-gwdt currently mantains WVC in since VM start ticks, which works fine under TCG. However under KVM those system counter domains diverge and CNTPCT in guest starts to return host's value. As result WCV reads/writes got mixed up with QEMU still assuming VM timeframe while guest using host's one. Question is how should we fix it?

Igor Mammedov (6):
sbsa-gwdt: reduce code ident
arm: gwdt: consolidate clear WS0 and WS1 on explicit refresh
arm: gwdt: simplify WCV update condition
sbsa-gwdt: rename sbsa_gwdt_update_timer() to
sbsa_gwdt_wor_update_timer()
sbsa-gwdt: don't arm timer for compare values above INT64_MAX
sbsa-gwdt: reschedule timer on direct WCV load

 hw/watchdog/sbsa_gwdt.c | 81 +++++++++++++++++++++++++++--------------
 1 file changed, 54 insertions(+), 27 deletions(-)
Signature · 1 line
2.52.0