Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-18 Thread Philippe Mathieu-Daudé

On 10/6/24 08:20, Philippe Mathieu-Daudé wrote:


Philippe Mathieu-Daudé (26):
   hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
   hw/ppc: Avoid using Monitor in icp_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
   hw/ppc: Avoid using Monitor in ics_pic_print_info()
   hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
   hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
   hw/ppc: Avoid using Monitor in
 SpaprInterruptControllerClass::print_info()
   hw/ppc: Avoid using Monitor in spapr_irq_print_info()
   hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
   hw/ppc: Avoid using Monitor in pic_print_info()


Series queued.



Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-17 Thread Harsh Prateek Bora




On 6/10/24 11:50, Philippe Mathieu-Daudé wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.

For rationale see previous series from Daniel:
https://lore.kernel.org/qemu-devel/20211028155457.967291-1-berra...@redhat.com/

Regards,

Phil.



For the series:

Reviewed-by: Harsh Prateek Bora 


Philippe Mathieu-Daudé (26):
   hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
   hw/ppc: Avoid using Monitor in icp_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
   hw/ppc: Avoid using Monitor in ics_pic_print_info()
   hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
   hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
   hw/ppc: Avoid using Monitor in
 SpaprInterruptControllerClass::print_info()
   hw/ppc: Avoid using Monitor in spapr_irq_print_info()
   hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
   hw/ppc: Avoid using Monitor in pic_print_info()

  include/hw/pci-host/pnv_phb3.h |   2 +-
  include/hw/pci-host/pnv_phb4.h |   2 +-
  include/hw/ppc/pnv_chip.h  |   4 +-
  include/hw/ppc/pnv_psi.h   |   2 +-
  include/hw/ppc/pnv_xive.h  |   4 +-
  include/hw/ppc/spapr_irq.h |   4 +-
  include/hw/ppc/xics.h  |   4 +-
  include/hw/ppc/xive.h  |   4 +-
  include/hw/ppc/xive2_regs.h|   8 +--
  include/hw/ppc/xive_regs.h |   8 +--
  hw/intc/pnv_xive.c |  38 ++--
  hw/intc/pnv_xive2.c|  48 +++
  hw/intc/spapr_xive.c   |  41 ++---
  hw/intc/xics.c |  25 
  hw/intc/xics_spapr.c   |   7 +--
  hw/intc/xive.c | 108 -
  hw/intc/xive2.c|  87 +-
  hw/pci-host/pnv_phb3_msi.c |  21 +++
  hw/pci-host/pnv_phb4.c |  17 +++---
  hw/ppc/pnv.c   |  52 
  hw/ppc/pnv_psi.c   |   9 ++-
  hw/ppc/spapr.c |  11 +++-
  hw/ppc/spapr_irq.c |   4 +-
  23 files changed, 256 insertions(+), 254 deletions(-)





Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-13 Thread Cédric Le Goater




Thanks! As you suggested I'll wait for Nick to post the PPC
pull request before respining this series (and the series
depending on it).


I think this patch is the only conflicting one :
 
  https://lore.kernel.org/qemu-devel/20240424093048.180966-1-...@redhat.com/


Adding it to your series would surely help.

Thanks,

C.





Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-13 Thread Philippe Mathieu-Daudé

On 13/6/24 14:44, Cédric Le Goater wrote:


Philippe Mathieu-Daudé (26):
   hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
   hw/ppc: Avoid using Monitor in icp_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
   hw/ppc: Avoid using Monitor in ics_pic_print_info()
   hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
   hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
   hw/ppc: Avoid using Monitor in
 SpaprInterruptControllerClass::print_info()
   hw/ppc: Avoid using Monitor in spapr_irq_print_info()
   hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
   hw/ppc: Avoid using Monitor in pic_print_info()



Reviewed-by: Cédric Le Goater 


Thanks! As you suggested I'll wait for Nick to post the PPC
pull request before respining this series (and the series
depending on it).

Regards,

