[PATCH-for-11.2 00/14] Hexagon: fix systests + migration

Brian Cain posted 14 patches 3 days, 8 hours ago
There is a newer version of this series
MAINTAINERS                                 |   2 +
docs/system/hexagon/machines.rst            |   3 +
target/hexagon/gen_tcg.h                    |  18 +-
target/hexagon/helper.h                     |   4 +-
target/hexagon/translate.h                  |   6 +-
tests/qtest/migration/bootfile.h            |   6 +
tests/qtest/migration/hexagon/a-b-kernel.h  |  21 ++
tests/qtest/migration/hexagon/guest.h       |  47 +++
tests/qtest/migration/hexagon/state.h       |  29 ++
hw/hexagon/hex-subsys.c                     |  10 +-
hw/hexagon/hexagon_globalreg.c              |   4 +-
hw/hexagon/virt.c                           |  37 +++
target/hexagon/arch.c                       |   9 +-
target/hexagon/cpu_helper.c                 |   1 +
target/hexagon/genptr.c                     |   3 +-
target/hexagon/hexswi.c                     |   1 +
target/hexagon/op_helper.c                  |  46 ++-
target/hexagon/translate.c                  |  28 +-
tests/qtest/hexagon-config-test.c           |  26 ++
tests/qtest/hexagon-migration-test.c        | 312 ++++++++++++++++++++
tests/qtest/migration/bootfile.c            |   4 +
tests/qtest/migration/framework.c           |   8 +
tests/tcg/hexagon/brev.c                    |  25 ++
tests/tcg/hexagon/circ.c                    |  42 +++
tests/tcg/hexagon/dual_stores.c             |  34 +++
tests/tcg/hexagon/mem_noshuf.c              |  58 +++-
tests/tcg/hexagon/packet_user.c             |  38 +++
tests/tcg/hexagon/preg_alias.c              |  58 ++++
tests/tcg/hexagon/test_cond_branch.c        |  95 ++++++
tests/tcg/hexagon/usr.c                     |  33 +++
tests/functional/hexagon/meson.build        |   2 +
tests/functional/hexagon/test_arch_tests.py | 114 ++++++-
tests/functional/hexagon/test_linux.py      |  62 ++++
tests/functional/hexagon/test_systests.py   | 259 +++++++++++++++-
tests/qtest/meson.build                     |   5 +-
tests/qtest/migration/Makefile              |   2 +-
tests/qtest/migration/hexagon/Makefile      |  48 +++
tests/qtest/migration/hexagon/a-b-kernel.S  |  37 +++
tests/qtest/migration/hexagon/guest.S       | 124 ++++++++
tests/tcg/hexagon/meson.build               |   1 +
tests/tcg/hexagon/test_dotnew.S             |  34 ++-
tests/tcg/hexagon/test_packet.S             |  46 ++-
42 files changed, 1700 insertions(+), 42 deletions(-)
create mode 100644 tests/qtest/migration/hexagon/a-b-kernel.h
create mode 100644 tests/qtest/migration/hexagon/guest.h
create mode 100644 tests/qtest/migration/hexagon/state.h
create mode 100644 tests/qtest/hexagon-migration-test.c
create mode 100644 tests/tcg/hexagon/packet_user.c
create mode 100755 tests/functional/hexagon/test_linux.py
create mode 100644 tests/qtest/migration/hexagon/Makefile
create mode 100644 tests/qtest/migration/hexagon/a-b-kernel.S
create mode 100644 tests/qtest/migration/hexagon/guest.S
[PATCH-for-11.2 00/14] Hexagon: fix systests + migration
Posted by Brian Cain 3 days, 8 hours ago
The systests/arch tarballs were crafted while testing a downstream fork.

Enabling the omitted tests revealed a few remaining bugs in 11.2.  Add
those tests and the associated fixes, plus a couple of fixes from Marco's
recent series.

Brian Cain (12):
  target/hexagon: fix get_exe_mode assertion in hexagon_stop_thread
  target/hexagon: deliver floating point exceptions after the packet
  target/hexagon: report the faulting packet for stack limit exceptions
  target/hexagon: take exceptions for cache operations
  target/hexagon: raise decode failures at the faulting packet
  hw/hexagon: update the glob-reg vmstate ver
  tests/functional/hexagon: run the rest of the tests
  tests/tcg/hexagon: packet and COF corner cases
  hw/hexagon: honor configured RAM backends
  hw/hexagon: version the virt machine type
  tests/qtest/migration: add Hexagon to the migration framework
  tests/qtest: add a Hexagon migration state test

