Skip to content

Add hexagon l2vic, qtimer devices

Brian Cain qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest18 patches 1 replyIn review
  2. v418 patches 14 repliesSuperseded
  3. v314 patches 5 repliesSuperseded

Changes in v5 from the cover letter

- access-control checks factored out into access_ok()
- qct-qtimer.c moved from specific_ss to system_ss
- cnttid_{0,1} values derived from nr_frames
- test coverage for access control, irqs

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18hw/hexagon: add hex-subsyshw/hexagon/hex-subsys.c hw/hexagon/hexagon_dsp.c hw/hexagon/meson.build +2 more+54 -270 replies
2/18hw/hexagon: move VTCM to the common machine statehw/hexagon/hex-subsys.c hw/hexagon/virt.c include/hw/hexagon/hexagon.h +1 more+9 -60 replies
3/18hw/hexagon: move global registers to hex-subsyshw/hexagon/hex-subsys.c hw/hexagon/hexagon_dsp.c hw/hexagon/virt.c +2 more+41 -330 replies
4/18hw/hexagon: move the TLB to hex-subsyshw/hexagon/hex-subsys.c hw/hexagon/hexagon_dsp.c hw/hexagon/virt.c +1 more+17 -200 replies
5/18hw/hexagon: group the CPUs in a clusterhw/hexagon/Kconfig hw/hexagon/hex-subsys.c hw/hexagon/hexagon_dsp.c +3 more+62 -40 replies
6/18bitops.h: Add find_first_bit32()include/qemu/bitops.h+26 -40 replies
7/18hw/intc: Add l2vic interrupt controllerMAINTAINERS docs/devel/hexagon-l2vic.rst docs/devel/index-internals.rst +9 more+705 -10 replies
8/18hw/hexagon: extract get_reg_value/set_reg_value stubs in globalreghw/hexagon/hexagon_globalreg.c+18 -50 replies
9/18hw/hexagon: connect l2vic devicehw/hexagon/hex-subsys.c hw/hexagon/hexagon_dsp.c hw/hexagon/hexagon_globalreg.c +4 more+72 -50 replies
10/18hw/hexagon/virt: instantiate virtio-mmio transportshw/hexagon/virt.c include/hw/hexagon/virt.h+31 -00 replies
11/18hw/hexagon/virt: add l2vic interrupt-controller and virtio-mmio FDT nodeshw/hexagon/virt.c+41 -20 replies
12/18hw/hexagon/virt: connect pl011 UART interrupthw/hexagon/virt.c+8 -20 replies
13/18tests/qtest: add L2VIC qtestMAINTAINERS tests/qtest/l2vic-test.c tests/qtest/meson.build+251 -10 replies
14/18tests/functional/hexagon: add arch_tests functional testtests/functional/hexagon/test_arch_tests.py+6 -00 replies
15/18hw/timer: Add QCT QTimer device modelMAINTAINERS hw/timer/Kconfig hw/timer/meson.build +3 more+722 -01 reply
16/18hw/hexagon: connect qtimer devicehw/hexagon/Kconfig hw/hexagon/hex-subsys.c hw/hexagon/hexagon_globalreg.c +2 more+51 -00 replies
17/18tests/qtest: add qct-qtimer qtestMAINTAINERS tests/qtest/meson.build tests/qtest/qct-qtimer-test.c+387 -10 replies
18/18tests/functional/hexagon: enable more arch_tests casestests/functional/hexagon/test_arch_tests.py+32 -00 replies

Reviews trailers per patch

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

PatchPhilippe Mathieu-DaudéPierrick BouvierDamien HeddeTobias RöhmelSid ManningThomas MarceronMahmoud KamelMatheus Tavares Bernardino
1/18R-b
2/18R-b
3/18R-b
4/18R-b
5/18R-b
6/18R-b
7/18R-b Co-authored-by Co-authored-by
8/18R-b
9/18R-b R-b
10/18R-b
11/18R-b
12/18R-b
13/18R-b
14/18R-b
15/18R-b Co-authored-by Co-authored-by Co-authored-by Co-authored-by Co-authored-by
16/18R-b
17/18R-b
18/18R-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 8 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/18] Add hexagon l2vic, qtimer devices

