Skip to content

Hexagon: Add real SoC-style machines

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. v3 Latest16 patches 6 repliesIn review
  2. v215 patches 3 repliesSuperseded
  3. v114 patches 21 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16Hexagon: add v85 CPU modeldocs/system/hexagon/emulation.rst linux-user/hexagon/elfload.c target/hexagon/cpu-qom.h +1 more+11 -10 replies
2/16linux-user/hexagon: report ISA HWCAP through v85linux-user/hexagon/elfload.c linux-user/hexagon/target_elf.h+8 -00 replies
3/16hw/hexagon: let a machine place its DDRhw/hexagon/hex-subsys.c include/hw/hexagon/hexagon.h+4 -21 reply
4/16hw/hexagon: introduce hex-board abstractionMAINTAINERS hw/hexagon/Kconfig hw/hexagon/hex-board.c +2 more+340 -21 reply
5/16hw/hexagon: convert virt board to hex-boardhw/hexagon/virt.c include/hw/hexagon/virt.h+26 -2891 reply
6/16hw/misc: add the QDSP6SS PLL, RCGMAINTAINERS hw/misc/Kconfig hw/misc/meson.build +2 more+231 -00 replies
7/16hw/hexagon: add the QCS6490 CDSP machineMAINTAINERS hw/hexagon/Kconfig hw/hexagon/machine_cfg_qcs6490_cdsp.h.inc +9 more+738 -10 replies
8/16hw/hexagon: add the SA8775P CDSP machinehw/hexagon/Kconfig hw/hexagon/machine_cfg_sa8775_cdsp0.h.inc hw/hexagon/meson.build +4 more+76 -10 replies
9/16hw/hexagon: add the SC8480XP NSP0 machinehw/hexagon/Kconfig hw/hexagon/machine_cfg_sc8480xp_nsp0.h.inc hw/hexagon/meson.build +5 more+155 -00 replies
10/16hw/hexagon: add the SA8797P NSP0 machinehw/hexagon/Kconfig hw/hexagon/machine_cfg_sa8797p_nsp0.h.inc hw/hexagon/meson.build +4 more+136 -00 replies
11/16hw/hexagon: add the SM8975 NSP machinehw/hexagon/Kconfig hw/hexagon/machine_cfg_sm8975_nsp.h.inc hw/hexagon/meson.build +5 more+186 -00 replies
12/16hw/hexagon: add v79NA1 machinehw/hexagon/hexagon_dsp.c hw/hexagon/machine_cfg_v79na_1.h.inc include/hw/hexagon/hexagon.h+57 -00 replies
13/16hw/hexagon: add subsystem-base propertyMAINTAINERS hw/hexagon/hexagon_dsp.c include/hw/hexagon/hexagon.h +2 more+155 -20 replies
14/16target/hexagon: fix the allocframe framekeytarget/hexagon/idef-parser/parser-helpers.c tests/tcg/hexagon/framekey.c tests/tcg/hexagon/meson.build+69 -10 replies
15/16tests/functional/hexagon: boot DSP firmwaretests/functional/hexagon/meson.build tests/functional/hexagon/test_qcom_dsp_firmware.py+99 -00 replies
16/16BCAIN do not merge - gitlab-ci: enable CI pipelines on forks.gitlab-ci.d/buildtest.yml .gitlab-ci.d/qemu-project.yml tests/docker/dockerfiles/debian-hexagon-cross.docker+62 -03 replies

Reviews trailers per patch

9 of 16 patches have a Reviewed-by or Acked-by.

PatchPierrick BouvierAnton JohanssonMarco Liebel
1/16R-b
2/16R-b R-b
3/16R-b
4/16R-b
5/16R-b
6/16
7/16R-b
8/16
9/16
10/16
11/16
12/16
13/16R-b
14/16R-b
15/16R-b
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/16] Hexagon: Add real SoC-style machines

Previously we added synthetic machines intended for compatibility with programs created by the Hexagon SDK. These simple configurations have a memory/irq map that doesn't match any real chips, and they are limited to an interrupt controller and a timer device.

Here we add DSP machines that reflect real-world devices and run some of the commercial firmware to test it. Note that for now the boot will not progress much beyond the initial kernel boot. Dependencies on other yet-to-be-modeled devices are preventing the firmware from coming up fully to a steady/idle state.

In v3:
- s/ASSET/ASSET_FIRMWARE/ in order to get the asset precache working as intended.

In v2:
- added range checks for RAM/FDT/initrd bounds, subsystem_base addr.
- fixed endianness bug in bootloader creation.
- Used full URLs for Asset()s in test_qcom_dsp_firmware.py, switched from a sha to a tag.
- Included the "report ISA HWCAP through v85" patch from another series for better context.

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