Marco Liebel (2):
  target/hexagon: read the old predicate value through C4
  target/hexagon: bound packet lookahead to the current page

 MAINTAINERS                                 |   2 +
 docs/system/hexagon/machines.rst            |   3 +
 target/hexagon/gen_tcg.h                    |  18 +-
 target/hexagon/helper.h                     |   4 +-
 target/hexagon/translate.h                  |   6 +-
 tests/qtest/migration/bootfile.h            |   6 +
 tests/qtest/migration/hexagon/a-b-kernel.h  |  21 ++
 tests/qtest/migration/hexagon/guest.h       |  47 +++
 tests/qtest/migration/hexagon/state.h       |  29 ++
 hw/hexagon/hex-subsys.c                     |  10 +-
 hw/hexagon/hexagon_globalreg.c              |   4 +-
 hw/hexagon/virt.c                           |  37 +++
 target/hexagon/arch.c                       |   9 +-
 target/hexagon/cpu_helper.c                 |   1 +
 target/hexagon/genptr.c                     |   3 +-
 target/hexagon/hexswi.c                     |   1 +
 target/hexagon/op_helper.c                  |  46 ++-
 target/hexagon/translate.c                  |  28 +-
 tests/qtest/hexagon-config-test.c           |  26 ++
 tests/qtest/hexagon-migration-test.c        | 312 ++++++++++++++++++++
 tests/qtest/migration/bootfile.c            |   4 +
 tests/qtest/migration/framework.c           |   8 +
 tests/tcg/hexagon/brev.c                    |  25 ++
 tests/tcg/hexagon/circ.c                    |  42 +++
 tests/tcg/hexagon/dual_stores.c             |  34 +++
 tests/tcg/hexagon/mem_noshuf.c              |  58 +++-
 tests/tcg/hexagon/packet_user.c             |  38 +++
 tests/tcg/hexagon/preg_alias.c              |  58 ++++
 tests/tcg/hexagon/test_cond_branch.c        |  95 ++++++
 tests/tcg/hexagon/usr.c                     |  33 +++
 tests/functional/hexagon/meson.build        |   2 +
 tests/functional/hexagon/test_arch_tests.py | 114 ++++++-
 tests/functional/hexagon/test_linux.py      |  62 ++++
 tests/functional/hexagon/test_systests.py   | 259 +++++++++++++++-
 tests/qtest/meson.build                     |   5 +-
 tests/qtest/migration/Makefile              |   2 +-
 tests/qtest/migration/hexagon/Makefile      |  48 +++
 tests/qtest/migration/hexagon/a-b-kernel.S  |  37 +++
 tests/qtest/migration/hexagon/guest.S       | 124 ++++++++
 tests/tcg/hexagon/meson.build               |   1 +
 tests/tcg/hexagon/test_dotnew.S             |  34 ++-
 tests/tcg/hexagon/test_packet.S             |  46 ++-
 42 files changed, 1700 insertions(+), 42 deletions(-)
 create mode 100644 tests/qtest/migration/hexagon/a-b-kernel.h
 create mode 100644 tests/qtest/migration/hexagon/guest.h
 create mode 100644 tests/qtest/migration/hexagon/state.h
 create mode 100644 tests/qtest/hexagon-migration-test.c
 create mode 100644 tests/tcg/hexagon/packet_user.c
 create mode 100755 tests/functional/hexagon/test_linux.py
 create mode 100644 tests/qtest/migration/hexagon/Makefile
 create mode 100644 tests/qtest/migration/hexagon/a-b-kernel.S
 create mode 100644 tests/qtest/migration/hexagon/guest.S

-- 
2.34.1

Re: [PATCH-for-11.2 00/14] Hexagon: fix systests + migration
Posted by Fabiano Rosas 2 days, 15 hours ago
Brian Cain <brian.cain@oss.qualcomm.com> writes:

