Skip to content

Hexagon: fix lock, priv bugs

Brian Cain qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v16 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target/hexagon: check privilege mode for system instructionstarget/hexagon/cpu.c target/hexagon/cpu.h target/hexagon/gen_tcg_funcs.py +2 more+29 -60 replies
2/5target/hexagon: wake K0 and TLB lock waiterstarget/hexagon/cpu_helper.c target/hexagon/hex_interrupts.c target/hexagon/hex_mmu.c +1 more+13 -20 replies
3/5target/hexagon: halt on tlblock when the TLB lock is contendedtarget/hexagon/hex_mmu.c+3 -00 replies
4/5target/hexagon: set a started thread's enable bit when start retirestarget/hexagon/cpu_helper.c+4 -00 replies
5/5tests/functional/hexagon: add MiniVM, lock teststests/functional/hexagon/meson.build tests/functional/hexagon/test_minivm.py tests/functional/hexagon/test_systests.py+52 -01 reply

Reviews trailers per patch

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

PatchPierrick Bouvier
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-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 0/5] Hexagon: fix lock, priv bugs

Testing with h2 and linux has uncovered some bugs in the way the locks are implemented and privileged instructions.

Note that this will be rebased to make adjustments when the *next_pc removals
land. See https://lore.kernel.org/qemu-devel/[email protected]/

In v2:
- now rebased after *next_pc state removal, hex_tlb_lock() now receives the packet PC, records that PC before halting the CPU, then exits TB.
- minivm test now preserves sparse test_mmu file in the archive, so extraction is fast, disk space required is small. Removed skipBigDataTest filter and subTest() hack.

v1: https://lore.kernel.org/qemu-devel/[email protected]/

Brian Cain (5):
target/hexagon: check privilege mode for system instructions target/hexagon: wake K0 and TLB lock waiters target/hexagon: halt on tlblock when the TLB lock is contended target/hexagon: set a started thread's enable bit when start retires tests/functional/hexagon: add MiniVM, lock tests

 target/hexagon/cpu.h                      |  1 +
 target/hexagon/translate.h                |  1 +
 target/hexagon/cpu.c                      |  2 +
 target/hexagon/cpu_helper.c               |  6 +++
 target/hexagon/hex_interrupts.c           |  8 +++-
 target/hexagon/hex_mmu.c                  |  6 +++
 target/hexagon/op_helper.c                |  2 +
 target/hexagon/translate.c                | 15 +++++++
 target/hexagon/gen_tcg_funcs.py           | 16 +++++---
 tests/functional/hexagon/meson.build      |  1 +
 tests/functional/hexagon/test_minivm.py   | 48 +++++++++++++++++++++++
 tests/functional/hexagon/test_systests.py |  3 ++
 12 files changed, 101 insertions(+), 8 deletions(-)
 create mode 100755 tests/functional/hexagon/test_minivm.py
Signature · 1 line
2.34.1