All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Andrii Tseglytskyi <andrii.tseglytskyi@globallogic.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Xen 4.5 random freeze question
Date: Fri, 14 Nov 2014 16:35:53 +0000	[thread overview]
Message-ID: <54662F69.8060700@linaro.org> (raw)
In-Reply-To: <CAH_mUMPgAyZgg7X2aSp9dsjmc7oX3nKBkqwPQucX0TnD6zNKAQ@mail.gmail.com>

On 11/14/2014 04:22 PM, Andrii Tseglytskyi wrote:
> On Fri, Nov 14, 2014 at 6:15 PM, Stefano Stabellini
> <stefano.stabellini@eu.citrix.com> wrote:
>> On Fri, 14 Nov 2014, Andrii Tseglytskyi wrote:
>>> On Fri, Nov 14, 2014 at 5:22 PM, Stefano Stabellini
>>> <stefano.stabellini@eu.citrix.com> wrote:
>>>> On Fri, 14 Nov 2014, Andrii Tseglytskyi wrote:
>>>>> On Fri, Nov 14, 2014 at 4:35 PM, Stefano Stabellini
>>>>> <stefano.stabellini@eu.citrix.com> wrote:
>>>>>> On Fri, 14 Nov 2014, Andrii Tseglytskyi wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I observe system freeze on latest xen/master branch.
>>>>>>>
>>>>>>> My setup is:
>>>>>>>
>>>>>>> - Jacinto 6 evm board (OMAP5)
>>>>>>> - Latest Xen 4.5.0-rc2 as hypervisor
>>>>>>> - Linux 3.8 as dom0, running on 2 vcpus
>>>>>>> - Android 4.3 as domU (running on Linux kernel 3.8, 2 vcpus)
>>>>>>> - XSM feature is disabled
>>>>>>> - gcc version 4.7.3 20130328 (prerelease) (crosstool-NG
>>>>>>> linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) as cross
>>>>>>> compiler
>>>>>>>
>>>>>>> Freeze occurs in random moment of time during creation of domU domain.
>>>>>>> Even Xen console may be not available after freeze.
>>>>>>> Can someone suggest - what it can be? Maybe some weak places in new
>>>>>>> code? Maybe new gic, which was reworked a lot or something else?
>>>>>>>
>>>>>>> Thank you in advance for any suggestions.
>>>>>>
>>>>>> Is this really 3.8 or 3.18?
>>>>>
>>>>> We have 3.8 in both dom0 and domU
>>>>>
>>>>>> 3.8 is pretty old and doesn't have any of
>>>>>> the fixes to be able to safely do dma involving guest pages to
>>>>>> non-coherent devices.
>>>>>
>>>>> This is a good point. Now we are migrating to 3.12 kernel in dom0. But
>>>>> Android will remain on 3.8. Will it help ?
>>>>> Maybe you can point me to any tree with proper DMA fixes? Note: if you
>>>>> are talking about SWIOTLB - we have your latest one, retrieved from
>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/sstabellini/xen.git
>>>>> branch:swiotlb-xen-9.1
>>>>
>>>> The last and most stable series is:
>>>>
>>>> http://marc.info/?l=linux-kernel&m=141579241729749&w=2
>>>>
>>>
>>> Thanks  - I'll try this series anyway.
>>>
>>>> But thinking more about this, I doubt that it is a dma problem, because
>>>> you would most probably see various kind of error messages, not a
>>>> freeze.
>>>>
>>>
>>> Agree.
>>>
>>>>
>>>>>> Where are you storing the guest disk images?
>>>>>
>>>>> SATA drive, dedicated to dom0, its controller has its own DMA
>>>>
>>>> Are they on file or on lvm volumes?
>>>
>>> Images are on file.
>>>
>>> Also note - freeze depends on system load. It reproduces more
>>> frequently if I start Android + QNX + all frontends/backends drivers.
>>> Starting Android only without any addition drivers works more less
>>> stable. It looks like issue is reproduced when domU starts in parallel
>>> with backends drivers in dom0.
>>> But the same works fine with old Xen 4.4.
>>
>> In my experience freezes like the one you are describing are due to
>> interrupt related bugs or deadlocks. Both of them are hard to track
>> down. If you can reproduce it reliably maybe you could bisect it.
> 
> Agree. I suspect that new gic series impacts on this. In very few
> moments when xen console is available after freeze I see that dom0
> code stacks around kernel lock_release() or  handle_IPI() functions