Phil.



Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-13 Thread Cédric Le Goater

On 6/10/24 8:20 AM, Philippe Mathieu-Daudé wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.

For rationale see previous series from Daniel:
https://lore.kernel.org/qemu-devel/20211028155457.967291-1-berra...@redhat.com/

Regards,

Phil.

Philippe Mathieu-Daudé (26):
   hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
   hw/ppc: Avoid using Monitor in icp_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
   hw/ppc: Avoid using Monitor in ics_pic_print_info()
   hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
   hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
   hw/ppc: Avoid using Monitor in
 SpaprInterruptControllerClass::print_info()
   hw/ppc: Avoid using Monitor in spapr_irq_print_info()
   hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
   hw/ppc: Avoid using Monitor in pic_print_info()

  include/hw/pci-host/pnv_phb3.h |   2 +-
  include/hw/pci-host/pnv_phb4.h |   2 +-
  include/hw/ppc/pnv_chip.h  |   4 +-
  include/hw/ppc/pnv_psi.h   |   2 +-
  include/hw/ppc/pnv_xive.h  |   4 +-
  include/hw/ppc/spapr_irq.h |   4 +-
  include/hw/ppc/xics.h  |   4 +-
  include/hw/ppc/xive.h  |   4 +-
  include/hw/ppc/xive2_regs.h|   8 +--
  include/hw/ppc/xive_regs.h |   8 +--
  hw/intc/pnv_xive.c |  38 ++--
  hw/intc/pnv_xive2.c|  48 +++
  hw/intc/spapr_xive.c   |  41 ++---
  hw/intc/xics.c |  25 
  hw/intc/xics_spapr.c   |   7 +--
  hw/intc/xive.c | 108 -
  hw/intc/xive2.c|  87 +-
  hw/pci-host/pnv_phb3_msi.c |  21 +++
  hw/pci-host/pnv_phb4.c |  17 +++---
  hw/ppc/pnv.c   |  52 
  hw/ppc/pnv_psi.c   |   9 ++-
  hw/ppc/spapr.c |  11 +++-
  hw/ppc/spapr_irq.c |   4 +-
  23 files changed, 256 insertions(+), 254 deletions(-)




Reviewed-by: Cédric Le Goater 

Thanks,

C.





Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-13 Thread Cédric Le Goater

On 6/13/24 11:48 AM, Philippe Mathieu-Daudé wrote:

On 10/6/24 10:19, Cédric Le Goater wrote:

On 6/10/24 8:20 AM, Philippe Mathieu-Daudé wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.


Did you do any testing ? POWER[8-10] CPUs on pseries and powernv machines
should be checked. A bit tedious I agree but not that long.


I ran these smoke tests comparing monitor output with baseline:

$ ./qemu-system-ppc64 -M powernv8 -S -monitor stdio
QEMU 9.0.50 monitor - type 'help' for more information
(qemu) info pic
CPU 0 XIRR= (0x0) PP=ff MFRR=ff
ICS 1000..1005 0x14c03d9c0
   1000 LSI ff 00
   1001 LSI ff 00
   1002 LSI ff 00
   1003 LSI ff 00
   1004 LSI ff 00
   1005 LSI ff 00
ICS    0.. 7ff 0x14c0e93e8
ICS    0..   7 0x14c0e9328
  0 LSI ff 00
  1 LSI ff 00
  2 LSI ff 00
  3 LSI ff 00
  4 LSI ff 00
  5 LSI ff 00
  6 LSI ff 00
  7 LSI ff 00
ICS    0.. 7ff 0x14c16ffe8
ICS    0..   7 0x14c16ff28
  0 LSI ff 00
  1 LSI ff 00
  2 LSI ff 00
  3 LSI ff 00
  4 LSI ff 00
  5 LSI ff 00
  6 LSI ff 00
  7 LSI ff 00