> The systests/arch tarballs were crafted while testing a downstream fork.
>
> Enabling the omitted tests revealed a few remaining bugs in 11.2.  Add
> those tests and the associated fixes, plus a couple of fixes from Marco's
> recent series.
>
> Brian Cain (12):
>   target/hexagon: fix get_exe_mode assertion in hexagon_stop_thread
>   target/hexagon: deliver floating point exceptions after the packet
>   target/hexagon: report the faulting packet for stack limit exceptions
>   target/hexagon: take exceptions for cache operations
>   target/hexagon: raise decode failures at the faulting packet
>   hw/hexagon: update the glob-reg vmstate ver
>   tests/functional/hexagon: run the rest of the tests
>   tests/tcg/hexagon: packet and COF corner cases
>   hw/hexagon: honor configured RAM backends
>   hw/hexagon: version the virt machine type
>   tests/qtest/migration: add Hexagon to the migration framework
>   tests/qtest: add a Hexagon migration state test
>
> Marco Liebel (2):
>   target/hexagon: read the old predicate value through C4
>   target/hexagon: bound packet lookahead to the current page
>
>  MAINTAINERS                                 |   2 +
>  docs/system/hexagon/machines.rst            |   3 +
>  target/hexagon/gen_tcg.h                    |  18 +-
>  target/hexagon/helper.h                     |   4 +-
>  target/hexagon/translate.h                  |   6 +-
>  tests/qtest/migration/bootfile.h            |   6 +
>  tests/qtest/migration/hexagon/a-b-kernel.h  |  21 ++
>  tests/qtest/migration/hexagon/guest.h       |  47 +++
>  tests/qtest/migration/hexagon/state.h       |  29 ++
>  hw/hexagon/hex-subsys.c                     |  10 +-
>  hw/hexagon/hexagon_globalreg.c              |   4 +-
>  hw/hexagon/virt.c                           |  37 +++
>  target/hexagon/arch.c                       |   9 +-
>  target/hexagon/cpu_helper.c                 |   1 +
>  target/hexagon/genptr.c                     |   3 +-
>  target/hexagon/hexswi.c                     |   1 +
>  target/hexagon/op_helper.c                  |  46 ++-
>  target/hexagon/translate.c                  |  28 +-
>  tests/qtest/hexagon-config-test.c           |  26 ++
>  tests/qtest/hexagon-migration-test.c        | 312 ++++++++++++++++++++
>  tests/qtest/migration/bootfile.c            |   4 +
>  tests/qtest/migration/framework.c           |   8 +
>  tests/tcg/hexagon/brev.c                    |  25 ++
>  tests/tcg/hexagon/circ.c                    |  42 +++
>  tests/tcg/hexagon/dual_stores.c             |  34 +++
>  tests/tcg/hexagon/mem_noshuf.c              |  58 +++-
>  tests/tcg/hexagon/packet_user.c             |  38 +++
>  tests/tcg/hexagon/preg_alias.c              |  58 ++++
>  tests/tcg/hexagon/test_cond_branch.c        |  95 ++++++
>  tests/tcg/hexagon/usr.c                     |  33 +++
>  tests/functional/hexagon/meson.build        |   2 +
>  tests/functional/hexagon/test_arch_tests.py | 114 ++++++-
>  tests/functional/hexagon/test_linux.py      |  62 ++++
>  tests/functional/hexagon/test_systests.py   | 259 +++++++++++++++-
>  tests/qtest/meson.build                     |   5 +-
>  tests/qtest/migration/Makefile              |   2 +-
>  tests/qtest/migration/hexagon/Makefile      |  48 +++
>  tests/qtest/migration/hexagon/a-b-kernel.S  |  37 +++
>  tests/qtest/migration/hexagon/guest.S       | 124 ++++++++
>  tests/tcg/hexagon/meson.build               |   1 +
>  tests/tcg/hexagon/test_dotnew.S             |  34 ++-
>  tests/tcg/hexagon/test_packet.S             |  46 ++-
>  42 files changed, 1700 insertions(+), 42 deletions(-)
>  create mode 100644 tests/qtest/migration/hexagon/a-b-kernel.h
>  create mode 100644 tests/qtest/migration/hexagon/guest.h
>  create mode 100644 tests/qtest/migration/hexagon/state.h
>  create mode 100644 tests/qtest/hexagon-migration-test.c
>  create mode 100644 tests/tcg/hexagon/packet_user.c
>  create mode 100755 tests/functional/hexagon/test_linux.py
>  create mode 100644 tests/qtest/migration/hexagon/Makefile
>  create mode 100644 tests/qtest/migration/hexagon/a-b-kernel.S
>  create mode 100644 tests/qtest/migration/hexagon/guest.S

Let's leave the migration tests for the next cycle, please.
Re: [PATCH-for-11.2 00/14] Hexagon: fix systests + migration
Posted by Brian Cain 2 days, 9 hours ago
On 11/20/2026 6:40 AM, Fabiano Rosas wrote:
> Brian Cain <brian.cain@oss.qualcomm.com> writes:
>
>> The systests/arch tarballs were crafted while testing a downstream fork.
>>
>> Enabling the omitted tests revealed a few remaining bugs in 11.2.  Add
>> those tests and the associated fixes, plus a couple of fixes from Marco's
>> recent series.

>> ...

>> Let's leave the migration tests for the next cycle, please.

ok - omitted from v2.