[MIPS P8700 v6 0/7] Add MIPS P8700 support to generic platform

Chao-ying Fu icebergfu at gmail.com
Thu May 22 14:21:33 PDT 2025


---
Changes in v6:
  Drop the dts file.
  Drop the entry function.
  Add a new platform pma_set function.
  Move PMA code to MIPS p8700.c.

Changes in v5:
  Drop the amo emulation code.
  Change to use macros to insert instructions in p8700.c.
  Add 3 new patches to recognize mmio regions and set up cacheability based on
  mmio regions.

Changes in v4:
  Remove code that overrides nascent_init.
  Update p8700.c to work with the latest override.
  Use csr_set for mipsconfig6 in p8700.c.
  Add riscv,cbom-block-size to the dts file.

Changes in v3:
  Remove stw.s, stw.h, and extra scratch space.
  Use nascent_init to initialze MIPS CSRs.
  Add amo emulation via illegal instruction exceptions.
  Change to use AMO and RDTIME illegal instruction exceptions.
  Revise the dts file.
  Remove code that jumps to mips_cps_core_entry.

Changes in v2:
  Break up one patch to 11 patches.

Changes in v1:
  Original code.
---

Chao-ying Fu (5):
  platform: generic: mips: add P8700
  platform: generic: mips: add header files
  platform: generic: mips: add the platform file
  platform: generic: mips: add objects.mk
  lib: sbi_platform: Add the platform pma_set function to set up
    cacheability

Vladimir Kondratiev (2):
  devices to use MMIO memory
  Convey MMIO flag as specified by SBI_DOMAIN_MEMREGION_MMIO

 include/sbi/riscv_asm.h                 |   2 +
 include/sbi/sbi_platform.h              |  19 ++
 lib/sbi/riscv_asm.c                     |   3 +
 lib/sbi/sbi_hart.c                      |  13 +
 lib/utils/fdt/fdt_fixup.c               |   2 +-
 platform/generic/Kconfig                |   4 +
 platform/generic/configs/defconfig      |   1 +
 platform/generic/include/mips/board.h   |  33 +++
 platform/generic/include/mips/mips-cm.h |  88 ++++++
 platform/generic/include/mips/p8700.h   | 113 ++++++++
 platform/generic/mips/objects.mk        |   6 +
 platform/generic/mips/p8700.c           | 361 ++++++++++++++++++++++++
 12 files changed, 644 insertions(+), 1 deletion(-)
 create mode 100644 platform/generic/include/mips/board.h
 create mode 100644 platform/generic/include/mips/mips-cm.h
 create mode 100644 platform/generic/include/mips/p8700.h
 create mode 100644 platform/generic/mips/objects.mk
 create mode 100644 platform/generic/mips/p8700.c

-- 
2.47.1




More information about the opensbi mailing list