ICS    0.. 7ff 0x14c2177e8
ICS    0..   7 0x14c217728
  0 LSI ff 00
  1 LSI ff 00
  2 LSI ff 00
  3 LSI ff 00
  4 LSI ff 00
  5 LSI ff 00
  6 LSI ff 00
  7 LSI ff 00
Interrupt controller information not available for power8_v2.0-powerpc64-cpu.


This is only checking the older interrupt controller. Please try powernv10.


(qemu) q

$ ./qemu-system-ppc64 -M pseries -cpu power10 -S -monitor stdio
QEMU 9.0.50 monitor - type 'help' for more information
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-cfpc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-sbbc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-ibs=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-ccf-assist=on
(qemu) info pic
CPU 0 XIRR= (0x0) PP=ff MFRR=ff
ICS 1000..1fff 0x63b05b00
   1000 MSI ff 00
   1001 MSI ff 00
   1100 MSI ff 00
   1101 MSI ff 00
   1102 MSI ff 00
   1103 MSI ff 00
   1200 LSI ff 00
   1201 LSI ff 00
   1202 LSI ff 00
   1203 LSI ff 00
irqchip: emulated
Interrupt controller information not available for power10_v2.0-powerpc64-cpu.
(qemu) q



This is only checking the old interrupt controller. Please try :

  qemu-system-ppc64 -M pseries,ic-mode=xive -cpu power10 -S -monitor stdio

and we should be fine.

Thanks,

C.






Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-13 Thread Philippe Mathieu-Daudé

On 13/6/24 12:29, Cédric Le Goater wrote:

On 6/13/24 11:48 AM, Philippe Mathieu-Daudé wrote:

On 10/6/24 10:19, Cédric Le Goater wrote:

On 6/10/24 8:20 AM, Philippe Mathieu-Daudé wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.


Did you do any testing ? POWER[8-10] CPUs on pseries and powernv 
machines

should be checked. A bit tedious I agree but not that long.


I ran these smoke tests comparing monitor output with baseline:

$ ./qemu-system-ppc64 -M powernv8 -S -monitor stdio
QEMU 9.0.50 monitor - type 'help' for more information
(qemu) info pic
CPU 0 XIRR= (0x0) PP=ff MFRR=ff
ICS 1000..1005 0x14c03d9c0
   1000 LSI ff 00
   1001 LSI ff 00
   1002 LSI ff 00
   1003 LSI ff 00
   1004 LSI ff 00
   1005 LSI ff 00
ICS    0.. 7ff 0x14c0e93e8
ICS    0..   7 0x14c0e9328
  0 LSI ff 00
  1 LSI ff 00
  2 LSI ff 00
  3 LSI ff 00
  4 LSI ff 00
  5 LSI ff 00
  6 LSI ff 00
  7 LSI ff 00
ICS    0.. 7ff 0x14c16ffe8
ICS    0..   7 0x14c16ff28
  0 LSI ff 00
  1 LSI ff 00
  2 LSI ff 00
  3 LSI ff 00
  4 LSI ff 00
  5 LSI ff 00
  6 LSI ff 00
  7 LSI ff 00
ICS    0.. 7ff 0x14c2177e8
ICS    0..   7 0x14c217728
  0 LSI ff 00
  1 LSI ff 00
  2 LSI ff 00
  3 LSI ff 00
  4 LSI ff 00
  5 LSI ff 00
  6 LSI ff 00
  7 LSI ff 00
Interrupt controller information not available for 
power8_v2.0-powerpc64-cpu.


This is only checking the older interrupt controller. Please try powernv10.


(qemu) q

$ ./qemu-system-ppc64 -M pseries -cpu power10 -S -monitor stdio
QEMU 9.0.50 monitor - type 'help' for more information
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-cfpc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-sbbc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-ibs=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-ccf-assist=on

(qemu) info pic
CPU 0 XIRR= (0x0) PP=ff MFRR=ff
ICS 1000..1fff 0x63b05b00
   1000 MSI ff 00
   1001 MSI ff 00
   1100 MSI ff 00
   1101 MSI ff 00
   1102 MSI ff 00
   1103 MSI ff 00
   1200 LSI ff 00
   1201 LSI ff 00
   1202 LSI ff 00
   1203 LSI ff 00
