qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Mian Yousaf Kaukab <yrehan@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Update the id of Vexpress Cortex-A9 from r0p0 to r0p1?
Date: Sun, 6 Oct 2013 21:10:40 +0900	[thread overview]
Message-ID: <CAFEAcA9aSCanX-mgST7PSnkGyh32iRtSwm0zr3i-wMeeUXsyXQ@mail.gmail.com> (raw)
In-Reply-To: <CAC_HJnyx+TiMqAf=5D1Vq-rFVAe3bzDFcqR0j7X1+64JSjxdGA@mail.gmail.com>

On 6 October 2013 20:12, Mian Yousaf Kaukab <yrehan@gmail.com> wrote:
> Default vexpress_defconfig does not boot on qemu vexpress-a9 target. In kernel,
> vexpress uart detection for DEBUG_LL is done using Coretex-A9 id. Only r0p1 is
> mapped to legacy map. All other variants are mapped to RS1/aseries map.

Detecting the board model based on the CPU revision-and-patchlevel is a
horrible hack and I wish the kernel guys would drop it.

Really the kernel should provide a way to specify (in the device tree
or otherwise)
where the UART is, in a way that the early kernel code can easily get at to use
for its earlyprint uart.

> As qemu vexpress-a9 target reports Cortex-A9 version as r0p0, kernel maps uart0
> at address 0x1c090000 instead of 0x10009000. This result in kernel indefinitely
> waiting for uart during boot. A kernel patch to fix this was discussed
> in the following link
> http://comments.gmane.org/gmane.linux.ports.arm.kernel/269657 .
> In this discussion Pawel Moll mentioned that V2P-CA9 has Cortex-A9 r0p1 and not
> r0p0. If this is correct, to fix this and similar future problems, shouldn't
> qemu Cortex-A9 be updated to version r0p1?

The trouble is that QEMU models CPUs and boards separately and
doesn't model every single variant/patchlevel of each CPU, because
that would be a fairly large amount of extra effort.

> So what will it take to update the id of Cortex-A9 in qemu from r0p0 to r0p1?

If we're updating, why would we update only to r0p1 and not to the most
recent rev/patchlevel?

The major thing we need is a mechanism for allowing at least the
board, and possibly also the user, to specify properties of the cpu
like "which rev/patchlevel is it" (being able to specify "do we have an
fpu/neon/etc" is a similar thing).

If we had that it would not be too hard to then have the vexpress-a9
board specify which rev/patchlevel to use. But we don't have the
mechanism currently.

-- PMM

  reply	other threads:[~2013-10-06 12:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-06 11:12 [Qemu-devel] Update the id of Vexpress Cortex-A9 from r0p0 to r0p1? Mian Yousaf Kaukab
2013-10-06 12:10 ` Peter Maydell [this message]
2013-10-06 17:26   ` Andreas Färber
2013-10-07  0:57     ` Peter Maydell
2013-10-07 20:17   ` Mian Yousaf Kaukab
2013-10-07 23:06     ` Peter Maydell

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=CAFEAcA9aSCanX-mgST7PSnkGyh32iRtSwm0zr3i-wMeeUXsyXQ@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=yrehan@gmail.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 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).