From: "Andreas Färber" <afaerber@suse.de>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, alistair.francis@xilinx.com,
edgar.iglesias@gmail.com, agraf@suse.de, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH v1 2/3] memory: Add sysbus memory device
Date: Fri, 16 May 2014 17:22:59 +0200 [thread overview]
Message-ID: <53762D53.7020005@suse.de> (raw)
In-Reply-To: <a944bc1db88e857e9f1440dce228f76e41624f6a.1397527916.git.peter.crosthwaite@xilinx.com>
Peter,
Am 15.04.2014 04:21, schrieb Peter Crosthwaite:
> Add a sysbus device consisting of a single ram. This allows for
> instantiation of RAM just like any other device. There are a number
> of good reasons to want to do this this:
>
> 1: Consistency. RAM is not that special where board level files should
> have to instantiate it with a completely different API. This reduces
> complexity of board level development by hiding the memory API
> completely and handling everything via the sysbus API.
>
> 2: Device tree completeness. Ram Now shows up in info-qtree and
> friends. E.g. Info qtree gives meaningful information under the
> root system bus:
>
> dev: sysbus-memory, id "zynq.ocm_ram"
> size = 262144 (0x40000)
> read-only = false
> irq 0
> mmio 00000000fffc0000/0000000000040000
> dev: sysbus-memory, id "zynq.ext_ram"
> size = 134217728 (0x8000000)
> read-only = false
> irq 0
> mmio 0000000000000000/0000000008000000
I had warned that I would nack any patch that justifies changes with
"info qtree", so here's your gentle NAK.
Please help deciding on the following patches, which do show such
devices the QOM way:
http://patchwork.ozlabs.org/patch/317224/
http://patchwork.ozlabs.org/patch/343136/
http://patchwork.ozlabs.org/patch/347064/
Note that this doesn't mean we can't create new SysBusDevices, it means
the commit message should be changed.
Regards,
Andreas
>
> 3: Remove dependence of global state. Board files don't have to
> explicity request the global singleton (and much unloved)
> address_space_memory() and go hacking on it. address_space_memory()
> is still ultimately used, but the ugliness is hidden in one place - the
> sysbus core (we can fix that another day).
>
> 4: Data driven machine creation. There is list discussion on being able
> to create or append-to sysbus machines in a data-driven way (whether
> thats from command-line, monitor or scripts or whatever). This patch
> removes the memory special case from that problem and allows RAM
> instantiation to come via whatever solutions we come up with sysbus
> device instantiation.
>
> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> ---
>
> hw/core/Makefile.objs | 1 +
> hw/core/sysbus-memory.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 64 insertions(+)
> create mode 100644 hw/core/sysbus-memory.c
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next parent reply other threads:[~2014-05-16 15:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1397527916.git.peter.crosthwaite@xilinx.com>
[not found] ` <a944bc1db88e857e9f1440dce228f76e41624f6a.1397527916.git.peter.crosthwaite@xilinx.com>
2014-05-16 15:22 ` Andreas Färber [this message]
2014-05-16 17:02 ` [Qemu-devel] [PATCH v1 2/3] memory: Add sysbus memory device Peter Crosthwaite
[not found] ` <534E7672.9010807@suse.de>
2014-05-18 10:21 ` Peter Crosthwaite
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=53762D53.7020005@suse.de \
--to=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=alistair.francis@xilinx.com \
--cc=armbru@redhat.com \
--cc=edgar.iglesias@gmail.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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.