[PATCH v3 0/2] Add irq number property for loongarch pch interrupt controller

Tianrui Zhao posted 2 patches 1 year, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221224020216.4142799-1-zhaotianrui@loongson.cn
Maintainers: Xiaojuan Yang <yangxiaojuan@loongson.cn>, Song Gao <gaosong@loongson.cn>
There is a newer version of this series
hw/intc/loongarch_pch_msi.c         | 33 ++++++++++++++++++++++++++---
hw/intc/loongarch_pch_pic.c         | 29 +++++++++++++++++++++----
hw/loongarch/virt.c                 | 19 +++++++++++------
include/hw/intc/loongarch_pch_msi.h |  3 ++-
include/hw/intc/loongarch_pch_pic.h |  5 ++---
include/hw/pci-host/ls7a.h          |  1 -
6 files changed, 71 insertions(+), 19 deletions(-)
[PATCH v3 0/2] Add irq number property for loongarch pch interrupt controller
Posted by Tianrui Zhao 1 year, 4 months ago
This series add irq number property for loongarch pch_msi
and pch_pic interrupt controller.

Changes for v3: 
(1) Fix the valid range of msi_irq_num, it will trigger error_setg() when
irq_num is invalid.
(2) Using g_new() to alloc msi_irqs when pch_msi realize.
(3) Using EXTIOI_IRQS macro to replace the 256 irq number.

Changes for v2: 
(1) Free pch_msi_irq array in pch_msi_unrealize().

Changes for v1: 
(1) Add irq number property for loongarch_pch_msi.
(2) Add irq number property for loongarch_pch_pic.

Tianrui Zhao (2):
  hw/intc/loongarch_pch_msi: add irq number property
  hw/intc/loongarch_pch_pic: add irq number property

 hw/intc/loongarch_pch_msi.c         | 33 ++++++++++++++++++++++++++---
 hw/intc/loongarch_pch_pic.c         | 29 +++++++++++++++++++++----
 hw/loongarch/virt.c                 | 19 +++++++++++------
 include/hw/intc/loongarch_pch_msi.h |  3 ++-
 include/hw/intc/loongarch_pch_pic.h |  5 ++---
 include/hw/pci-host/ls7a.h          |  1 -
 6 files changed, 71 insertions(+), 19 deletions(-)

-- 
2.31.1