The previously independent threads for l2vic and qtimer are now combined, which seems to make the most sense because qtimer testing effectively depends on l2vic.

Changes in v5:
- access-control checks factored out into access_ok()
- qct-qtimer.c moved from specific_ss to system_ss
- cnttid_{0,1} values derived from nr_frames
- test coverage for access control, irqs

l2vic v4: https://lore.kernel.org/qemu-devel/[email protected]/
l2vic v3: https://lore.kernel.org/qemu-devel/[email protected]/
l2vic v2: https://lore.kernel.org/qemu-devel/[email protected]/
l2vic v1: https://lore.kernel.org/qemu-devel/[email protected]/
qtimer v1: https://lore.kernel.org/qemu-devel/[email protected]/

Brian Cain (17):
hw/hexagon: add hex-subsys
hw/hexagon: move VTCM to the common machine state hw/hexagon: move global registers to hex-subsys hw/hexagon: move the TLB to hex-subsys
hw/hexagon: group the CPUs in a cluster
bitops.h: Add find_first_bit32()
hw/hexagon: extract get_reg_value/set_reg_value stubs in globalreg hw/hexagon: connect l2vic device
hw/hexagon/virt: instantiate virtio-mmio transports hw/hexagon/virt: add l2vic interrupt-controller and virtio-mmio FDT
nodes
hw/hexagon/virt: connect pl011 UART interrupt tests/qtest: add L2VIC qtest
tests/functional/hexagon: add arch_tests functional test hw/timer: Add QCT QTimer device model
hw/hexagon: connect qtimer device
tests/qtest: add qct-qtimer qtest tests/functional/hexagon: enable more arch_tests cases

Sid Manning (1):
hw/intc: Add l2vic interrupt controller

 MAINTAINERS                                 |   7 +
 docs/devel/hexagon-l2vic.rst                |  55 ++
 docs/devel/index-internals.rst              |   1 +
 include/hw/hexagon/hex-subsys.h             |  32 +
 include/hw/hexagon/hexagon.h                |   6 +
 include/hw/hexagon/hexagon_globalreg.h      |   8 +
 include/hw/hexagon/virt.h                   |   4 +-
 include/hw/intc/hex-l2vic.h                 |  61 ++
 include/hw/timer/qct-qtimer.h               |  43 ++
 include/qemu/bitops.h                       |  30 +-
 target/hexagon/cpu.h                        |   2 +
 hw/hexagon/hex-subsys.c                     | 175 +++++
 hw/hexagon/hexagon_dsp.c                    |  45 +-
 hw/hexagon/hexagon_globalreg.c              |  65 +-
 hw/hexagon/virt.c                           | 130 ++--
 hw/intc/hex-l2vic.c                         | 556 ++++++++++++++++
 hw/timer/qct-qtimer.c                       | 667 ++++++++++++++++++++
 target/hexagon/cpu.c                        |   2 +
 target/hexagon/op_helper.c                  |  16 +-
 tests/qtest/l2vic-test.c                    | 249 ++++++++
 tests/qtest/qct-qtimer-test.c               | 385 +++++++++++
 hw/hexagon/Kconfig                          |   3 +
 hw/hexagon/meson.build                      |   1 +
 hw/intc/Kconfig                             |   3 +
 hw/intc/meson.build                         |   2 +
 hw/intc/trace-events                        |   4 +
 hw/timer/Kconfig                            |   3 +
 hw/timer/meson.build                        |   2 +
 hw/timer/trace-events                       |   5 +
 tests/functional/hexagon/test_arch_tests.py |  38 ++
 tests/qtest/meson.build                     |   2 +-
 31 files changed, 2512 insertions(+), 90 deletions(-)
 create mode 100644 docs/devel/hexagon-l2vic.rst
 create mode 100644 include/hw/hexagon/hex-subsys.h
 create mode 100644 include/hw/intc/hex-l2vic.h
 create mode 100644 include/hw/timer/qct-qtimer.h
 create mode 100644 hw/hexagon/hex-subsys.c
 create mode 100644 hw/intc/hex-l2vic.c
 create mode 100644 hw/timer/qct-qtimer.c
 create mode 100644 tests/qtest/l2vic-test.c
 create mode 100644 tests/qtest/qct-qtimer-test.c
Signature · 1 line
2.34.1