All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@kaod.org>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
	"Greg Kurz" <groug@kaod.org>, "Cédric Le Goater" <clg@kaod.org>
Subject: [Qemu-devel] [PATCH v3 0/3] spapr: introduce a fixed IRQ number space and an IRQ controller backend
Date: Tue, 19 Jun 2018 16:07:26 +0200	[thread overview]
Message-ID: <20180619140729.21949-1-clg@kaod.org> (raw)

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.

Thanks,

C.

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 (3):
  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/ppc/spapr.h     |  14 +--
 include/hw/ppc/spapr_irq.h |  55 +++++++++
 hw/ppc/spapr.c             | 201 +++++-------------------------
 hw/ppc/spapr_events.c      |  12 +-
 hw/ppc/spapr_irq.c         | 297 +++++++++++++++++++++++++++++++++++++++++++++
 hw/ppc/spapr_pci.c         |  29 ++++-
 hw/ppc/spapr_vio.c         |  19 ++-
 hw/ppc/Makefile.objs       |   2 +-
 8 files changed, 438 insertions(+), 191 deletions(-)
 create mode 100644 include/hw/ppc/spapr_irq.h
 create mode 100644 hw/ppc/spapr_irq.c

-- 
2.13.6

             reply	other threads:[~2018-06-19 14:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-19 14:07 Cédric Le Goater [this message]
2018-06-19 14:07 ` [Qemu-devel] [PATCH v3 1/3] spapr: introduce a fixed IRQ number space Cédric Le Goater
2018-07-02 10:03   ` Cédric Le Goater
2018-07-02 11:11     ` Cédric Le Goater
2018-07-03 15:19       ` Cédric Le Goater
2018-07-04  8:13         ` Greg Kurz
2018-07-06  5:44         ` David Gibson
2018-07-06  6:29           ` Cédric Le Goater
2018-07-06  7:40           ` Cédric Le Goater
2018-07-06  7:46             ` [Qemu-devel] [Qemu-ppc] " Cédric Le Goater
2018-06-19 14:07 ` [Qemu-devel] [PATCH v3 2/3] spapr: introduce a IRQ controller backend to the machine Cédric Le Goater
2018-06-19 14:07 ` [Qemu-devel] [PATCH v3 3/3] spapr: increase the size of the IRQ number space Cédric Le Goater
2018-06-19 15:16 ` [Qemu-devel] [PATCH v3 3/3 bonus] spapr: remove the XICS header from the machine and device models Cédric Le Goater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180619140729.21949-1-clg@kaod.org \
    --to=clg@kaod.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=groug@kaod.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.