Received: from eggs.gnu.org ([2001:4830:134:3::10]:34641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWecS-0001Bf-Eg for qemu-devel@nongnu.org; Fri, 19 Feb 2016 01:32:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWecO-0007fj-D0 for qemu-devel@nongnu.org; Fri, 19 Feb 2016 01:32:48 -0500 Received: from zose-mta03.web4all.fr ([185.49.20.44]:52361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWecO-0007fM-3e for qemu-devel@nongnu.org; Fri, 19 Feb 2016 01:32:44 -0500 References: <4499d69ec1326c07481e9d8178e64b63f9748706.1454967766.git.jcd@tribudubois.net> <56C38B52.7080904@tribudubois.net> <56C398FA.8010204@tribudubois.net> <56C62EDA.3010307@tribudubois.net> From: Jean-Christophe DUBOIS Message-ID: <56C6B707.8040001@tribudubois.net> Date: Fri, 19 Feb 2016 07:32:39 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable 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 Le 18/02/2016 22:46, Peter Maydell a =C3=A9crit : > On 18 February 2016 at 20:51, Jean-Christophe DUBOIS > wrote: >> 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? > Yep. We don't have many A9 boards and most of those we do have > are in the 'legacy' bucket. > >> -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 l= ogs 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) > This would only be a problem if your kernel needed to use FIQ, > I think. It is a standard linux (4.5-rc1) so it should not use FIQ I guess. Now why is the linux code trying to do things it is not allowed to do in=20 its security level ? Or would Linux expect the secure world to set these bits before running i= t? > >> 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. > Does SMP work with EL3 not enabled, or is this a different bug? If I set has_el3 to false, I can boot the 4 cores without problem. With=20 has_el3 set to true (default value) I am getting the above behavior=20 (boot OK in uniprocessor mode, and misbehaving if -smp >=3D 2). JC > > thanks > -- PMM >