From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgDm8-0006h2-Jb for qemu-devel@nongnu.org; Sun, 27 Sep 2015 11:22:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgDm5-0000o8-GG for qemu-devel@nongnu.org; Sun, 27 Sep 2015 11:22:04 -0400 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:34629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgDm5-0000nx-8q for qemu-devel@nongnu.org; Sun, 27 Sep 2015 11:22:01 -0400 Received: by lache4 with SMTP id he4so15102274lac.1 for ; Sun, 27 Sep 2015 08:22:00 -0700 (PDT) References: <56065D4E.1060102@gmail.com> From: "mar.krzeminski" Message-ID: <56080996.105@gmail.com> Date: Sun, 27 Sep 2015 17:21:58 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Triggering two arm processors from same interrupt (A9 and M3) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite , Peter Maydell , Alistair Francis , "Edgar E. Iglesias" Cc: "qemu-devel@nongnu.org Developers" W dniu 26.09.2015 o 19:46, Peter Crosthwaite pisze: > On Sat, Sep 26, 2015 at 9:08 AM, Peter Maydell wrote: >> On 26 September 2015 at 01:54, mar.krzeminski wrote: >>> Hello again, >>> >>> My next question is still related with M3 and A9 board what I want to model. >>> This time my peripheral has some interrupts that are connected both to A9 >>> processor(gic), >>> and M3 processor (nvic). Additionally those interrupts have same number. >>> Currently I use only two in my model so I added to my device another >>> interrupt that does the same, >>> but are connected to different processor, and it seem that works. >>> Is there any way that I can do it better - to connect one interrupt source >>> to two receivers (A9 and M3)? >> This is what qemu_irq_split() is for. Thanks, I even looked at this... I am not used to open source or such complicated and undocumented code. That is why dummy question like this came. >> > Yes this is right. > > There was the same problem with R5 and A9 double interrupt wiring, and > to reduce the verbosity, I implemented automatic IRQ splitting in the > qdev layer: > > https://github.com/Xilinx/qemu/blob/pub/2015.2.plnx/hw/core/qdev.c > > Line 461. Not sure what others think of this, but it would be nice to > just double connect on machine level which is an intuitive API for > this behaviour. It would make short work of bringing the zynqmp R5 > intc online. > > Regards, > Peter Thanks for this. It seem that my platform is similar to zynqmp. Important difference for me is that I have simpler use cases - I need to boot from M3, and that code starts two A9s or start linux in A9 using kernel parameter. Current issue is that when my machine has enabled A9 and M3 (M3 became core 0), and I want to boot linux kernel from this A9 core console is dead. Anyway thanks for help. >> -- PMM >>