[PATCH v2 0/4] hw/loongarch/virt: Set iocsr address space per-board rather percpu

Bibo Mao posted 4 patches 1 year, 11 months ago
Failed in applying to current master (apply log)
Maintainers: Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_extioi.c         | 230 ++++++++++++++++++-----------
hw/intc/loongarch_ipi.c            | 191 +++++++++++++++---------
hw/loongarch/virt.c                |  94 ++++++++----
include/hw/intc/loongarch_extioi.h |  12 +-
include/hw/intc/loongarch_ipi.h    |   3 +-
include/hw/loongarch/virt.h        |   3 +
target/loongarch/cpu.c             |  48 ------
target/loongarch/cpu.h             |   4 +-
target/loongarch/iocsr_helper.c    |  16 +-
9 files changed, 358 insertions(+), 243 deletions(-)
[PATCH v2 0/4] hw/loongarch/virt: Set iocsr address space per-board rather percpu
Posted by Bibo Mao 1 year, 11 months ago
On LoongArch system, there is iocsr address space simliar system io
address space on x86. And each cpu has its separate iocsr address space now,
with this patch, iocsr address space is changed with per-board, and
MemTxAttrs.requester_id is used to differentiate cpu cores.

---
Changes in v2:
  1. Add num-cpu property for extioi interrupt controller
  2. Add post_load support for extioi vmstate to calculate sw_ipmap/sw_coremap info
---
Bibo Mao (4):
  hw/intc/loongarch_ipi: Use MemTxAttrs interface for ipi ops
  hw/loongarch/virt: Set iocsr address space per-board rather than
    percpu
  hw/intc/loongarch_extioi: Add dynamic cpu number support
  hw/intc/loongarch_extioi: Add vmstate post_load support

 hw/intc/loongarch_extioi.c         | 230 ++++++++++++++++++-----------
 hw/intc/loongarch_ipi.c            | 191 +++++++++++++++---------
 hw/loongarch/virt.c                |  94 ++++++++----
 include/hw/intc/loongarch_extioi.h |  12 +-
 include/hw/intc/loongarch_ipi.h    |   3 +-
 include/hw/loongarch/virt.h        |   3 +
 target/loongarch/cpu.c             |  48 ------
 target/loongarch/cpu.h             |   4 +-
 target/loongarch/iocsr_helper.c    |  16 +-
 9 files changed, 358 insertions(+), 243 deletions(-)


base-commit: 039afc5ef7367fbc8fb475580c291c2655e856cb
-- 
2.39.3
Re: [PATCH v2 0/4] hw/loongarch/virt: Set iocsr address space per-board rather percpu
Posted by gaosong 1 year, 10 months ago
在 2023/12/15 下午6:03, Bibo Mao 写道:
> On LoongArch system, there is iocsr address space simliar system io
> address space on x86. And each cpu has its separate iocsr address space now,
> with this patch, iocsr address space is changed with per-board, and
> MemTxAttrs.requester_id is used to differentiate cpu cores.
>
> ---
> Changes in v2:
>    1. Add num-cpu property for extioi interrupt controller
>    2. Add post_load support for extioi vmstate to calculate sw_ipmap/sw_coremap info
> ---
> Bibo Mao (4):
>    hw/intc/loongarch_ipi: Use MemTxAttrs interface for ipi ops
>    hw/loongarch/virt: Set iocsr address space per-board rather than
>      percpu
>    hw/intc/loongarch_extioi: Add dynamic cpu number support
>    hw/intc/loongarch_extioi: Add vmstate post_load support
>
>   hw/intc/loongarch_extioi.c         | 230 ++++++++++++++++++-----------
>   hw/intc/loongarch_ipi.c            | 191 +++++++++++++++---------
>   hw/loongarch/virt.c                |  94 ++++++++----
>   include/hw/intc/loongarch_extioi.h |  12 +-
>   include/hw/intc/loongarch_ipi.h    |   3 +-
>   include/hw/loongarch/virt.h        |   3 +
>   target/loongarch/cpu.c             |  48 ------
>   target/loongarch/cpu.h             |   4 +-
>   target/loongarch/iocsr_helper.c    |  16 +-
>   9 files changed, 358 insertions(+), 243 deletions(-)
>
Applied to loongarch-next.

Thanks.
Song Gao