ppc-for-5.1 queue 20200626
The following changes since commit 63d211993b73ca9ac2bc618afeb61a698e9f5198:
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2020-06-25 16:52:42 +0100)
are available in the Git repository at:
git://github.com/dgibson/qemu.git tags/ppc-for-5.1-20200626
for you to fetch changes up to 737ef968d442cb287b1fcc7da94b53284b0ad1e9:
target/ppc: Remove TIDR from POWER10 processor (2020-06-26 09:22:30 +1000)
----------------------------------------------------------------
ppc patch queue 2020-06-26
Here's another pull request for qemu-5.1. Not very much in this one, just a handful of assorted minor fixes and cleanups.
I'm about to go on holiday for a couple of weeks, so this will be my last PR before the freeze, and maybe the last for 5.1 at all. If there's some super important fix we need, Greg Kurz will handle it.
----------------------------------------------------------------
Cédric Le Goater (1):
target/ppc: Remove TIDR from POWER10 processor
Greg Kurz (2):
spapr: Simplify some warning printing paths in spapr_caps.c ppc/pnv: Silence missing BMC warning with qtest
Gustavo Romero (1):
spapr: Fix typos in comments and macro indentation
hw/ppc/pnv.c | 9 ++++++--- hw/ppc/spapr_caps.c | 28 ++++++---------------------- hw/ppc/spapr_vio.c | 6 +++--- include/hw/ppc/xive_regs.h | 2 +- target/ppc/translate_init.inc.c | 5 ----- 5 files changed, 16 insertions(+), 34 deletions(-)
[PULL 3/4] ppc/pnv: Silence missing BMC warning with qtest
From: Greg Kurz <[email protected]>
The device introspect test in qtest emits some warnings with the the pnv machine types during the "nodefaults" phase:
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
This is expected since the pnv machine doesn't create the internal BMC simulator fallback when "-nodefaults" is passed on the command line, but these warnings appear in ci logs and confuse people.
Not having a BMC isn't recommended but it is still a supported configuration, so a straightforward fix is to just silent this warning when qtest is enabled.
Message-Id: <[email protected]>
--- hw/ppc/pnv.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
hw/ppc/pnv.c +6 -3
@@ -21,6 +21,7 @@#include "qemu-common.h" #include "qemu/units.h" #include "qapi/error.h" +#include "sysemu/qtest.h" #include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "sysemu/reset.h"
@@ -587,9 +588,11 @@ static void pnv_reset(MachineState *machine) 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" ); +if (!qtest_enabled ()) { +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;
Signature · 1 line
2.26.2
[PULL 1/4] spapr: Simplify some warning printing paths in spapr_caps.c
In reply to David GibsonFrom: Greg Kurz <[email protected]>
We obviously only want to print a warning in these cases, but this is done in a rather convoluted manner. Just use warn_report() instead.
Message-Id: <[email protected]>
--- hw/ppc/spapr_caps.c | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-)
hw/ppc/spapr_caps.c +6 -22
@@ -248,23 +248,18 @@ SpaprCapPossible cap_cfpc_possible = {static void cap_safe_cache_apply (SpaprMachineState *spapr,uint8_t val,Error **errp) { -Error *local_err =NULL ;uint8_t kvm_val =kvmppc_get_cap_safe_cache ();if (tcg_enabled () && val) {/* TCG only supports broken, allow other values and print a warning */ -error_setg (&local_err, -"TCG doesn't support requested feature, cap-cfpc=%s" , - cap_cfpc_possible.vals[val]); +warn_report ("TCG doesn't support requested feature, cap-cfpc=%s" , + cap_cfpc_possible.vals[val]); }else if (kvm_enabled () && (val > kvm_val)) {error_setg (errp,"Requested safe cache capability level not supported by kvm," " try appending -machine cap-cfpc=%s" , cap_cfpc_possible.vals[kvm_val]); } - -if (local_err !=NULL ) -warn_report_err (local_err); }SpaprCapPossible cap_sbbc_possible = {
@@ -277,23 +272,18 @@ SpaprCapPossible cap_sbbc_possible = {static void cap_safe_bounds_check_apply (SpaprMachineState *spapr,uint8_t val,Error **errp) { -Error *local_err =NULL ;uint8_t kvm_val =kvmppc_get_cap_safe_bounds_check ();if (tcg_enabled () && val) {/* TCG only supports broken, allow other values and print a warning */ -error_setg (&local_err, -"TCG doesn't support requested feature, cap-sbbc=%s" , - cap_sbbc_possible.vals[val]); +warn_report ("TCG doesn't support requested feature, cap-sbbc=%s" , + cap_sbbc_possible.vals[val]); }else if (kvm_enabled () && (val > kvm_val)) {error_setg (errp,"Requested safe bounds check capability level not supported by kvm," " try appending -machine cap-sbbc=%s" , cap_sbbc_possible.vals[kvm_val]); } - -if (local_err !=NULL ) -warn_report_err (local_err); }SpaprCapPossible cap_ibs_possible = {
@@ -309,24 +299,18 @@ SpaprCapPossible cap_ibs_possible = {static void cap_safe_indirect_branch_apply (SpaprMachineState *spapr,uint8_t val,Error **errp) { -Error *local_err =NULL ;uint8_t kvm_val =kvmppc_get_cap_safe_indirect_branch ();if (tcg_enabled () && val) {/* TCG only supports broken, allow other values and print a warning */ -error_setg (&local_err, -"TCG doesn't support requested feature, cap-ibs=%s" , - cap_ibs_possible.vals[val]); +warn_report ("TCG doesn't support requested feature, cap-ibs=%s" , + cap_ibs_possible.vals[val]); }else if (kvm_enabled () && (val > kvm_val)) {error_setg (errp,"Requested safe indirect branch capability level not supported by kvm," " try appending -machine cap-ibs=%s" , cap_ibs_possible.vals[kvm_val]); } - -if (local_err !=NULL ) { -warn_report_err (local_err); - } }#define VALUE_DESC_TRISTATE " (broken, workaround, fixed)"
Signature · 1 line
2.26.2
[PULL 4/4] target/ppc: Remove TIDR from POWER10 processor
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
It is not part of Power ISA Version 3.1.
Message-Id: <[email protected]>
--- target/ppc/translate_init.inc.c | 5 ----- 1 file changed, 5 deletions(-)
target/ppc/translate_init.inc.c +0 -5
@@ -9086,11 +9086,6 @@ static void init_proc_POWER10(CPUPPCState *env)gen_spr_power8_rpr (env);gen_spr_power9_mmu (env); -/* POWER9 Specific registers */ -spr_register_kvm (env,SPR_TIDR ,"TIDR" ,NULL ,NULL , - spr_read_generic, spr_write_generic, -KVM_REG_PPC_TIDR ,0 ); -/* FIXME: Filter fields properly based on privilege level */ spr_register_kvm_hv(env, SPR_PSSCR, "PSSCR", NULL, NULL, NULL, NULL, spr_read_generic, spr_write_generic,
Signature · 1 line
2.26.2
[PULL 2/4] spapr: Fix typos in comments and macro indentation
In reply to David GibsonFrom: Gustavo Romero <[email protected]>
This commit fixes typos in spapr_vio_reg_to_irq() comments and a macro indentation.
Message-Id: <[email protected]>
--- hw/ppc/spapr_vio.c | 6 +++--- include/hw/ppc/xive_regs.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
hw/ppc/spapr_vio.c +3 -3
@@ -420,7 +420,7 @@ static void spapr_vio_busdev_reset(DeviceState *qdev) }/* -* The register property of a VIO device is defined in livirt using +* The register property of a VIO device is defined in libvirt using * 0x1000 as a base register number plus a 0x1000 increment. For the * VIO tty device, the base number is changed to 0x30000000. QEMU uses * a base register number of 0x71000000 and then a simple increment.
@@ -450,7 +450,7 @@ static inline uint32_t spapr_vio_reg_to_irq(uint32_t reg) }else if (reg >=0x30000000 ) {/* -* VIO tty devices register values, when allocated by livirt, +* VIO tty devices register values, when allocated by libvirt, * are mapped in range [0xf0 - 0xff], gives us a maximum of 16 * vtys. */
@@ -459,7 +459,7 @@ static inline uint32_t spapr_vio_reg_to_irq(uint32_t reg) }else {/* * Other VIO devices register values, when allocated by -* livirt, should be mapped in range [0x00 - 0xef]. Conflicts +* libvirt, should be mapped in range [0x00 - 0xef]. Conflicts * will be detected when IRQ is claimed. */ irq = (reg >>12 ) &0xff ;
include/hw/ppc/xive_regs.h +1 -1
@@ -71,7 +71,7 @@* QW word 2 contains the valid bit at the top and other fields * depending on the QW. */ -#define TM_WORD2 0x8 +#define TM_WORD2 0x8#define TM_QW0W2_VU PPC_BIT32(0)#define TM_QW0W2_LOGIC_SERV PPC_BITMASK32(1, 31)/* XX 2,31 ? */ #define TM_QW1W2_VO PPC_BIT32(0)
Signature · 1 line
2.26.2
Peter Maydell
AppliedQuoted 16 lines · David Gibson
The following changes since commit
63d211993b73ca9ac2bc618afeb61a698e9f5198:Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2020-06-25 16:52:42 +0100)
are available in the Git repository at:
git://github.com/dgibson/qemu.gittags/ppc-for-5.1-20200626for you to fetch changes up to
737ef968d442cb287b1fcc7da94b53284b0ad1e9:target/ppc: Remove TIDR from POWER10 processor (2020-06-26 09:22:30 +1000)
----------------------------------------------------------------
ppc patch queue 2020-06-26
Quoted 7 lines
Here's another pull request for qemu-5.1. Not very much in this one, just a handful of assorted minor fixes and cleanups.
I'm about to go on holiday for a couple of weeks, so this will be my last PR before the freeze, and maybe the last for 5.1 at all. If there's some super important fix we need, Greg Kurz will handle it.
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.
-- PMM