From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: "qemu-ppc@nongnu.org List" <qemu-ppc@nongnu.org>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 14/19] openpic: convert to qdev
Date: Tue, 11 Dec 2012 19:38:20 -0600 [thread overview]
Message-ID: <1355276300.16025.5@snotra> (raw)
In-Reply-To: <2871B5F4-8084-46EC-A612-725421829498@suse.de> (from agraf@suse.de on Tue Dec 11 18:56:56 2012)
On 12/11/2012 06:56:56 PM, Alexander Graf wrote:
>
> On 11.12.2012, at 18:47, Scott Wood wrote:
>
> > On 12/11/2012 02:25:31 AM, Alexander Graf wrote:
> >> If we want a pv style generic mpic (for -M e500), let's add such
> an mpic to the model list and make that one be really generic. But
> the MPIC in -M mpc8544ds should behave exactly like an mpc8544 mpic.
> Whenever we fail to do so, we better fix the emulation to be accurate
> ;)
> >
> > What behaviors would "mpc8544" specify that "fsl mpic v2.0" would
> not?
>
> I don't know. If you say that mpc8544 == "fsl mpic v2.0" I'm more
> than happy to rename what we have. Simply calling it "MPIC" was
> definitely wrong, so I want with the one where I'm actually sure that
> what I'm implementing is correct, because I have the spec in front of
> me.
>
> My general approach to this problem would be that we for example get
> a p4080 board once. Once we get that, we want a p4080 MPIC. Then
> you'd sit down and model the p4080 MPIC. You realize that it's
> identical to the mpc8544 MPIC. So you either choose to instantiate an
> MPC8544 MPIC or you rename the model name to "fsl mpic v2.0".
p4080 would be "fsl mpic v4.2" -- unless you want to model an older
revision of p4080 in which case it could be v4.0 or v4.1. Note that
this example shows that the chip name can be even less specific than
the block version number.
> If you can assure me today that they will be identical, I'm more than
> happy to change the name today already :).
"fsl mpic v2.0" describes the MPIC that was integrated into the
mpc8544, as well as several other chips. In general you can look at
versioned SoC blocks as if they were a separate chip, except for
integration parameters, which should be qdev parameters. The only
integration parameters I can think of for MPIC are the number of CPUs
-- we already deviate from mpc8544 there to allow SMP -- and number of
interrupt sources, for which we can safely just implement the maximum,
or make it a qdev parameter if we really care about matching what
hardware reports in FRR[NIRQ] (this number is actually rather useless
to software the way Freescale implemented it).
-Scott
next prev parent reply other threads:[~2012-12-12 1:38 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 13:44 [Qemu-devel] [PATCH 00/19] OpenPIC refactoring and MSI support Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 01/19] openpic: Remove unused code Alexander Graf
2012-12-08 15:12 ` Andreas Färber
2012-12-08 15:14 ` Alexander Graf
2012-12-08 17:06 ` Hervé Poussineau
2012-12-08 13:44 ` [Qemu-devel] [PATCH 02/19] mpic: Unify numbering scheme Alexander Graf
2012-12-10 23:34 ` [Qemu-devel] [Qemu-ppc] " Scott Wood
2012-12-10 23:40 ` Scott Wood
2012-12-11 8:14 ` Alexander Graf
2012-12-11 17:39 ` Scott Wood
2012-12-08 13:44 ` [Qemu-devel] [PATCH 03/19] openpic: update to proper memory api Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 04/19] openpic: combine mpic and openpic src handlers Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 05/19] openpic: Convert subregions to memory api Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 06/19] openpic: combine mpic and openpic irq raise functions Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 07/19] openpic: merge mpic and openpic timer handling Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 08/19] openpic: combine openpic and mpic reset functions Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 09/19] openpic: unify memory api subregions Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 10/19] openpic: remove unused type variable Alexander Graf
2012-12-10 23:42 ` [Qemu-devel] [Qemu-ppc] " Scott Wood
2012-12-11 8:17 ` Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 11/19] openpic: convert simple reg operations to builtin bitops Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 12/19] openpic: rename openpic_t to OpenPICState Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 13/19] openpic: remove irq_out Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 14/19] openpic: convert to qdev Alexander Graf
2012-12-10 23:47 ` Scott Wood
2012-12-11 8:25 ` Alexander Graf
2012-12-11 17:47 ` Scott Wood
2012-12-12 0:56 ` Alexander Graf
2012-12-12 1:38 ` Scott Wood [this message]
2012-12-12 10:37 ` Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 15/19] openpic: make brr1 model specific Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 16/19] openpic: add Shared MSI support Alexander Graf
2012-12-11 0:36 ` [Qemu-devel] [Qemu-ppc] " Scott Wood
2012-12-11 8:10 ` Alexander Graf
2012-12-11 17:35 ` Scott Wood
2012-12-12 0:53 ` Alexander Graf
2012-12-12 1:42 ` Scott Wood
2012-12-12 11:12 ` Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 17/19] PPC: e500: Add " Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 18/19] PPC: e500: Declare pci bridge as bridge Alexander Graf
2012-12-08 13:44 ` [Qemu-devel] [PATCH 19/19] MSI-X: Fix endianness Alexander Graf
2012-12-08 22:41 ` Michael S. Tsirkin
-- strict thread matches above, loose matches on Subject: below --
2012-12-12 14:12 [Qemu-devel] [PATCH 00/19] OpenPIC refactoring and MSI support v2 Alexander Graf
2012-12-12 14:12 ` [Qemu-devel] [PATCH 14/19] openpic: convert to qdev Alexander Graf
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=1355276300.16025.5@snotra \
--to=scottwood@freescale.com \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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 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).