Brian Cain (16):
Hexagon: add v85 CPU model
linux-user/hexagon: report ISA HWCAP through v85 hw/hexagon: let a machine place its DDR hw/hexagon: introduce hex-board abstraction hw/hexagon: convert virt board to hex-board hw/misc: add the QDSP6SS PLL, RCG
hw/hexagon: add the QCS6490 CDSP machine hw/hexagon: add the SA8775P CDSP machine hw/hexagon: add the SC8480XP NSP0 machine hw/hexagon: add the SA8797P NSP0 machine hw/hexagon: add the SM8975 NSP machine
hw/hexagon: add v79NA1 machine
hw/hexagon: add subsystem-base property target/hexagon: fix the allocframe framekey tests/functional/hexagon: boot DSP firmware
BCAIN do not merge - gitlab-ci: enable CI pipelines on forks

 MAINTAINERS                                   |   6 +
 docs/system/hexagon/emulation.rst             |   2 +-
 include/hw/hexagon/hex-board.h                |  65 +++
 include/hw/hexagon/hexagon.h                  |  10 +
 include/hw/hexagon/qcom_dsp.h                 |  81 ++++
 include/hw/hexagon/virt.h                     |   6 -
 include/hw/misc/qcom-qdsp6ss-clk.h            |  15 +
 linux-user/hexagon/target_elf.h               |   2 +
 target/hexagon/cpu-qom.h                      |   4 +
 hw/hexagon/machine_cfg_qcs6490_cdsp.h.inc     |  65 +++
 hw/hexagon/machine_cfg_sa8775_cdsp0.h.inc     |   6 +-
 hw/hexagon/machine_cfg_sa8797p_nsp0.h.inc     |  56 +++
 hw/hexagon/machine_cfg_sc8480xp_nsp0.h.inc    |  52 +++
 hw/hexagon/machine_cfg_sm8975_nsp.h.inc       |  55 +++
 hw/hexagon/machine_cfg_v79na_1.h.inc          |  34 ++
 hw/hexagon/hex-board.c                        | 265 +++++++++++
 hw/hexagon/hex-subsys.c                       |   4 +-
 hw/hexagon/hexagon_dsp.c                      |  93 +++-
 hw/hexagon/qcom_dsp.c                         | 410 ++++++++++++++++++
 hw/hexagon/qcs6490_cdsp.c                     |  64 +++
 hw/hexagon/sa8775p_cdsp.c                     |  59 +++
 hw/hexagon/sa8797p_nsp0.c                     |  68 +++
 hw/hexagon/sc8480xp_nsp0.c                    |  90 ++++
 hw/hexagon/sm8975_nsp.c                       | 102 +++++
 hw/hexagon/virt.c                             | 309 ++-----------
 hw/misc/qcom-qdsp6ss-clk.c                    | 208 +++++++++
 linux-user/hexagon/elfload.c                  |  10 +
 target/hexagon/cpu.c                          |   2 +
 target/hexagon/idef-parser/parser-helpers.c   |   2 +-
 tests/qtest/hexagon-config-test.c             |  78 ++++
 tests/qtest/l2vic-test.c                      |  10 +
 tests/qtest/qcom-dsp-test.c                   | 113 +++++
 tests/qtest/qct-qtimer-test.c                 |  10 +
 tests/tcg/hexagon/framekey.c                  |  67 +++
 .../dockerfiles/debian-hexagon-cross.docker   |   2 +
 .gitlab-ci.d/buildtest.yml                    |  58 +++
 .gitlab-ci.d/qemu-project.yml                 |   2 +
 hw/hexagon/Kconfig                            |  48 +-
 hw/hexagon/meson.build                        |   7 +
 hw/misc/Kconfig                               |   3 +
 hw/misc/meson.build                           |   3 +
 tests/functional/hexagon/meson.build          |   2 +
 .../hexagon/test_qcom_dsp_firmware.py         |  97 +++++
 tests/qtest/meson.build                       |   4 +-
 tests/tcg/hexagon/meson.build                 |   1 +
 45 files changed, 2352 insertions(+), 298 deletions(-)
 create mode 100644 include/hw/hexagon/hex-board.h
 create mode 100644 include/hw/hexagon/qcom_dsp.h
 create mode 100644 include/hw/misc/qcom-qdsp6ss-clk.h
 create mode 100644 hw/hexagon/machine_cfg_qcs6490_cdsp.h.inc
 create mode 100644 hw/hexagon/machine_cfg_sa8797p_nsp0.h.inc
 create mode 100644 hw/hexagon/machine_cfg_sc8480xp_nsp0.h.inc
 create mode 100644 hw/hexagon/machine_cfg_sm8975_nsp.h.inc
 create mode 100644 hw/hexagon/machine_cfg_v79na_1.h.inc
 create mode 100644 hw/hexagon/hex-board.c
 create mode 100644 hw/hexagon/qcom_dsp.c
 create mode 100644 hw/hexagon/qcs6490_cdsp.c
 create mode 100644 hw/hexagon/sa8775p_cdsp.c
 create mode 100644 hw/hexagon/sa8797p_nsp0.c
 create mode 100644 hw/hexagon/sc8480xp_nsp0.c
 create mode 100644 hw/hexagon/sm8975_nsp.c
 create mode 100644 hw/misc/qcom-qdsp6ss-clk.c
 create mode 100644 tests/qtest/hexagon-config-test.c
 create mode 100644 tests/qtest/qcom-dsp-test.c
 create mode 100644 tests/tcg/hexagon/framekey.c
 create mode 100755 tests/functional/hexagon/test_qcom_dsp_firmware.py
Signature · 1 line
2.34.1