irqchip: emulated
Interrupt controller information not available for 
power10_v2.0-powerpc64-cpu.

(qemu) q



This is only checking the old interrupt controller. Please try :

   qemu-system-ppc64 -M pseries,ic-mode=xive -cpu power10 -S -monitor stdio

and we should be fine.


No change in output:

$ ./qemu-system-ppc64 -M pseries,ic-mode=xive -cpu power10 -S -monitor 
stdio

QEMU 9.0.50 monitor - type 'help' for more information
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-cfpc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-sbbc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-ibs=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-ccf-assist=on

(qemu) info pic
CPU[]:   QW   NSR CPPR IPB LSMFB ACK# INC AGE PIPR  W2
CPU[]: USER00   00  0000   00  00  00   00  
CPU[]:   OS00   00  00ff   ff  00  ff   ff  8400
CPU[]: POOL00   00  0000   00  00  00   00  
CPU[]: PHYS00   00  0000   00  00  00   ff  
  LISN PQEISN CPU/PRIO EQ
   MSI -Q  M 
  1000 MSI -Q  M 
  1001 MSI -Q  M 
  1100 MSI -Q  M 
  1101 MSI -Q  M 
  1102 MSI -Q  M 
  1103 MSI -Q  M 
  1200 LSI -Q  M 
  1201 LSI -Q  M 
  1202 LSI -Q  M 
  1203 LSI -Q  M 
irqchip: emulated
Interrupt controller information not available for 
power10_v2.0-powerpc64-cpu.

(qemu)




Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-13 Thread Philippe Mathieu-Daudé

On 10/6/24 10:19, Cédric Le Goater wrote:

On 6/10/24 8:20 AM, Philippe Mathieu-Daudé wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.


Did you do any testing ? POWER[8-10] CPUs on pseries and powernv machines
should be checked. A bit tedious I agree but not that long.


I ran these smoke tests comparing monitor output with baseline:

$ ./qemu-system-ppc64 -M powernv8 -S -monitor stdio
QEMU 9.0.50 monitor - type 'help' for more information
(qemu) info pic
CPU 0 XIRR= (0x0) PP=ff MFRR=ff
ICS 1000..1005 0x14c03d9c0
  1000 LSI ff 00
  1001 LSI ff 00
  1002 LSI ff 00
  1003 LSI ff 00
  1004 LSI ff 00
  1005 LSI ff 00
ICS0.. 7ff 0x14c0e93e8
ICS0..   7 0x14c0e9328
 0 LSI ff 00
 1 LSI ff 00
 2 LSI ff 00
 3 LSI ff 00
 4 LSI ff 00
 5 LSI ff 00
 6 LSI ff 00
 7 LSI ff 00
ICS0.. 7ff 0x14c16ffe8
ICS0..   7 0x14c16ff28
 0 LSI ff 00
 1 LSI ff 00
 2 LSI ff 00
 3 LSI ff 00
 4 LSI ff 00
 5 LSI ff 00
 6 LSI ff 00
 7 LSI ff 00
ICS0.. 7ff 0x14c2177e8
ICS0..   7 0x14c217728
 0 LSI ff 00
 1 LSI ff 00
 2 LSI ff 00
 3 LSI ff 00
 4 LSI ff 00
 5 LSI ff 00
 6 LSI ff 00
 7 LSI ff 00
Interrupt controller information not available for 
power8_v2.0-powerpc64-cpu.

(qemu) q

$ ./qemu-system-ppc64 -M pseries -cpu power10 -S -monitor stdio
QEMU 9.0.50 monitor - type 'help' for more information
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-cfpc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-sbbc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-ibs=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, 
cap-ccf-assist=on

