Received: from eggs.gnu.org ([2001:4830:134:3::10]:49900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWVYC-0003lX-PT for qemu-devel@nongnu.org; Thu, 18 Feb 2016 15:51:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWVY7-0006Eh-CP for qemu-devel@nongnu.org; Thu, 18 Feb 2016 15:51:48 -0500 Received: from zose-mta02.web4all.fr ([185.49.20.43]:47731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWVY7-0006D6-2f for qemu-devel@nongnu.org; Thu, 18 Feb 2016 15:51:43 -0500 References: <4499d69ec1326c07481e9d8178e64b63f9748706.1454967766.git.jcd@tribudubois.net> <56C38B52.7080904@tribudubois.net> <56C398FA.8010204@tribudubois.net> From: Jean-Christophe DUBOIS Message-ID: <56C62EDA.3010307@tribudubois.net> Date: Thu, 18 Feb 2016 21:51:38 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------010705060604000206060609" Subject: Re: [Qemu-devel] [PATCH v2 7/9] i.MX: Add i.MX6 SOC implementation. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Peter Crosthwaite This is a multi-part message in MIME format. --------------010705060604000206060609 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Le 16/02/2016 22:57, Peter Maydell a =C3=A9crit : > On 16 February 2016 at 21:47, Jean-Christophe DUBOIS > wrote: >> In QEMU, other Cortex A9 (Versatilepb.c, Exynos, Zynq ...) are also se= tting >> has_el3 to false ... > So these generally are the "legacy" platforms which were > added before we ever had EL3 support in QEMU. For them it's hard > to turn the EL3 support on for the board even if in theory > it ought to be on, because we don't know what users are > running on it that we might break. With a new to QEMU board > we have an opportunity to get it right from the start. OK, so is the "highbank" the only Qemu Cortex A9 board supporting el3 yet= ? > > -kernel I would expect to work, though, at least if the > only issue is the interrupt controller setup. It seems > worth investigating why it goes wrong. Well, I can boot uniprocessor (-smp 1) without trouble but if I turn=20 logs on (guest_errors,unimp) I am getting a lot of * gic_dist_writeb: Bad offset 38x (a few at startup) * Ignoring attempt to switch CPSR_A flag from non-secure world with SCR.AW bit clear (a lot) * Ignoring attempt to switch CPSR_F flag from non-secure world with SCR.FW bit clear (a few) I am not sure if this is a problem. Do you have some opinion on this? When I turn SMP (-smp 2 or more), I am unable to complete the boot. As=20 soon as my secondary cpu is started QEMU will continue to boot "very=20 slowly" but doesn't get to the linux user prompt overnight. JC > > thanks > -- PMM > --------------010705060604000206060609 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Le 16/02/2016 22:57, Peter Maydell a =C3=A9crit=C2=A0:
On 16 February 2016 at 21:47, Jean-Christophe DUBOIS
&l=
t;jcd@tribudubois.net> wrote:
In QEMU, other Cortex A9 (Versatilepb.c, Exynos, Z=
ynq ...) are also setting
has_el3 to false ...
So these generally are the "legacy" platforms which were
added before we ever had EL3 support in QEMU. For them it's hard
to turn the EL3 support on for the board even if in theory
it ought to be on, because we don't know what users are
running on it that we might break. With a new to QEMU board
we have an opportunity to get it right from the start.

OK, so is the "highbank" the only Qemu Cortex A9 board supporting el3 yet?


-kernel I would expect to work, though, at least if the
only issue is the interrupt controller setup. It seems
worth investigating why it goes wrong.

Well, I can boot uniprocessor (-smp 1) without trouble but if I turn logs on (guest_errors,unimp) I am getting a lot of
  • gic_dist_writeb: Bad offset 38x (a few at startup)
  • Ignoring attempt to switch CPSR_A flag from non-secure world with SCR.AW bit clear (a lot)
  • Ignoring attempt to switch CPSR_F flag from non-secure world with SCR.FW bit clear (a few)

I am not sure if this is a problem. Do you have some opinion on this?

When I turn SMP (-smp 2 or more), I am unable to complete the boot. As soon as my secondary cpu is started QEMU will continue to boot "very slowly" but doesn't get to the linux user prompt overnight.

JC


thanks
-- PMM


--------------010705060604000206060609--