* [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies @ 2014-08-26 4:30 David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 1/3] target-ppc: Disable PReP testcases with !CONFIG_PREP David Gibson ` (3 more replies) 0 siblings, 4 replies; 9+ messages in thread From: David Gibson @ 2014-08-26 4:30 UTC (permalink / raw) To: agraf; +Cc: qemu-devel These 3 patches fix some places where things ought to depend on an existing config variable, but don't. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Qemu-devel] [PATCH 1/3] target-ppc: Disable PReP testcases with !CONFIG_PREP 2014-08-26 4:30 [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies David Gibson @ 2014-08-26 4:30 ` David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 2/3] target-ppc: Disable ppc Mac tests when !CONFIG_MAC David Gibson ` (2 subsequent siblings) 3 siblings, 0 replies; 9+ messages in thread From: David Gibson @ 2014-08-26 4:30 UTC (permalink / raw) To: agraf; +Cc: qemu-devel, David Gibson The test suites contain several tests which require the "prep" machine type, which will fail if that is configured out. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> --- tests/boot-order-test.c | 4 ++++ tests/endianness-test.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tests/boot-order-test.c b/tests/boot-order-test.c index 360a691..bff16b5 100644 --- a/tests/boot-order-test.c +++ b/tests/boot-order-test.c @@ -112,6 +112,7 @@ static void test_pc_boot_order(void) test_boot_orders(NULL, read_boot_order_pc, test_cases_pc); } +#ifdef CONFIG_PREP static uint8_t read_m48t59(uint64_t addr, uint16_t reg) { writeb(addr, reg & 0xff); @@ -135,6 +136,7 @@ static void test_prep_boot_order(void) { test_boot_orders("prep", read_boot_order_prep, test_cases_prep); } +#endif /* CONFIG_PREP */ static uint64_t read_boot_order_pmac(void) { @@ -194,7 +196,9 @@ int main(int argc, char *argv[]) if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { qtest_add_func("boot-order/pc", test_pc_boot_order); } else if (strcmp(arch, "ppc") == 0 || strcmp(arch, "ppc64") == 0) { +#ifdef CONFIG_PREP qtest_add_func("boot-order/prep", test_prep_boot_order); +#endif /* CONFIG_PREP */ qtest_add_func("boot-order/pmac_oldworld", test_pmac_oldworld_boot_order); qtest_add_func("boot-order/pmac_newworld", diff --git a/tests/endianness-test.c b/tests/endianness-test.c index 92e17d2..0857784 100644 --- a/tests/endianness-test.c +++ b/tests/endianness-test.c @@ -41,7 +41,9 @@ static const TestCase test_cases[] = { { "mips64", "malta", 0x10000000, .bswap = true }, { "mips64el", "fulong2e", 0x1fd00000 }, { "ppc", "g3beige", 0xfe000000, .bswap = true, .superio = "i82378" }, +#ifdef CONFIG_PREP { "ppc", "prep", 0x80000000, .bswap = true }, +#endif /* CONFIG_PREP */ { "ppc", "bamboo", 0xe8000000, .bswap = true, .superio = "i82378" }, { "ppc64", "mac99", 0xf2000000, .bswap = true, .superio = "i82378" }, { "ppc64", "pseries", 0x10080000000ULL, -- 1.9.3 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Qemu-devel] [PATCH 2/3] target-ppc: Disable ppc Mac tests when !CONFIG_MAC 2014-08-26 4:30 [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 1/3] target-ppc: Disable PReP testcases with !CONFIG_PREP David Gibson @ 2014-08-26 4:30 ` David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 3/3] target-ppc: virtex-ml507 machine type should depend on CONFIG_XILINX David Gibson 2014-08-26 8:34 ` [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies Paolo Bonzini 3 siblings, 0 replies; 9+ messages in thread From: David Gibson @ 2014-08-26 4:30 UTC (permalink / raw) To: agraf; +Cc: qemu-devel, David Gibson The testsuites contain several tests which require the "mac99" and "g3beige" machine types, which will fail when CONFIG_MAC is not specified. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> --- tests/boot-order-test.c | 6 ++++++ tests/endianness-test.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/tests/boot-order-test.c b/tests/boot-order-test.c index bff16b5..1a7aa8b 100644 --- a/tests/boot-order-test.c +++ b/tests/boot-order-test.c @@ -138,12 +138,14 @@ static void test_prep_boot_order(void) } #endif /* CONFIG_PREP */ +#ifdef CONFIG_MAC static uint64_t read_boot_order_pmac(void) { QFWCFG *fw_cfg = mm_fw_cfg_init(0xf0000510); return qfw_cfg_get_u16(fw_cfg, FW_CFG_BOOT_DEVICE); } +#endif /* CONFIG_MAC */ static const boot_order_test test_cases_fw_cfg[] = { { "", 'c', 'c' }, @@ -153,6 +155,7 @@ static const boot_order_test test_cases_fw_cfg[] = { {} }; +#ifdef CONFIG_MAC static void test_pmac_oldworld_boot_order(void) { test_boot_orders("g3beige", read_boot_order_pmac, test_cases_fw_cfg); @@ -162,6 +165,7 @@ static void test_pmac_newworld_boot_order(void) { test_boot_orders("mac99", read_boot_order_pmac, test_cases_fw_cfg); } +#endif /* CONFIG_MAC */ static uint64_t read_boot_order_sun4m(void) { @@ -199,10 +203,12 @@ int main(int argc, char *argv[]) #ifdef CONFIG_PREP qtest_add_func("boot-order/prep", test_prep_boot_order); #endif /* CONFIG_PREP */ +#ifdef CONFIG_MAC qtest_add_func("boot-order/pmac_oldworld", test_pmac_oldworld_boot_order); qtest_add_func("boot-order/pmac_newworld", test_pmac_newworld_boot_order); +#endif /* CONFIG_MAC */ } else if (strcmp(arch, "sparc") == 0) { qtest_add_func("boot-order/sun4m", test_sun4m_boot_order); } else if (strcmp(arch, "sparc64") == 0) { diff --git a/tests/endianness-test.c b/tests/endianness-test.c index 0857784..73b512b 100644 --- a/tests/endianness-test.c +++ b/tests/endianness-test.c @@ -40,12 +40,16 @@ static const TestCase test_cases[] = { { "mips64", "mips", 0x14000000, .bswap = true }, { "mips64", "malta", 0x10000000, .bswap = true }, { "mips64el", "fulong2e", 0x1fd00000 }, +#ifdef CONFIG_MAC { "ppc", "g3beige", 0xfe000000, .bswap = true, .superio = "i82378" }, +#endif /* CONFIG_MAC */ #ifdef CONFIG_PREP { "ppc", "prep", 0x80000000, .bswap = true }, #endif /* CONFIG_PREP */ { "ppc", "bamboo", 0xe8000000, .bswap = true, .superio = "i82378" }, +#ifdef CONFIG_MAC { "ppc64", "mac99", 0xf2000000, .bswap = true, .superio = "i82378" }, +#endif /* CONFIG_MAC */ { "ppc64", "pseries", 0x10080000000ULL, .bswap = true, .superio = "i82378" }, { "sh4", "r2d", 0xfe240000, .superio = "i82378" }, -- 1.9.3 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Qemu-devel] [PATCH 3/3] target-ppc: virtex-ml507 machine type should depend on CONFIG_XILINX 2014-08-26 4:30 [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 1/3] target-ppc: Disable PReP testcases with !CONFIG_PREP David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 2/3] target-ppc: Disable ppc Mac tests when !CONFIG_MAC David Gibson @ 2014-08-26 4:30 ` David Gibson 2014-08-26 6:12 ` Peter Crosthwaite 2014-09-08 11:10 ` Alexander Graf 2014-08-26 8:34 ` [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies Paolo Bonzini 3 siblings, 2 replies; 9+ messages in thread From: David Gibson @ 2014-08-26 4:30 UTC (permalink / raw) To: agraf; +Cc: qemu-devel, David Gibson The virtex-ml507 is a Xilinx CPU based system, and requires several sub devices which are only included with CONFIG_XILINX. Therefore, it should only be compiled if CONFIG_XILINX is set. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> --- hw/ppc/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/Makefile.objs b/hw/ppc/Makefile.objs index edd44d0..19d9920 100644 --- a/hw/ppc/Makefile.objs +++ b/hw/ppc/Makefile.objs @@ -20,4 +20,4 @@ obj-$(CONFIG_MAC) += mac_newworld.o obj-$(CONFIG_E500) += e500.o mpc8544ds.o e500plat.o obj-$(CONFIG_E500) += mpc8544_guts.o ppce500_spin.o # PowerPC 440 Xilinx ML507 reference board. -obj-y += virtex_ml507.o +obj-$(CONFIG_XILINX) += virtex_ml507.o -- 1.9.3 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH 3/3] target-ppc: virtex-ml507 machine type should depend on CONFIG_XILINX 2014-08-26 4:30 ` [Qemu-devel] [PATCH 3/3] target-ppc: virtex-ml507 machine type should depend on CONFIG_XILINX David Gibson @ 2014-08-26 6:12 ` Peter Crosthwaite 2014-09-08 11:10 ` Alexander Graf 1 sibling, 0 replies; 9+ messages in thread From: Peter Crosthwaite @ 2014-08-26 6:12 UTC (permalink / raw) To: David Gibson; +Cc: Alexander Graf, qemu-devel@nongnu.org Developers On Tue, Aug 26, 2014 at 2:30 PM, David Gibson <david@gibson.dropbear.id.au> wrote: > The virtex-ml507 is a Xilinx CPU based system, and requires several sub > devices which are only included with CONFIG_XILINX. Therefore, it should > only be compiled if CONFIG_XILINX is set. > > Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> > --- > hw/ppc/Makefile.objs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/ppc/Makefile.objs b/hw/ppc/Makefile.objs > index edd44d0..19d9920 100644 > --- a/hw/ppc/Makefile.objs > +++ b/hw/ppc/Makefile.objs > @@ -20,4 +20,4 @@ obj-$(CONFIG_MAC) += mac_newworld.o > obj-$(CONFIG_E500) += e500.o mpc8544ds.o e500plat.o > obj-$(CONFIG_E500) += mpc8544_guts.o ppce500_spin.o > # PowerPC 440 Xilinx ML507 reference board. > -obj-y += virtex_ml507.o > +obj-$(CONFIG_XILINX) += virtex_ml507.o > -- > 1.9.3 > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH 3/3] target-ppc: virtex-ml507 machine type should depend on CONFIG_XILINX 2014-08-26 4:30 ` [Qemu-devel] [PATCH 3/3] target-ppc: virtex-ml507 machine type should depend on CONFIG_XILINX David Gibson 2014-08-26 6:12 ` Peter Crosthwaite @ 2014-09-08 11:10 ` Alexander Graf 1 sibling, 0 replies; 9+ messages in thread From: Alexander Graf @ 2014-09-08 11:10 UTC (permalink / raw) To: David Gibson; +Cc: qemu-devel On 26.08.14 06:30, David Gibson wrote: > The virtex-ml507 is a Xilinx CPU based system, and requires several sub > devices which are only included with CONFIG_XILINX. Therefore, it should > only be compiled if CONFIG_XILINX is set. > > Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Thanks, applied to ppc-next. Alex ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies 2014-08-26 4:30 [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies David Gibson ` (2 preceding siblings ...) 2014-08-26 4:30 ` [Qemu-devel] [PATCH 3/3] target-ppc: virtex-ml507 machine type should depend on CONFIG_XILINX David Gibson @ 2014-08-26 8:34 ` Paolo Bonzini 2014-08-27 8:22 ` David Gibson 3 siblings, 1 reply; 9+ messages in thread From: Paolo Bonzini @ 2014-08-26 8:34 UTC (permalink / raw) To: David Gibson, agraf; +Cc: qemu-devel Il 26/08/2014 06:30, David Gibson ha scritto: > These 3 patches fix some places where things ought to depend on an > existing config variable, but don't. Which header provdides the #defines? Paolo ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies 2014-08-26 8:34 ` [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies Paolo Bonzini @ 2014-08-27 8:22 ` David Gibson 2014-08-27 10:08 ` Paolo Bonzini 0 siblings, 1 reply; 9+ messages in thread From: David Gibson @ 2014-08-27 8:22 UTC (permalink / raw) To: Paolo Bonzini; +Cc: agraf, qemu-devel [-- Attachment #1: Type: text/plain, Size: 793 bytes --] On Tue, Aug 26, 2014 at 10:34:10AM +0200, Paolo Bonzini wrote: > Il 26/08/2014 06:30, David Gibson ha scritto: > > These 3 patches fix some places where things ought to depend on an > > existing config variable, but don't. > > Which header provdides the #defines? Ah, crap, none does. So effectively, my patch unconditionally disables those tests. Have I mentioned that I really hate the fact that qemu has different config variables visible to make and C. I'll rework, but probably not for a little while, since I have to focus on some kernel work instead for the time being. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson [-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies 2014-08-27 8:22 ` David Gibson @ 2014-08-27 10:08 ` Paolo Bonzini 0 siblings, 0 replies; 9+ messages in thread From: Paolo Bonzini @ 2014-08-27 10:08 UTC (permalink / raw) To: David Gibson; +Cc: agraf, qemu-devel Il 27/08/2014 10:22, David Gibson ha scritto: > Have I mentioned that I really hate the fact that qemu has different > config variables visible to make and C. Yeah, the introduction of config-devices.h was nixed by one of the maintainers a few years ago... > I'll rework, but probably not for a little while, since I have to > focus on some kernel work instead for the time being. No problem. Paolo ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-09-08 11:10 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-08-26 4:30 [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 1/3] target-ppc: Disable PReP testcases with !CONFIG_PREP David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 2/3] target-ppc: Disable ppc Mac tests when !CONFIG_MAC David Gibson 2014-08-26 4:30 ` [Qemu-devel] [PATCH 3/3] target-ppc: virtex-ml507 machine type should depend on CONFIG_XILINX David Gibson 2014-08-26 6:12 ` Peter Crosthwaite 2014-09-08 11:10 ` Alexander Graf 2014-08-26 8:34 ` [Qemu-devel] [0/3] target-ppc Fixes for some missing config dependencies Paolo Bonzini 2014-08-27 8:22 ` David Gibson 2014-08-27 10:08 ` Paolo Bonzini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).