I would be surprised that the next GIC series impact this code as the
next driver is only compiled for arm64 (GICv3 doesn't exist on arm32).
Though, there was some refactoring.

The interrupt management has also been reworked for Xen 4.5 to avoid
maintenance interrupt. I would give a look on this part.

Regards,

-- 
Julien Grall

  reply	other threads:[~2014-11-14 16:35 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-14 14:25 Xen 4.5 random freeze question Andrii Tseglytskyi
2014-11-14 14:35 ` Stefano Stabellini
2014-11-14 14:43   ` Andrii Tseglytskyi
2014-11-14 15:22     ` Stefano Stabellini
2014-11-14 15:39       ` Andrii Tseglytskyi
2014-11-14 15:49         ` Julien Grall
2014-11-14 15:58           ` Andrii Tseglytskyi
2014-11-14 16:15         ` Stefano Stabellini
2014-11-14 16:22           ` Andrii Tseglytskyi
2014-11-14 16:35             ` Julien Grall [this message]
2014-11-14 16:40               ` Andrii Tseglytskyi
2014-11-17 15:47                 ` Andrii Tseglytskyi
2014-11-17 16:39                   ` Stefano Stabellini
2014-11-17 17:05                     ` Andrii Tseglytskyi
2014-11-17 18:02                       ` Stefano Stabellini
2014-11-18 10:41                         ` Andrii Tseglytskyi
2014-11-18 11:31                           ` Andrii Tseglytskyi
2014-11-18 12:35                             ` Andrii Tseglytskyi
2014-11-18 15:39                               ` Stefano Stabellini
2014-11-18 16:11                                 ` Andrii Tseglytskyi
2014-11-18 16:14                                   ` Stefano Stabellini
2014-11-18 16:18                                     ` Andrii Tseglytskyi
2014-11-18 16:46                                       ` Andrii Tseglytskyi
2014-11-18 17:51                                         ` Stefano Stabellini
2014-11-19  9:38                                           ` Andrii Tseglytskyi
2014-11-19 11:12                                             ` Stefano Stabellini
2014-11-19 11:16                                               ` Andrii Tseglytskyi
2014-11-19 11:42                                                 ` Stefano Stabellini
2014-11-19 11:57                                                   ` Andrii Tseglytskyi
2014-11-19 11:59                                                     ` Stefano Stabellini
2014-11-19 12:37                                                       ` Andrii Tseglytskyi
2014-11-19 14:52                                                         ` Stefano Stabellini
2014-11-19 15:27                                                           ` Andrii Tseglytskyi
2014-11-19 15:41                                                             ` Stefano Stabellini
2014-11-19 16:01                                                               ` Andrii Tseglytskyi
2014-11-19 16:09                                                                 ` Andrii Tseglytskyi
2014-11-19 16:13                                                                   ` Stefano Stabellini
2014-11-19 16:29                                                                     ` Andrii Tseglytskyi
2014-11-19 16:32                                                                       ` Andrii Tseglytskyi
2014-11-19 16:43                                                                         ` Andrii Tseglytskyi
2014-11-19 16:52                                                                           ` Stefano Stabellini
2014-11-19 16:50                                                                       ` Stefano Stabellini
2014-11-19 17:03                                                                         ` Andrii Tseglytskyi
2014-11-19 17:07                                                                           ` Stefano Stabellini
2014-11-19 17:37                                                                             ` Andrii Tseglytskyi
2014-11-19 17:42                                                                               ` Stefano Stabellini
2014-11-19 17:47                                                                                 ` Andrii Tseglytskyi
2014-11-19 18:06                                                                                   ` Andrii Tseglytskyi
2014-11-19 18:14                                                                                     ` Stefano Stabellini
2014-11-19 18:26                                                                                       ` Julien Grall
2014-11-19 18:31                                                                                         ` Stefano Stabellini
2014-11-19 19:24                                                                                           ` Andrii Tseglytskyi
2014-11-20 10:28                                                                                             ` Stefano Stabellini
2014-11-20 11:15                                                                                               ` Julien Grall
2014-11-20 16:06                                                                                                 ` Andrii Tseglytskyi
2014-11-20 16:15                                                                                                   ` Stefano Stabellini
2014-11-20 16:43                                                                                                     ` Andrii Tseglytskyi
2014-11-19 17:11                                                                           ` Andrii Tseglytskyi
2014-11-19 17:14                                                                             ` Stefano Stabellini
2014-11-19 12:13                                                   ` Ian Campbell
2014-11-19 12:17                                                     ` Stefano Stabellini
2014-11-19 12:23                                                       ` Julien Grall
2014-11-19 12:40                                                         ` Andrii Tseglytskyi
2014-11-19 13:26                                                           ` Julien Grall
2014-11-19 13:30                                                             ` Andrii Tseglytskyi
2014-11-19 14:05                                                               ` Julien Grall

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=54662F69.8060700@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=andrii.tseglytskyi@globallogic.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.