(qemu) info pic
CPU 0 XIRR= (0x0) PP=ff MFRR=ff
ICS 1000..1fff 0x63b05b00
  1000 MSI ff 00
  1001 MSI ff 00
  1100 MSI ff 00
  1101 MSI ff 00
  1102 MSI ff 00
  1103 MSI ff 00
  1200 LSI ff 00
  1201 LSI ff 00
  1202 LSI ff 00
  1203 LSI ff 00
irqchip: emulated
Interrupt controller information not available for 
power10_v2.0-powerpc64-cpu.

(qemu) q




Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-11 Thread Manos Pitsidianakis

On Mon, 10 Jun 2024 09:20, Philippe Mathieu-Daudé  wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.

For rationale see previous series from Daniel:
https://lore.kernel.org/qemu-devel/20211028155457.967291-1-berra...@redhat.com/

Regards,

Phil.

Philippe Mathieu-Daudé (26):
 hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
 hw/ppc: Avoid using Monitor in icp_pic_print_info()
 hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
 hw/ppc: Avoid using Monitor in ics_pic_print_info()
 hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
 hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
 hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
 hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
 hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
 hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
 hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
 hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
 hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
 hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
 hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
 hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
 hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
 hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
 hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
 hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
 hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
 hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
 hw/ppc: Avoid using Monitor in
   SpaprInterruptControllerClass::print_info()
 hw/ppc: Avoid using Monitor in spapr_irq_print_info()
 hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
 hw/ppc: Avoid using Monitor in pic_print_info()

include/hw/pci-host/pnv_phb3.h |   2 +-
include/hw/pci-host/pnv_phb4.h |   2 +-
include/hw/ppc/pnv_chip.h  |   4 +-
include/hw/ppc/pnv_psi.h   |   2 +-
include/hw/ppc/pnv_xive.h  |   4 +-
include/hw/ppc/spapr_irq.h |   4 +-
include/hw/ppc/xics.h  |   4 +-
include/hw/ppc/xive.h  |   4 +-
include/hw/ppc/xive2_regs.h|   8 +--
include/hw/ppc/xive_regs.h |   8 +--
hw/intc/pnv_xive.c |  38 ++--
hw/intc/pnv_xive2.c|  48 +++
hw/intc/spapr_xive.c   |  41 ++---
hw/intc/xics.c |  25 
hw/intc/xics_spapr.c   |   7 +--
hw/intc/xive.c | 108 -
hw/intc/xive2.c|  87 +-
hw/pci-host/pnv_phb3_msi.c |  21 +++
hw/pci-host/pnv_phb4.c |  17 +++---
hw/ppc/pnv.c   |  52 
hw/ppc/pnv_psi.c   |   9 ++-
hw/ppc/spapr.c |  11 +++-
hw/ppc/spapr_irq.c |   4 +-
23 files changed, 256 insertions(+), 254 deletions(-)

--
2.41.0


For the series:

Reviewed-by: Manos Pitsidianakis 



Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-10 Thread Cédric Le Goater

On 6/10/24 8:20 AM, Philippe Mathieu-Daudé wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.


Did you do any testing ? POWER[8-10] CPUs on pseries and powernv machines
should be checked. A bit tedious I agree but not that long.

Thanks,

C.




For rationale see previous series from Daniel:
https://lore.kernel.org/qemu-devel/20211028155457.967291-1-berra...@redhat.com/

Regards,

Phil.

