Skip to content

hw/timer/arm_timer: QOM'ify ARM_TIMER and correct sysbus/irq in ICP_PIT

Philippe Mathieu-Daudé qemu-arm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest19 patches 20 repliesIn review
  2. v115 patches 22 repliesSuperseded

Changes in v2 from the cover letter

- Added pm215's R-b tags
- Addressed Mark/Peter review comments
- Drop '*State' suffix from structure names
- Use OR-IRQ gate
- Drop sp804_unrealize()
- Implement Resettable API
- MMIO-map timer regions into parents

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19hw/timer/arm_timer: Declare QOM types using DEFINE_TYPES() macrohw/timer/arm_timer.c+15 -201 reply
2/19hw/timer/arm_timer: Remove pointless cast from void *hw/timer/arm_timer.c+8 -81 reply
3/19hw/timer/arm_timer: Move SP804 code aroundhw/timer/arm_timer.c+15 -151 reply
4/19hw/timer/arm_timer: CamelCase rename icp_pit_state -> IntegratorPIThw/timer/arm_timer.c+6 -61 reply
5/19hw/timer/arm_timer: CamelCase rename arm_timer_state -> ArmTimerhw/timer/arm_timer.c+15 -151 reply
6/19hw/timer/arm_timer: Rename SP804State -> SP804Timerhw/timer/arm_timer.c+11 -111 reply
7/19hw/timer/arm_timer: Rename TYPE_SP804 -> TYPE_SP804_TIMERhw/timer/arm_timer.c+5 -51 reply
8/19hw/timer/arm_timer: Extract arm_timer_reset_hold()hw/timer/arm_timer.c+8 -11 reply
9/19hw/timer/arm_timer: Convert read/write handlers to MemoryRegionOps oneshw/timer/arm_timer.c+8 -81 reply
10/19hw/timer/arm_timer: Rename arm_timer_init() -> arm_timer_new()hw/timer/arm_timer.c+6 -61 reply
11/19hw/timer/arm_timer: Convert ArmTimer::freq to uint32_t typehw/timer/arm_timer.c+1 -11 reply
12/19hw/timer/arm_timer: Use array of frequency in SP804Timerhw/timer/arm_timer.c+5 -51 reply
13/19hw/timer/arm_timer: Iterate on timers using for() loop statementhw/timer/arm_timer.c+14 -131 reply
14/19hw/timer/arm_timer: Pass timer output IRQ as parameter to arm_timer_newhw/timer/arm_timer.c+8 -51 reply
15/19hw/timer/arm_timer: Fix misuse of SysBus IRQ in IntegratorPIThw/timer/arm_timer.c+14 -11 reply
16/19hw/timer/arm_timer: Extract icp_pit_realize() from icp_pit_init()hw/timer/arm_timer.c+19 -21 reply
17/19hw/timer/arm_timer: QDev'ify ARM_TIMERhw/timer/Kconfig hw/timer/arm_timer.c+105 -351 reply
18/19hw/timer/arm_timer: Map ARM_TIMER MMIO regions into IntegratorPIThw/timer/arm_timer.c+4 -391 reply
19/19hw/timer/arm_timer: Map ARM_TIMER MMIO regions into SP804Timerhw/timer/arm_timer.c+2 -211 reply

Reviews trailers per patch

18 of 19 patches have a Reviewed-by or Acked-by.

PatchPeter MaydellRichard Henderson
1/19R-b R-b
2/19R-b R-b
3/19R-b R-b
4/19R-b R-b
5/19R-b R-b
6/19R-b
7/19R-b
8/19R-b
9/19R-b
10/19R-b R-b
11/19R-b R-b
12/19R-b R-b
13/19R-b R-b
14/19A-b
15/19R-b A-b
16/19R-b
17/19
18/19R-b
19/19R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/19] hw/timer/arm_timer: QOM'ify ARM_TIMER and correct sysbus/irq in ICP_PIT

This series converts the ARM_TIMER model to QOM.

Doing so we also correct an abuse of SysBus IRQ in the ICP PIT model.

Since v1:
- Added pm215's R-b tags
- Addressed Mark/Peter review comments
- Drop '*State' suffix from structure names
- Use OR-IRQ gate
- Drop sp804_unrealize()
- Implement Resettable API
- MMIO-map timer regions into parents

Regards,

Phil.

Philippe Mathieu-Daudé (19):
hw/timer/arm_timer: Declare QOM types using DEFINE_TYPES() macro hw/timer/arm_timer: Remove pointless cast from void * hw/timer/arm_timer: Move SP804 code around hw/timer/arm_timer: CamelCase rename icp_pit_state -> IntegratorPIT hw/timer/arm_timer: CamelCase rename arm_timer_state -> ArmTimer hw/timer/arm_timer: Rename SP804State -> SP804Timer hw/timer/arm_timer: Rename TYPE_SP804 -> TYPE_SP804_TIMER hw/timer/arm_timer: Extract arm_timer_reset_hold() hw/timer/arm_timer: Convert read/write handlers to MemoryRegionOps
ones
hw/timer/arm_timer: Rename arm_timer_init() -> arm_timer_new() hw/timer/arm_timer: Convert ArmTimer::freq to uint32_t type hw/timer/arm_timer: Use array of frequency in SP804Timer hw/timer/arm_timer: Iterate on timers using for() loop statement hw/timer/arm_timer: Pass timer output IRQ as parameter to
arm_timer_new
hw/timer/arm_timer: Fix misuse of SysBus IRQ in IntegratorPIT hw/timer/arm_timer: Extract icp_pit_realize() from icp_pit_init() hw/timer/arm_timer: QDev'ify ARM_TIMER hw/timer/arm_timer: Map ARM_TIMER MMIO regions into IntegratorPIT hw/timer/arm_timer: Map ARM_TIMER MMIO regions into SP804Timer

 hw/timer/arm_timer.c | 353 +++++++++++++++++++++++++------------------
 hw/timer/Kconfig     |   1 +
 2 files changed, 203 insertions(+), 151 deletions(-)
Signature · 1 line
2.38.1