[PATCH v4 RESEND 0/2] Introduce SPAPR_IRQ_NR_IPIS and fix max-cpus

Harsh Prateek Bora posted 2 patches 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240212042852.293988-1-harshpb@linux.ibm.com
Maintainers: Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, David Gibson <david@gibson.dropbear.id.au>, Harsh Prateek Bora <harshpb@linux.ibm.com>
include/hw/ppc/spapr_irq.h | 14 +++++++++++++-
hw/ppc/spapr.c             |  9 +++------
hw/ppc/spapr_irq.c         |  6 ++++--
3 files changed, 20 insertions(+), 9 deletions(-)
[PATCH v4 RESEND 0/2] Introduce SPAPR_IRQ_NR_IPIS and fix max-cpus
Posted by Harsh Prateek Bora 2 weeks ago
On spapr, the max number of CPU IPIs are 4096 which is accounted during
spapr_irq_init but currently existing macro SPAPR_XIRQ_BASE is being
used to refer to that. Introducing SPAPR_IRQ_NR_IPIS to refer to the
range
of CPU IPIS which is being further used to initialize mc->max_cpus
during spapr_machine_class_init().

v4 resend: added "Reviewed-by" from Cedric (got missed in v4)
v4: added "Reported-by" and "Tested-by" from Kowshik
v3: addressed further review comments from Cedric
v2: addressed review comments from Cedric

Harsh Prateek Bora (2):
  ppc/spapr: Introduce SPAPR_IRQ_NR_IPIS to refer IRQ range for CPU
    IPIs.
  ppc/spapr: Initialize max_cpus limit to SPAPR_IRQ_NR_IPIS.

 include/hw/ppc/spapr_irq.h | 14 +++++++++++++-
 hw/ppc/spapr.c             |  9 +++------
 hw/ppc/spapr_irq.c         |  6 ++++--
 3 files changed, 20 insertions(+), 9 deletions(-)

-- 
2.39.3