All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add irq number property for loongarch pch interrupt controller
@ 2022-12-24  2:02 Tianrui Zhao
  2022-12-24  2:02 ` [PATCH v3 1/2] hw/intc/loongarch_pch_msi: add irq number property Tianrui Zhao
  2022-12-24  2:02 ` [PATCH v3 2/2] hw/intc/loongarch_pch_pic: " Tianrui Zhao
  0 siblings, 2 replies; 3+ messages in thread
From: Tianrui Zhao @ 2022-12-24  2:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: richard.henderson, gaosong, maobibo, philmd

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-24  2:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-24  2:02 [PATCH v3 0/2] Add irq number property for loongarch pch interrupt controller Tianrui Zhao
2022-12-24  2:02 ` [PATCH v3 1/2] hw/intc/loongarch_pch_msi: add irq number property Tianrui Zhao
2022-12-24  2:02 ` [PATCH v3 2/2] hw/intc/loongarch_pch_pic: " Tianrui Zhao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.