ppc-for-5.0 queue 20200407
The following changes since commit 53ef8a92eb04ee19640f5aad3bff36cd4a36c250:
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200406' into staging (2020-04-06 12:36:45 +0100)
are available in the Git repository at:
git://github.com/dgibson/qemu.git tags/ppc-for-5.0-20200407
for you to fetch changes up to 25f3170b06544e4de620336da5b2ea3b392d66bc:
ppc/pnv: Create BMC devices only when defaults are enabled (2020-04-07 08:55:11 +1000)
----------------------------------------------------------------
ppc patch queue 2020-04-07
An assortment of fixes for qemu-5.0, including a number for the FWNMI feature which is new this release.
----------------------------------------------------------------
Alexey Kardashevskiy (2):
vfio/spapr: Fix page size calculation
pseries: Update SLOF firmware image
Cédric Le Goater (1):
ppc/pnv: Create BMC devices only when defaults are enabled
David Gibson (1):
spapr: Fix failure path for attempting to hot unplug PCI bridges
Nicholas Piggin (4):
ppc/spapr: KVM FWNMI should not be enabled until guest requests it ppc/spapr: Improve FWNMI machine check delivery corner case comments ppc/spapr: Add FWNMI machine check delivery warnings
ppc/spapr: Don't kill the guest if a recovered FWNMI machine check delivery fails
Peter Maydell (2):
hw/ppc/e500.c: Handle qemu_find_file() failure hw/ppc/ppc440_uc.c: Remove incorrect iothread locking from dcr_write_pcie()
hw/ppc/e500.c | 4 ++++ hw/ppc/pnv.c | 32 +++++++++++++++++++++++++++----- hw/ppc/pnv_bmc.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ hw/ppc/ppc440_uc.c | 3 --- hw/ppc/spapr_caps.c | 7 ++++--- hw/ppc/spapr_events.c | 49 ++++++++++++++++++++++++++++++++++++++----------- hw/ppc/spapr_pci.c | 1 + hw/ppc/spapr_rtas.c | 10 ++++++++++ hw/vfio/spapr.c | 6 +++--- include/hw/ppc/pnv.h | 2 ++ pc-bios/README | 2 +- pc-bios/slof.bin | Bin 965008 -> 965112 bytes roms/SLOF | 2 +- target/ppc/kvm.c | 7 +++++++ target/ppc/kvm_ppc.h | 6 ++++++ 15 files changed, 149 insertions(+), 27 deletions(-)
[PULL 01/10] hw/ppc/e500.c: Handle qemu_find_file() failure
From: Peter Maydell <[email protected]>
If qemu_find_file() doesn't find the BIOS it returns NULL; we were passing that unchecked through to load_elf(), which assumes a non-NULL pointer and may misbehave. In practice it fails with a weird message:
$ qemu-system-ppc -M ppce500 -display none -kernel nonesuch Bad address qemu-system-ppc: could not load firmware '(null)'
Handle the failure case better:
$ qemu-system-ppc -M ppce500 -display none -kernel nonesuch qemu-system-ppc: could not find firmware/kernel file 'nonesuch'
Spotted by Coverity (CID 1238954).
Message-Id: <[email protected]>
--- hw/ppc/e500.c | 4 ++++ 1 file changed, 4 insertions(+)
hw/ppc/e500.c +4 -0
@@ -1047,6 +1047,10 @@ void ppce500_init(MachineState *machine) } filename =qemu_find_file (QEMU_FILE_TYPE_BIOS , payload_name); +if (!filename) { +error_report ("could not find firmware/kernel file '%s'" , payload_name); +exit (1 ); + } payload_size = load_elf(filename, NULL, NULL, NULL, &bios_entry, &loadaddr, NULL, NULL,
Signature · 1 line
2.25.2
[PULL 02/10] vfio/spapr: Fix page size calculation
In reply to David GibsonFrom: Alexey Kardashevskiy <[email protected]>
Coverity detected an issue (CID 1421903) with potential call of clz64(0) which returns 64 which make it do "<<" with a negative number.
This checks the mask and avoids undefined behaviour.
In practice pgsizes and memory_region_iommu_get_min_page_size() always have some common page sizes and even if they did not, the resulting page size would be 0x8000.0000.0000.0000 (gcc 9.2) and ioctl(VFIO_IOMMU_SPAPR_TCE_CREATE) would fail anyway.
Message-Id: <[email protected]>
--- hw/vfio/spapr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
hw/vfio/spapr.c +3 -3
@@ -147,7 +147,7 @@ int vfio_spapr_create_window(VFIOContainer *container, {int ret =0 ;IOMMUMemoryRegion *iommu_mr =IOMMU_MEMORY_REGION (section->mr); -uint64_t pagesize =memory_region_iommu_get_min_page_size (iommu_mr); +uint64_t pagesize =memory_region_iommu_get_min_page_size (iommu_mr), pgmask;unsigned entries, bits_total, bits_per_level, max_levels;struct vfio_iommu_spapr_tce_create create = { .argsz =sizeof (create) };long rampagesize =qemu_minrampagesize ();
@@ -159,8 +159,8 @@ int vfio_spapr_create_window(VFIOContainer *container,if (pagesize > rampagesize) { pagesize = rampagesize; } - pagesize =1ULL << (63 -clz64 (container->pgsizes & - (pagesize | (pagesize -1 )))); + pgmask = container->pgsizes & (pagesize | (pagesize -1 )); + pagesize = pgmask ? (1ULL << (63 -clz64 (pgmask))) :0 ;if (!pagesize) { error_report("Host doesn't support page size 0x%"PRIx64 ", the supported mask is 0x%lx",
Signature · 1 line
2.25.2
[PULL 07/10] spapr: Fix failure path for attempting to hot unplug PCI bridges
In reply to David GibsonFor various technical reasons we can't currently allow unplug a PCI to PCI bridge on the pseries machine. spapr_pci_unplug_request() correctly generates an error message if that's attempted.
But.. if the given errp is not error_abort or error_fatal, it doesn't actually stop trying to unplug the bridge anyway.
--- hw/ppc/spapr_pci.c | 1 + 1 file changed, 1 insertion(+)
hw/ppc/spapr_pci.c +1 -0
@@ -1663,6 +1663,7 @@ static void spapr_pci_unplug_request(HotplugHandler *plug_handler,if (pc->is_bridge) {error_setg (errp,"PCI: Hot unplug of PCI bridges not supported" ); +return ; }/* ensure any other present functions are pending unplug */
Signature · 1 line
2.25.2
[PULL 03/10] ppc/spapr: KVM FWNMI should not be enabled until guest requests it
In reply to David GibsonFrom: Nicholas Piggin <[email protected]>
The KVM FWNMI capability should be enabled with the "ibm,nmi-register" rtas call. Although MCEs from KVM will be delivered as architected interrupts to the guest before "ibm,nmi-register" is called, KVM has different behaviour depending on whether the guest has enabled FWNMI (it attempts to do more recovery on behalf of a non-FWNMI guest).
Message-Id: <[email protected]>
--- hw/ppc/spapr_caps.c | 7 ++++--- hw/ppc/spapr_rtas.c | 7 +++++++ target/ppc/kvm.c | 7 +++++++ target/ppc/kvm_ppc.h | 6 ++++++ 4 files changed, 24 insertions(+), 3 deletions(-)
hw/ppc/spapr_caps.c +4 -3
@@ -517,9 +517,10 @@ static void cap_fwnmi_apply(SpaprMachineState *spapr, uint8_t val, }if (kvm_enabled ()) { -if (kvmppc_set_fwnmi () <0 ) { -error_setg (errp,"Firmware Assisted Non-Maskable Interrupts(FWNMI) " -"not supported by KVM" ); +if (!kvmppc_get_fwnmi ()) { +error_setg (errp, +"Firmware Assisted Non-Maskable Interrupts(FWNMI) not supported by KVM." ); +error_append_hint (errp,"Try appending -machine cap-fwnmi=off\n" ); } } }
hw/ppc/spapr_rtas.c +7 -0
@@ -437,6 +437,13 @@ static void rtas_ibm_nmi_register(PowerPCCPU *cpu,return ; } +if (kvm_enabled ()) { +if (kvmppc_set_fwnmi () <0 ) { +rtas_st (rets,0 ,RTAS_OUT_NOT_SUPPORTED ); +return ; + } + } + spapr->fwnmi_system_reset_addr = sreset_addr; spapr->fwnmi_machine_check_addr = mce_addr;
target/ppc/kvm.c +7 -0
@@ -88,6 +88,7 @@ static int cap_ppc_safe_indirect_branch;static int cap_ppc_count_cache_flush_assist;static int cap_ppc_nested_kvm_hv;static int cap_large_decr; +static int cap_fwnmi;static uint32_t debug_inst_opcode;
@@ -136,6 +137,7 @@ int kvm_arch_init(MachineState *ms, KVMState *s)kvmppc_get_cpu_characteristics (s); cap_ppc_nested_kvm_hv =kvm_vm_check_extension (s,KVM_CAP_PPC_NESTED_HV ); cap_large_decr =kvmppc_get_dec_bits (); + cap_fwnmi =kvm_vm_check_extension (s,KVM_CAP_PPC_FWNMI );/* * Note: setting it to false because there is not such capability * in KVM at this moment.
@@ -2064,6 +2066,11 @@ void kvmppc_set_mpic_proxy(PowerPCCPU *cpu, int mpic_proxy) } } +bool kvmppc_get_fwnmi (void ) +{ +return cap_fwnmi; +} +int kvmppc_set_fwnmi (void ) {PowerPCCPU *cpu =POWERPC_CPU (first_cpu);
target/ppc/kvm_ppc.h +6 -0
@@ -27,6 +27,7 @@ void kvmppc_enable_h_page_init(void);void kvmppc_set_papr (PowerPCCPU *cpu);int kvmppc_set_compat (PowerPCCPU *cpu,uint32_t compat_pvr);void kvmppc_set_mpic_proxy (PowerPCCPU *cpu,int mpic_proxy); +bool kvmppc_get_fwnmi (void );int kvmppc_set_fwnmi (void );int kvmppc_smt_threads (void );void kvmppc_error_append_smt_possible_hint (Error *const *errp);
@@ -163,6 +164,11 @@ static inline void kvmppc_set_mpic_proxy(PowerPCCPU *cpu, int mpic_proxy) { } +static inline bool kvmppc_get_fwnmi (void ) +{ +return false; +} +static inline int kvmppc_set_fwnmi (void ) {return -1 ;
Signature · 1 line
2.25.2
[PULL 04/10] ppc/spapr: Improve FWNMI machine check delivery corner case comments
In reply to David GibsonFrom: Nicholas Piggin <[email protected]>
Some of the conditions are not as clearly documented as they could be. Also the non-FWNMI case does not need a large comment.
Message-Id: <[email protected]>
--- hw/ppc/spapr_events.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)
hw/ppc/spapr_events.c +11 -8
@@ -860,17 +860,13 @@ void spapr_mce_req_event(PowerPCCPU *cpu, bool recovered)Error *local_err =NULL ;if (spapr->fwnmi_machine_check_addr ==-1 ) { -/* -* This implies that we have hit a machine check either when the -* guest has not registered FWNMI (i.e., "ibm,nmi-register" not -* called) or between system reset and "ibm,nmi-register". -* Fall back to the old machine check behavior in such cases. -*/ +/* Non-FWNMI case, deliver it like an architected CPU interrupt. */ cs->exception_index =POWERPC_EXCP_MCHECK ;ppc_cpu_do_interrupt (cs);return ; } +/* Wait for FWNMI interlock. */ while (spapr->fwnmi_machine_check_interlock !=-1 ) {/* * Check whether the same CPU got machine check error
@@ -882,8 +878,13 @@ void spapr_mce_req_event(PowerPCCPU *cpu, bool recovered)return ; }qemu_cond_wait_iothread (&spapr->fwnmi_machine_check_interlock_cond); -/* Meanwhile if the system is reset, then just return */ if (spapr->fwnmi_machine_check_addr ==-1 ) { +/* +* If the machine was reset while waiting for the interlock, +* abort the delivery. The machine check applies to a context +* that no longer exists, so it wouldn't make sense to deliver +* it now. +*/ return ; } }
@@ -894,7 +895,9 @@ void spapr_mce_req_event(PowerPCCPU *cpu, bool recovered)* We don't want to abort so we let the migration to continue. * In a rare case, the machine check handler will run on the target. * Though this is not preferable, it is better than aborting -* the migration or killing the VM. +* the migration or killing the VM. It is okay to call +* migrate_del_blocker on a blocker that was not added (which the +* nmi-interlock handler would do when it's called after this). */ warn_report ("Received a fwnmi while migration was in progress" ); }
Signature · 1 line
2.25.2
[PULL 08/10] hw/ppc/ppc440_uc.c: Remove incorrect iothread locking from dcr_write_pcie()
In reply to David GibsonFrom: Peter Maydell <[email protected]>
In dcr_write_pcie() we take the iothread lock around a call to pcie_host_mmcfg_udpate(). This is an incorrect attempt to deal with the bug fixed in commit 235352ee6e73d7716, where we were not taking the iothread lock before calling device dcr read/write functions. (It's not sufficient locking, because although the other cases in the switch statement won't assert, there is no locking which prevents multiple guest CPUs from trying to access the PPC460EXPCIEState struct at the same time and corrupting data.)
Unfortunately with commit 235352ee6e73d7716 we are now trying to recursively take the iothread lock, which will assert:
$ qemu-system-ppc -M sam460ex --display none ** ERROR:/home/petmay01/linaro/qemu-from-laptop/qemu/cpus.c:1830:qemu_mutex_lock_iothread_impl: assertion failed: (!qemu_mutex_iothread_locked()) Aborted (core dumped)
Remove the locking within dcr_write_pcie().
Message-Id: <[email protected]>
--- hw/ppc/ppc440_uc.c | 3 --- 1 file changed, 3 deletions(-)
hw/ppc/ppc440_uc.c +0 -3
@@ -13,7 +13,6 @@#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu/log.h" -#include "qemu/main-loop.h" #include "qemu/module.h" #include "cpu.h" #include "hw/irq.h"
@@ -1183,9 +1182,7 @@ static void dcr_write_pcie(void *opaque, int dcrn, uint32_t val)case PEGPL_CFGMSK : s->cfg_mask = val; size = ~(val &0xfffffffe ) +1 ; -qemu_mutex_lock_iothread ();pcie_host_mmcfg_update (PCIE_HOST_BRIDGE (s), val &1 , s->cfg_base, size); -qemu_mutex_unlock_iothread ();break ;case PEGPL_MSGBAH : s->msg_base = ((uint64_t )val <<32 ) | (s->msg_base &0xffffffff );
Signature · 1 line
2.25.2
[PULL 06/10] ppc/spapr: Don't kill the guest if a recovered FWNMI machine check delivery fails
In reply to David GibsonFrom: Nicholas Piggin <[email protected]>
Try to be tolerant of FWNMI delivery errors if the machine check had been recovered by the host.
Message-Id: <[email protected]>
--- hw/ppc/spapr_events.c | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-)
hw/ppc/spapr_events.c +25 -5
@@ -833,13 +833,28 @@ static void spapr_mce_dispatch_elog(PowerPCCPU *cpu, bool recovered)/* get rtas addr from fdt */ rtas_addr =spapr_get_rtas_addr ();if (!rtas_addr) { -error_report ( +if (!recovered) { +error_report ("FWNMI: Unable to deliver machine check to guest: rtas_addr not found." ); -qemu_system_guest_panicked (NULL ); +qemu_system_guest_panicked (NULL ); + }else { +warn_report ( +"FWNMI: Unable to deliver machine check to guest: rtas_addr not found. " +"Machine check recovered." ); + }g_free (ext_elog);return ; } +/* +* By taking the interlock, we assume that the MCE will be +* delivered to the guest. CAUTION: don't add anything that could +* prevent the MCE to be delivered after this line, otherwise the +* guest won't be able to release the interlock and ultimately +* hang/crash? +*/ + spapr->fwnmi_machine_check_interlock = cpu->vcpu_id; +stq_be_phys (&address_space_memory, rtas_addr +RTAS_ERROR_LOG_OFFSET , env->gpr[3 ]); cpu_physical_memory_write(rtas_addr + RTAS_ERROR_LOG_OFFSET +
@@ -876,9 +891,15 @@ void spapr_mce_req_event(PowerPCCPU *cpu, bool recovered)* that CPU called "ibm,nmi-interlock") */ if (spapr->fwnmi_machine_check_interlock == cpu->vcpu_id) { -error_report ( +if (!recovered) { +error_report ("FWNMI: Unable to deliver machine check to guest: nested machine check." ); -qemu_system_guest_panicked (NULL ); +qemu_system_guest_panicked (NULL ); + }else { +warn_report ( +"FWNMI: Unable to deliver machine check to guest: nested machine check. " +"Machine check recovered." ); + }return ; }qemu_cond_wait_iothread (&spapr->fwnmi_machine_check_interlock_cond);
@@ -906,7 +927,6 @@ void spapr_mce_req_event(PowerPCCPU *cpu, bool recovered)warn_report ("Received a fwnmi while migration was in progress" ); } - spapr->fwnmi_machine_check_interlock = cpu->vcpu_id;spapr_mce_dispatch_elog (cpu, recovered); }
Signature · 1 line
2.25.2
[PULL 05/10] ppc/spapr: Add FWNMI machine check delivery warnings
In reply to David GibsonFrom: Nicholas Piggin <[email protected]>
Add some messages which explain problems and guest misbehaviour that may be difficult to diagnose in rare cases of machine checks.
Message-Id: <[email protected]>
--- hw/ppc/spapr_events.c | 4 ++++ hw/ppc/spapr_rtas.c | 3 +++ 2 files changed, 7 insertions(+)
hw/ppc/spapr_events.c +4 -0
@@ -833,6 +833,8 @@ static void spapr_mce_dispatch_elog(PowerPCCPU *cpu, bool recovered)/* get rtas addr from fdt */ rtas_addr =spapr_get_rtas_addr ();if (!rtas_addr) { +error_report ( +"FWNMI: Unable to deliver machine check to guest: rtas_addr not found." );qemu_system_guest_panicked (NULL );g_free (ext_elog);return ;
@@ -874,6 +876,8 @@ void spapr_mce_req_event(PowerPCCPU *cpu, bool recovered)* that CPU called "ibm,nmi-interlock") */ if (spapr->fwnmi_machine_check_interlock == cpu->vcpu_id) { +error_report ( +"FWNMI: Unable to deliver machine check to guest: nested machine check." );qemu_system_guest_panicked (NULL );return ; }
hw/ppc/spapr_rtas.c +3 -0
@@ -462,6 +462,9 @@ static void rtas_ibm_nmi_interlock(PowerPCCPU *cpu, }if (spapr->fwnmi_machine_check_addr ==-1 ) { +qemu_log_mask (LOG_GUEST_ERROR , +"FWNMI: ibm,nmi-interlock RTAS called with FWNMI not registered.\n" ); +/* NMI register not called */ rtas_st (rets,0 ,RTAS_OUT_PARAM_ERROR );return ;
Signature · 1 line
2.25.2
[PULL 10/10] ppc/pnv: Create BMC devices only when defaults are enabled
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
Commit e2392d4395dd ("ppc/pnv: Create BMC devices at machine init") introduced default BMC devices which can be a problem when the same devices are defined on the command line with :
-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10
QEMU fails with :
qemu-system-ppc64: error creating device tree: node: FDT_ERR_EXISTS
Use defaults_enabled() when creating the default BMC devices to let the user provide its own BMC devices using '-nodefaults'. If no BMC device are provided, output a warning but let QEMU run as this is a supported configuration. However, when multiple BMC devices are defined, stop QEMU with a clear error as the results are unexpected.
Message-Id: <[email protected]>
--- hw/ppc/pnv.c | 32 ++++++++++++++++++++++++++----- hw/ppc/pnv_bmc.c | 45 ++++++++++++++++++++++++++++++++++++++++++++ include/hw/ppc/pnv.h | 2 ++ 3 files changed, 74 insertions(+), 5 deletions(-)
hw/ppc/pnv.c +27 -5
@@ -571,10 +571,29 @@ static void pnv_powerdown_notify(Notifier *n, void *opaque)static void pnv_reset (MachineState *machine) { +PnvMachineState *pnv =PNV_MACHINE (machine); +IPMIBmc *bmc;void *fdt;qemu_devices_reset (); +/* +* The machine should provide by default an internal BMC simulator. +* If not, try to use the BMC device that was provided on the command +* line. +*/ + bmc =pnv_bmc_find (&error_fatal); +if (!pnv->bmc) { +if (!bmc) { +warn_report ("machine has no BMC device. Use '-device " +"ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' " +"to define one" ); + }else { +pnv_bmc_set_pnor (bmc, pnv->pnor); + pnv->bmc = bmc; + } + } + fdt =pnv_dt_create (machine);/* Pack resulting tree */
@@ -833,9 +852,6 @@ static void pnv_init(MachineState *machine) }g_free (chip_typename); -/* Create the machine BMC simulator */ - pnv->bmc =pnv_bmc_create (pnv->pnor); -/* Instantiate ISA bus on chip 0 */ pnv->isa_bus =pnv_isa_create (pnv->chips[0 ], &error_fatal);
@@ -845,8 +861,14 @@ static void pnv_init(MachineState *machine)/* Create an RTC ISA device too */ mc146818_rtc_init (pnv->isa_bus,2000 ,NULL ); -/* Create the IPMI BT device for communication with the BMC */ -pnv_ipmi_bt_init (pnv->isa_bus, pnv->bmc,10 ); +/* +* Create the machine BMC simulator and the IPMI BT device for +* communication with the BMC +*/ +if (defaults_enabled ()) { + pnv->bmc =pnv_bmc_create (pnv->pnor); +pnv_ipmi_bt_init (pnv->isa_bus, pnv->bmc,10 ); + }/* * OpenPOWER systems use a IPMI SEL Event message to notify the
hw/ppc/pnv_bmc.c +45 -0
54 lines not on this page · raw message
include/hw/ppc/pnv.h +2 -0
@@ -241,6 +241,8 @@ struct PnvMachineState {void pnv_dt_bmc_sensors (IPMIBmc *bmc,void *fdt);void pnv_bmc_powerdown (IPMIBmc *bmc);IPMIBmc *pnv_bmc_create (PnvPnor *pnor); +IPMIBmc *pnv_bmc_find (Error **errp); +void pnv_bmc_set_pnor (IPMIBmc *bmc,PnvPnor *pnor);/* * POWER8 MMIO base addresses
Signature · 1 line
2.25.2
Re: [PULL 10/10] ppc/pnv: Create BMC devices only when defaults are enabled
Hi,
Quoted 19 lines · David Gibson
From: Cédric Le Goater <[email protected]>
Commit
e2392d4395dd("ppc/pnv: Create BMC devices at machine init") introduced default BMC devices which can be a problem when the same devices are defined on the command line with :-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10
QEMU fails with :
qemu-system-ppc64: error creating device tree: node:
FDT_ERR_EXISTSUse
defaults_enabled()when creating the default BMC devices to let the user provide its own BMC devices using '-nodefaults'. If no BMC device are provided, output a warning but let QEMU run as this is a supported configuration. However, when multiple BMC devices are defined, stop QEMU with a clear error as the results are unexpected.
Quoted 7 lines
Fixes e2392d4395dd ("ppc/pnv: Create BMC devices at machine init")Reported-by Nathan Chancellor <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>Message-Id: <[email protected]>
Tested-by Nathan Chancellor <[email protected]>Signed-off-by David Gibson <[email protected]>---
Not sure if directly related to this patch, but on gitlab-ci we get:
TEST check-qtest-ppc64: tests/qtest/m48t59-test
TEST check-qtest-ppc64: tests/qtest/device-plug-test TEST check-qtest-ppc64: tests/qtest/pnv-xscom-test
TEST check-qtest-ppc64: tests/qtest/migration-test
TEST check-qtest-ppc64: tests/qtest/rtas-test
TEST check-qtest-ppc64: tests/qtest/usb-hcd-uhci-test TEST check-qtest-ppc64: tests/qtest/usb-hcd-xhci-test TEST check-qtest-ppc64: tests/qtest/test-filter-mirror TEST check-qtest-ppc64: tests/qtest/test-filter-redirector TEST check-qtest-ppc64: tests/qtest/display-vga-test TEST check-qtest-ppc64: tests/qtest/numa-test
TEST check-qtest-ppc64: tests/qtest/ivshmem-test
TEST check-qtest-ppc64: tests/qtest/cpu-plug-test
TEST check-qtest-ppc64: tests/qtest/cdrom-test
TEST check-qtest-ppc64: tests/qtest/device-introspect-test
qemu-system-ppc64: warning: machine has no BMC device. Use '-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
qemu-system-ppc64: warning: machine has no BMC device. Use '-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
qemu-system-ppc64: warning: machine has no BMC device. Use '-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
Since this is very confusing, can you adapt the test?
Thanks,
Phil.
Re: [PULL 10/10] ppc/pnv: Create BMC devices only when defaults are enabled
Quoted 48 lines · Philippe Mathieu-Daudé
Hi,
Quoted 19 lines · David Gibson
From: Cédric Le Goater <[email protected]>
Commit
e2392d4395dd("ppc/pnv: Create BMC devices at machine init") introduced default BMC devices which can be a problem when the same devices are defined on the command line with :-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10
QEMU fails with :
qemu-system-ppc64: error creating device tree: node:
FDT_ERR_EXISTSUse
defaults_enabled()when creating the default BMC devices to let the user provide its own BMC devices using '-nodefaults'. If no BMC device are provided, output a warning but let QEMU run as this is a supported configuration. However, when multiple BMC devices are defined, stop QEMU with a clear error as the results are unexpected.Quoted 7 lines
Fixes e2392d4395dd ("ppc/pnv: Create BMC devices at machine init")Reported-by Nathan Chancellor <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>Message-Id: <[email protected]>
Tested-by Nathan Chancellor <[email protected]>Signed-off-by David Gibson <[email protected]>---
Not sure if directly related to this patch, but on gitlab-ci we get:
TEST check-qtest-ppc64: tests/qtest/m48t59-test
TEST check-qtest-ppc64: tests/qtest/device-plug-test TEST check-qtest-ppc64: tests/qtest/pnv-xscom-test
TEST check-qtest-ppc64: tests/qtest/migration-test
TEST check-qtest-ppc64: tests/qtest/rtas-test
TEST check-qtest-ppc64: tests/qtest/usb-hcd-uhci-test TEST check-qtest-ppc64: tests/qtest/usb-hcd-xhci-test TEST check-qtest-ppc64: tests/qtest/test-filter-mirror TEST check-qtest-ppc64: tests/qtest/test-filter-redirector TEST check-qtest-ppc64: tests/qtest/display-vga-test TEST check-qtest-ppc64: tests/qtest/numa-test
TEST check-qtest-ppc64: tests/qtest/ivshmem-test
TEST check-qtest-ppc64: tests/qtest/cpu-plug-test
TEST check-qtest-ppc64: tests/qtest/cdrom-test
TEST check-qtest-ppc64: tests/qtest/device-introspect-test
qemu-system-ppc64: warning: machine has no BMC device. Use '-device
Quoted 8 lines
ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
qemu-system-ppc64: warning: machine has no BMC device. Use '-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
qemu-system-ppc64: warning: machine has no BMC device. Use '-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
I can not reproduce. Is gitlab-ci doing something special ?
C.
Re: [PULL 10/10] ppc/pnv: Create BMC devices only when defaults are enabled
Quoted 58 lines · Cédric Le Goater
Quoted 48 lines · Philippe Mathieu-Daudé
Hi,
Quoted 19 lines · David Gibson
From: Cédric Le Goater <[email protected]>
Commit
e2392d4395dd("ppc/pnv: Create BMC devices at machine init") introduced default BMC devices which can be a problem when the same devices are defined on the command line with :-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10
QEMU fails with :
qemu-system-ppc64: error creating device tree: node:
FDT_ERR_EXISTSUse
defaults_enabled()when creating the default BMC devices to let the user provide its own BMC devices using '-nodefaults'. If no BMC device are provided, output a warning but let QEMU run as this is a supported configuration. However, when multiple BMC devices are defined, stop QEMU with a clear error as the results are unexpected.Quoted 7 lines
Fixes e2392d4395dd ("ppc/pnv: Create BMC devices at machine init")Reported-by Nathan Chancellor <[email protected]>Signed-off-by Cédric Le Goater <[email protected]>Message-Id: <[email protected]>
Tested-by Nathan Chancellor <[email protected]>Signed-off-by David Gibson <[email protected]>---
Not sure if directly related to this patch, but on gitlab-ci we get:
TEST check-qtest-ppc64: tests/qtest/m48t59-test
TEST check-qtest-ppc64: tests/qtest/device-plug-test TEST check-qtest-ppc64: tests/qtest/pnv-xscom-test
TEST check-qtest-ppc64: tests/qtest/migration-test
TEST check-qtest-ppc64: tests/qtest/rtas-test
TEST check-qtest-ppc64: tests/qtest/usb-hcd-uhci-test TEST check-qtest-ppc64: tests/qtest/usb-hcd-xhci-test TEST check-qtest-ppc64: tests/qtest/test-filter-mirror TEST check-qtest-ppc64: tests/qtest/test-filter-redirector TEST check-qtest-ppc64: tests/qtest/display-vga-test TEST check-qtest-ppc64: tests/qtest/numa-test
TEST check-qtest-ppc64: tests/qtest/ivshmem-test
TEST check-qtest-ppc64: tests/qtest/cpu-plug-test
TEST check-qtest-ppc64: tests/qtest/cdrom-test
TEST check-qtest-ppc64: tests/qtest/device-introspect-test
qemu-system-ppc64: warning: machine has no BMC device. Use '-deviceQuoted 8 lines
ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
qemu-system-ppc64: warning: machine has no BMC device. Use '-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
qemu-system-ppc64: warning: machine has no BMC device. Use '-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10' to define one
Quoted 1 line
I can not reproduce. Is gitlab-ci doing something special ?
(Greg already answered elsewhere, for for other readers):
The test is ran when using:
$ make check-qtest SPEED=slow
[PULL 09/10] pseries: Update SLOF firmware image
In reply to David GibsonFrom: Alexey Kardashevskiy <[email protected]>
This is a single regression fix for for 5.0:
Greg Kurz (1):
slof: Only close stdout for virtio-serial devices
--- pc-bios/README | 2 +- pc-bios/slof.bin | Bin 965008 -> 965112 bytes roms/SLOF | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)
pc-bios/README +1 -1
@@ -14,7 +14,7 @@ - SLOF (Slimline Open Firmware) is a free IEEE 1275 Open Firmware implementation for certain IBM POWER hardware. The sources are at https://github.com/aik/SLOF, and the image currently in qemu is - built from git tag qemu-slof-20200317. + built from git tag qemu-slof-20200327. - sgabios (the Serial Graphics Adapter option ROM) provides a means for legacy x86 software to communicate with an attached serial console as
pc-bios/slof.bin binary +0 -0
roms/SLOF +1 -1
@@ -1 +1 @@ -Subproject commit ab6984f5a6d054e1f634dda855b32e5357111974 +Subproject commit 8e012d6fddb62be833d746cef3f03e6c8beecde0
Signature · 1 line
2.25.2
Peter Maydell
AppliedQuoted 11 lines · David Gibson
The following changes since commit
53ef8a92eb04ee19640f5aad3bff36cd4a36c250:Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200406' into staging (2020-04-06 12:36:45 +0100)
are available in the Git repository at:
git://github.com/dgibson/qemu.gittags/ppc-for-5.0-20200407for you to fetch changes up to
25f3170b06544e4de620336da5b2ea3b392d66bc:
Quoted 8 lines
ppc/pnv: Create BMC devices only when defaults are enabled (2020-04-07 08:55:11 +1000)
----------------------------------------------------------------
ppc patch queue 2020-04-07An assortment of fixes for qemu-5.0, including a number for the FWNMI feature which is new this release.
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM