From: Eduardo Habkost <ehabkost@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: qemu-devel@nongnu.org, jgross@suse.com,
Thomas Huth <thuth@redhat.com>,
sstabellini@kernel.org, Laszlo Ersek <lersek@redhat.com>,
Marcel Apfelbaum <marcel@redhat.com>,
Alexander Graf <agraf@suse.de>,
qemu-ppc@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 3/6] ppc: e500: Allow only supported dynamic sysbus devices
Date: Mon, 27 Nov 2017 23:12:43 -0200 [thread overview]
Message-ID: <20171128011243.GE3037@localhost.localdomain> (raw)
In-Reply-To: <20171127015209.GB11775@umbus.fritz.box>
On Mon, Nov 27, 2017 at 12:52:09PM +1100, David Gibson wrote:
> On Sat, Nov 25, 2017 at 01:16:07PM -0200, Eduardo Habkost wrote:
> > platform_bus_create_devtree() already rejects all dynamic sysbus
> > devices except TYPE_ETSEC_COMMON, so register it as the only
> > allowed dynamic sysbus device for the ppce500 machine-type.
> >
> > Cc: Alexander Graf <agraf@suse.de>
> > Cc: David Gibson <david@gibson.dropbear.id.au>
> > Cc: qemu-ppc@nongnu.org
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
>
> Acked-by: David Gibson <david@gibson.dropbear.id.au>
Thanks!
>
> Do you need me to take this through my tree (for 2.12), or do you have
> another merge patch in mind?
As this patch requires patch 1/6 to be applied first and there
are patches touching other machines in this series, I can merge
this through my machine core tree if you don't mind.
>
> > ---
> > Changes series v1 -> v2:
> > * New patch added to series
> > ---
> > hw/ppc/e500plat.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/hw/ppc/e500plat.c b/hw/ppc/e500plat.c
> > index 438118c29b..81d03e1038 100644
> > --- a/hw/ppc/e500plat.c
> > +++ b/hw/ppc/e500plat.c
> > @@ -12,6 +12,7 @@
> > #include "qemu/osdep.h"
> > #include "qemu-common.h"
> > #include "e500.h"
> > +#include "hw/net/fsl_etsec/etsec.h"
> > #include "hw/boards.h"
> > #include "sysemu/device_tree.h"
> > #include "sysemu/kvm.h"
> > @@ -64,8 +65,7 @@ static void e500plat_machine_init(MachineClass *mc)
> > mc->desc = "generic paravirt e500 platform";
> > mc->init = e500plat_init;
> > mc->max_cpus = 32;
> > - /*TODO: allow only sysbus devices that really work with this machine */
> > - machine_class_allow_dynamic_sysbus_dev(mc, TYPE_SYS_BUS_DEVICE);
> > + machine_class_allow_dynamic_sysbus_dev(mc, TYPE_ETSEC_COMMON);
> > mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("e500v2_v30");
> > }
> >
>
> --
> 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
--
Eduardo
next prev parent reply other threads:[~2017-11-28 1:12 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-25 15:16 [Qemu-devel] [PATCH v2 0/6] Replace has_dynamic_sysbus with list of allowed device types Eduardo Habkost
2017-11-25 15:16 ` [Qemu-arm] [PATCH v2 1/6] machine: Replace has_dynamic_sysbus with list of allowed devices Eduardo Habkost
2017-11-25 15:16 ` Eduardo Habkost
2017-11-25 15:16 ` [Qemu-devel] " Eduardo Habkost
2017-11-25 17:08 ` [Qemu-arm] " Greg Kurz
2017-11-25 17:08 ` Greg Kurz
2017-11-25 17:08 ` Greg Kurz
2017-11-27 1:51 ` [Qemu-arm] " David Gibson
2017-11-27 1:51 ` David Gibson
2017-11-27 1:51 ` [Qemu-devel] " David Gibson
2017-11-27 8:39 ` [Qemu-arm] " Marcel Apfelbaum
2017-11-27 8:39 ` Marcel Apfelbaum
2017-11-27 8:39 ` [Qemu-devel] " Marcel Apfelbaum
2017-11-28 16:55 ` [Qemu-arm] " Marc-André Lureau
2017-11-28 16:55 ` Marc-André Lureau
2017-11-28 16:55 ` Marc-André Lureau
2017-11-28 18:34 ` Eduardo Habkost
2017-11-28 18:34 ` Eduardo Habkost
2017-11-28 18:34 ` Eduardo Habkost
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 2/6] hw/arm/virt: Allow only supported dynamic sysbus devices Eduardo Habkost
2017-11-25 15:16 ` Eduardo Habkost
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 3/6] ppc: e500: " Eduardo Habkost
2017-11-25 18:31 ` Greg Kurz
2017-11-28 1:11 ` Eduardo Habkost
2017-11-27 1:52 ` David Gibson
2017-11-28 1:12 ` Eduardo Habkost [this message]
2017-11-28 4:54 ` David Gibson
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 4/6] spapr: " Eduardo Habkost
2017-11-25 17:43 ` Greg Kurz
2017-11-27 1:52 ` David Gibson
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 5/6] xen: Add only xen-sysdev to dynamic sysbus device list Eduardo Habkost
2017-11-25 15:16 ` Eduardo Habkost
2017-12-22 13:36 ` [Qemu-devel] " Marc-André Lureau
2017-12-22 13:36 ` Marc-André Lureau
2018-01-05 14:12 ` Anthony PERARD
2018-01-05 14:12 ` [Qemu-devel] " Anthony PERARD
2017-11-25 15:16 ` [Qemu-devel] [PATCH v2 6/6] q35: Allow only supported dynamic sysbus devices Eduardo Habkost
2017-11-27 8:44 ` Marcel Apfelbaum
2017-11-28 1:18 ` Eduardo Habkost
2017-12-22 13:37 ` [Qemu-devel] [PATCH v2 0/6] Replace has_dynamic_sysbus with list of allowed device types Marc-André Lureau
2018-01-09 20:12 ` Eduardo Habkost
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171128011243.GE3037@localhost.localdomain \
--to=ehabkost@redhat.com \
--cc=agraf@suse.de \
--cc=david@gibson.dropbear.id.au \
--cc=jgross@suse.com \
--cc=lersek@redhat.com \
--cc=marcel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=sstabellini@kernel.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.