Philippe Mathieu-Daudé (26):
   hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
   hw/ppc: Avoid using Monitor in icp_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
   hw/ppc: Avoid using Monitor in ics_pic_print_info()
   hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
   hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
   hw/ppc: Avoid using Monitor in
 SpaprInterruptControllerClass::print_info()
   hw/ppc: Avoid using Monitor in spapr_irq_print_info()
   hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
   hw/ppc: Avoid using Monitor in pic_print_info()

  include/hw/pci-host/pnv_phb3.h |   2 +-
  include/hw/pci-host/pnv_phb4.h |   2 +-
  include/hw/ppc/pnv_chip.h  |   4 +-
  include/hw/ppc/pnv_psi.h   |   2 +-
  include/hw/ppc/pnv_xive.h  |   4 +-
  include/hw/ppc/spapr_irq.h |   4 +-
  include/hw/ppc/xics.h  |   4 +-
  include/hw/ppc/xive.h  |   4 +-
  include/hw/ppc/xive2_regs.h|   8 +--
  include/hw/ppc/xive_regs.h |   8 +--
  hw/intc/pnv_xive.c |  38 ++--
  hw/intc/pnv_xive2.c|  48 +++
  hw/intc/spapr_xive.c   |  41 ++---
  hw/intc/xics.c |  25 
  hw/intc/xics_spapr.c   |   7 +--
  hw/intc/xive.c | 108 -
  hw/intc/xive2.c|  87 +-
  hw/pci-host/pnv_phb3_msi.c |  21 +++
  hw/pci-host/pnv_phb4.c |  17 +++---
  hw/ppc/pnv.c   |  52 
  hw/ppc/pnv_psi.c   |   9 ++-
  hw/ppc/spapr.c |  11 +++-
  hw/ppc/spapr_irq.c |   4 +-
  23 files changed, 256 insertions(+), 254 deletions(-)






Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-10 Thread Cédric Le Goater

On 6/10/24 8:20 AM, Philippe Mathieu-Daudé wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.

For rationale see previous series from Daniel:
https://lore.kernel.org/qemu-devel/20211028155457.967291-1-berra...@redhat.com/


This looks OK to me but I think there are patches in the ppc queue
that will conflict. I would wait for Nick to send a PR first and
then rebase.

Thanks,

C.





Regards,

Phil.

Philippe Mathieu-Daudé (26):
   hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
   hw/ppc: Avoid using Monitor in icp_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
   hw/ppc: Avoid using Monitor in ics_pic_print_info()
   hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
   hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
   hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
   hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
   hw/ppc: Avoid using Monitor in
 SpaprInterruptControllerClass::print_info()
   hw/ppc: Avoid using Monitor in spapr_irq_print_info()
   hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
   hw/ppc: Avoid using Monitor in pic_print_info()

  include/hw/pci-host/pnv_phb3.h |   2 +-
  include/hw/pci-host/pnv_phb4.h |   2 +-
  include/hw/ppc/pnv_chip.h  |   4 +-
  include/hw/ppc/pnv_psi.h   |   2 +-
  include/hw/ppc/pnv_xive.h  |   4 +-
  include/hw/ppc/spapr_irq.h |   4 +-
  include/hw/ppc/xics.h  |   4 +-
  include/hw/ppc/xive.h  |   4 +-
  include/hw/ppc/xive2_regs.h|   8 +--
  include/hw/ppc/xive_regs.h |   8 +--
  hw/intc/pnv_xive.c |  38 ++--
  hw/intc/pnv_xive2.c|  48 +++
  hw/intc/spapr_xive.c   |  41 ++---
  hw/intc/xics.c |  25 
  hw/intc/xics_spapr.c   |   7 +--
  hw/intc/xive.c | 108 -
  hw/intc/xive2.c|  87 +-
  hw/pci-host/pnv_phb3_msi.c |  21 +++
  hw/pci-host/pnv_phb4.c |  17 +++---
  hw/ppc/pnv.c   |  52 
  hw/ppc/pnv_psi.c   |   9 ++-
  hw/ppc/spapr.c |  11 +++-
  hw/ppc/spapr_irq.c |   4 +-
  23 files changed, 256 insertions(+), 254 deletions(-)






