All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v6 0/4] spapr: introduce a fixed IRQ number space and an IRQ controller backend
@ 2018-07-30 14:11 Cédric Le Goater
  2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 1/4] spapr: Add a pseries-3.1 machine type Cédric Le Goater
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Cédric Le Goater @ 2018-07-30 14:11 UTC (permalink / raw)
  To: David Gibson; +Cc: qemu-ppc, qemu-devel, Greg Kurz, Cédric Le Goater

Here is a proposal for a new IRQ number space layout using static
numbers and a bitmap allocator for the MSIs. The previous layout is
kept for compatibly in machines raising the 'legacy_irq_allocation' flag.

The patchset also introduces a sPAPR IRQ interface which offers the
possibility to provide different IRQ controller backend to the sPAPR
machine. This is preparing ground for the new XIVE controller.

The new XICS layout will only be activated when a new pseries-3.1
machine is introduced.

Thanks,

C.

Changes since v5 :

 - introduced a pseries-3.1 machine
 - fixed mask in the VIO reg_to_irq conversion routine

Changes since v4 :

 - assigned IRQ numbers to their default static values
 - improved the reg_to_irq conversion routine for the VIO devices

Changes since v3 :

 - introduced a reg_to_irq conversion routine for the VIO devices

Changes since v2 :

 - renamed 'xics_legacy' to 'legacy_irq_allocation'
 - introduced the sPAPR IRQ backend interface
 - increase the size of the IRQ number space for newer machines

Changes since v1 :

 - removed block allocation
 - spaced the IRQ offsets 
 - check for overlaps when allocating VIO irqs
 - removed 'Error *' arg from spapr_irq_msi_init() 

Cédric Le Goater (4):
  spapr: Add a pseries-3.1 machine type
  spapr: introduce a fixed IRQ number space
  spapr: introduce a IRQ controller backend to the machine
  spapr: increase the size of the IRQ number space

 include/hw/compat.h        |   3 +
 include/hw/ppc/spapr.h     |  16 +-
 include/hw/ppc/spapr_irq.h |  55 +++++++
 hw/ppc/spapr.c             | 226 +++++++---------------------
 hw/ppc/spapr_cpu_core.c    |   1 +
 hw/ppc/spapr_events.c      |  12 +-
 hw/ppc/spapr_irq.c         | 296 +++++++++++++++++++++++++++++++++++++
 hw/ppc/spapr_pci.c         |  29 +++-
 hw/ppc/spapr_vio.c         |  66 ++++++++-
 hw/ppc/Makefile.objs       |   2 +-
 10 files changed, 506 insertions(+), 200 deletions(-)
 create mode 100644 include/hw/ppc/spapr_irq.h
 create mode 100644 hw/ppc/spapr_irq.c

-- 
2.17.1

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

end of thread, other threads:[~2018-09-10  6:33 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-30 14:11 [Qemu-devel] [PATCH v6 0/4] spapr: introduce a fixed IRQ number space and an IRQ controller backend Cédric Le Goater
2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 1/4] spapr: Add a pseries-3.1 machine type Cédric Le Goater
2018-07-30 14:43   ` Greg Kurz
2018-08-01  4:27   ` David Gibson
2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 2/4] spapr: introduce a fixed IRQ number space Cédric Le Goater
2018-07-31 17:39   ` Greg Kurz
2018-08-01  6:38     ` David Gibson
2018-08-01  7:14       ` Cédric Le Goater
2018-08-01  9:13         ` Greg Kurz
2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 3/4] spapr: introduce a IRQ controller backend to the machine Cédric Le Goater
2018-08-02 13:54   ` Greg Kurz
2018-08-10  0:46   ` David Gibson
2018-08-10  7:47     ` Cédric Le Goater
2018-08-12  2:58       ` David Gibson
2018-08-15 21:16         ` Cédric Le Goater
2018-07-30 14:11 ` [Qemu-devel] [PATCH v6 4/4] spapr: increase the size of the IRQ number space Cédric Le Goater
2018-08-02 14:47   ` Greg Kurz
2018-08-02 15:59     ` Cédric Le Goater
2018-09-10  6:12   ` David Gibson
2018-09-10  6:33     ` Cédric Le Goater

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.