Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-14 Thread Andrii Tseglytskyi
On Fri, Nov 14, 2014 at 5:22 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Fri, 14 Nov 2014, Andrii Tseglytskyi wrote: On Fri, Nov 14, 2014 at 4:35 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Fri, 14 Nov 2014, Andrii Tseglytskyi wrote: Hi, I

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-14 Thread Andrii Tseglytskyi
Hi Julien, On Fri, Nov 14, 2014 at 5:49 PM, Julien Grall julien.gr...@linaro.org wrote: Hi Andrii, On 11/14/2014 03:39 PM, Andrii Tseglytskyi wrote: Also note - freeze depends on system load. It reproduces more frequently if I start Android + QNX + all frontends/backends drivers. Starting

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-14 Thread Andrii Tseglytskyi
that it was initially tested without SMP. GICv3 has no impacts for sure. The interrupt management has also been reworked for Xen 4.5 to avoid maintenance interrupt. I would give a look on this part. Thanks, this may help. Regards, Andrii Regards, -- Julien Grall -- Andrii Tseglytskyi

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-17 Thread Andrii Tseglytskyi
to be injected is an hardware irq (p-desc != NULL), set GICH_LR_HW. Do not set GICH_LR_MAINTENANCE_IRQ. I'm going to debug it deeply. Stefano - may be you have a feeling what it can be ? Regards, Andrii On Fri, Nov 14, 2014 at 6:40 PM, Andrii Tseglytskyi andrii.tseglyts...@globallogic.com wrote: Hi

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-18 Thread Andrii Tseglytskyi
Hi Stefano, On Mon, Nov 17, 2014 at 8:02 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Mon, 17 Nov 2014, Andrii Tseglytskyi wrote: Hi Stefano, Thank you for your answer. On Mon, Nov 17, 2014 at 6:39 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-18 Thread Andrii Tseglytskyi
OK, I see that GICH_V2_LR_MAINTENANCE_IRQ must always be set and everything works fine The following 2 patches fixes xen/master for my platform. Stefano, could you please take a look to these changes? commit 3628a0aa35706a8f532af865ed784536ce514eca Author: Andrii Tseglytskyi andrii.tseglyts

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-18 Thread Andrii Tseglytskyi
will be executed: lr_reg |= GICH_V2_LR_MAINTENANCE_IRQ; inside gicv2_update_lr() function regards, Andrii On Tue, Nov 18, 2014 at 5:39 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Tue, 18 Nov 2014, Andrii Tseglytskyi wrote: OK, I see that GICH_V2_LR_MAINTENANCE_IRQ must always

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-18 Thread Andrii Tseglytskyi
GICH_LR_HW for hardware irqs. Also testing on 394b7e587b05d0f4a5fd6f067b38339ab5a77121 would avoid other potential bugs introduced later. On Tue, 18 Nov 2014, Andrii Tseglytskyi wrote: What if I try on top of current master branch the following code: diff --git a/xen/arch/arm/gic-v2.c b/xen/arch

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-18 Thread Andrii Tseglytskyi
this console. (XEN) gic.c:617:d0v1 trying to inject irq=2 into d0v0, when it is still lr_pending On Tue, Nov 18, 2014 at 6:18 PM, Andrii Tseglytskyi andrii.tseglyts...@globallogic.com wrote: OK got it. Give me a few mins On Tue, Nov 18, 2014 at 6:14 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
, LRs full, not injecting irq=%u into d%dv%d\n, +p-irq, v-domain-domain_id, v-vcpu_id); +continue; +} spin_lock_irqsave(gic.lock, flags); gic_set_lr(i, p, GICH_LR_PENDING); On Tue, 18 Nov 2014, Andrii Tseglytskyi wrote: Hi Stefano

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
On Wed, Nov 19, 2014 at 1:12 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Wed, 19 Nov 2014, Andrii Tseglytskyi wrote: Hi Stefano, Thank you for your support. You are right - with latest change you've proposed I got a continuous prints during platform hang: (XEN) gic.c

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
tried, hang still occurs with this change Regards, Andrii -- Andrii Tseglytskyi | Embedded Dev GlobalLogic www.globallogic.com ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
test if you have some specific scenario. Regards, -- Julien Grall -- Andrii Tseglytskyi | Embedded Dev GlobalLogic www.globallogic.com ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
On Wed, Nov 19, 2014 at 5:41 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Wed, 19 Nov 2014, Andrii Tseglytskyi wrote: Hi Stefano, On Wed, Nov 19, 2014 at 4:52 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Wed, 19 Nov 2014, Andrii Tseglytskyi wrote

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
On Wed, Nov 19, 2014 at 6:13 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Wed, 19 Nov 2014, Andrii Tseglytskyi wrote: On Wed, Nov 19, 2014 at 6:01 PM, Andrii Tseglytskyi andrii.tseglyts...@globallogic.com wrote: On Wed, Nov 19, 2014 at 5:41 PM, Stefano Stabellini

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
) Inflight irq=2 lr=255 (XEN) Pending irq=2 On Wed, Nov 19, 2014 at 6:29 PM, Andrii Tseglytskyi andrii.tseglyts...@globallogic.com wrote: On Wed, Nov 19, 2014 at 6:13 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Wed, 19 Nov 2014, Andrii Tseglytskyi wrote: On Wed, Nov 19, 2014 at 6

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
BTW - shouldn't this flag GICH_LR_MAINTENANCE_IRQ be set after maintenance interrupt requesting ? On Wed, Nov 19, 2014 at 6:32 PM, Andrii Tseglytskyi andrii.tseglyts...@globallogic.com wrote: Gic dump during interrupt requesting: (XEN) GICH_LRs (vcpu 0) mask=f (XEN)HW_LR[0]=3a1f (XEN

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
On Wed, Nov 19, 2014 at 7:42 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Wed, 19 Nov 2014, Andrii Tseglytskyi wrote: Hi Stefano, On Wed, Nov 19, 2014 at 7:07 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: I think that's OK: it looks like that on your

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-19 Thread Andrii Tseglytskyi
19 лист. 2014 20:32, користувач Stefano Stabellini stefano.stabell...@eu.citrix.com написав: On Wed, 19 Nov 2014, Julien Grall wrote: On 11/19/2014 06:14 PM, Stefano Stabellini wrote: That's right, the maintenance interrupt handler is not called, but it doesn't do anything so we are

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-20 Thread Andrii Tseglytskyi
julien.gr...@linaro.org wrote: On 11/20/2014 10:28 AM, Stefano Stabellini wrote: On Wed, 19 Nov 2014, Andrii Tseglytskyi wrote: 19 лист. 2014 20:32, користувач Stefano Stabellini stefano.stabell...@eu.citrix.com написав: On Wed, 19 Nov 2014, Julien Grall wrote: On 11/19/2014 06:14 PM, Stefano

Re: [Xen-devel] Xen 4.5 random freeze question

2014-11-20 Thread Andrii Tseglytskyi
OK - I see. thanks a lot. On Thu, Nov 20, 2014 at 6:15 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Already posted: http://marc.info/?l=xen-develm=141648092100568 Ian hasn't provided any feedback yet. On Thu, 20 Nov 2014, Andrii Tseglytskyi wrote: I think I'll debug