Re: [PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-10 Thread Philippe Mathieu-Daudé

On 10/6/24 08:20, Philippe Mathieu-Daudé wrote:

Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.

For rationale see previous series from Daniel:
https://lore.kernel.org/qemu-devel/20211028155457.967291-1-berra...@redhat.com/


Or more specifically commit f2de406f29 ("docs/devel: document
expectations for QAPI data modelling for QMP").



Regards,

Phil.





[PATCH 00/26] hw/ppc: Prefer HumanReadableText over Monitor

2024-06-10 Thread Philippe Mathieu-Daudé
Hi,

This series remove uses of Monitor in hw/ppc/,
replacing by the more generic HumanReadableText.
Care is taken to keep the commit bisectables by
updating functions one by one, also easing review.

For rationale see previous series from Daniel:
https://lore.kernel.org/qemu-devel/20211028155457.967291-1-berra...@redhat.com/

Regards,

Phil.

Philippe Mathieu-Daudé (26):
  hw/ppc: Avoid using Monitor in pnv_phb3_msi_pic_print_info()
  hw/ppc: Avoid using Monitor in icp_pic_print_info()
  hw/ppc: Avoid using Monitor in xive_tctx_pic_print_info()
  hw/ppc: Avoid using Monitor in ics_pic_print_info()
  hw/ppc: Avoid using Monitor in PnvChipClass::intc_print_info()
  hw/ppc: Avoid using Monitor in xive_end_queue_pic_print_info()
  hw/ppc: Avoid using Monitor in spapr_xive_end_pic_print_info()
  hw/ppc: Avoid using Monitor in spapr_xive_pic_print_info()
  hw/ppc: Avoid using Monitor in xive_source_pic_print_info()
  hw/ppc: Avoid using Monitor in pnv_phb4_pic_print_info()
  hw/ppc: Avoid using Monitor in xive_eas_pic_print_info()
  hw/ppc: Avoid using Monitor in xive_end_pic_print_info()
  hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info()
  hw/ppc: Avoid using Monitor in xive_nvt_pic_print_info()
  hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info()
  hw/ppc: Avoid using Monitor in pnv_psi_pic_print_info()
  hw/ppc: Avoid using Monitor in xive2_eas_pic_print_info()
  hw/ppc: Avoid using Monitor in xive2_end_eas_pic_print_info()
  hw/ppc: Avoid using Monitor in xive2_end_queue_pic_print_info()
  hw/ppc: Avoid using Monitor in xive2_end_pic_print_info()
  hw/ppc: Avoid using Monitor in xive2_nvp_pic_print_info()
  hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info()
  hw/ppc: Avoid using Monitor in
SpaprInterruptControllerClass::print_info()
  hw/ppc: Avoid using Monitor in spapr_irq_print_info()
  hw/ppc: Avoid using Monitor in pnv_chip_power9_pic_print_info_child()
  hw/ppc: Avoid using Monitor in pic_print_info()

 include/hw/pci-host/pnv_phb3.h |   2 +-
 include/hw/pci-host/pnv_phb4.h |   2 +-
 include/hw/ppc/pnv_chip.h  |   4 +-
 include/hw/ppc/pnv_psi.h   |   2 +-
 include/hw/ppc/pnv_xive.h  |   4 +-
 include/hw/ppc/spapr_irq.h |   4 +-
 include/hw/ppc/xics.h  |   4 +-
 include/hw/ppc/xive.h  |   4 +-
 include/hw/ppc/xive2_regs.h|   8 +--
 include/hw/ppc/xive_regs.h |   8 +--
 hw/intc/pnv_xive.c |  38 ++--
 hw/intc/pnv_xive2.c|  48 +++
 hw/intc/spapr_xive.c   |  41 ++---
 hw/intc/xics.c |  25 
 hw/intc/xics_spapr.c   |   7 +--
 hw/intc/xive.c | 108 -
 hw/intc/xive2.c|  87 +-
 hw/pci-host/pnv_phb3_msi.c |  21 +++
 hw/pci-host/pnv_phb4.c |  17 +++---
 hw/ppc/pnv.c   |  52 
 hw/ppc/pnv_psi.c   |   9 ++-
 hw/ppc/spapr.c |  11 +++-
 hw/ppc/spapr_irq.c |   4 +-
 23 files changed, 256 insertions(+), 254 deletions(-)

-- 
2.41.0