All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Denys Drozdov <denys.drozdov@globallogic.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Julien Grall <julien.grall@linaro.org>,
	JBeulich@suse.com, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen/arm: Fix rtds scheduler for arm
Date: Sat, 31 Jan 2015 10:50:56 +0000	[thread overview]
Message-ID: <1422701456.15317.2.camel@citrix.com> (raw)
In-Reply-To: <CAAbKni1deVy4fnb_kS6zDy7tcB162v3tJm1r1j-X7G1LJkeX4A@mail.gmail.com>

On Fri, 2015-01-30 at 18:19 +0200, Denys Drozdov wrote:

> since context_save executed right from IRQ level. The arm interrupt
> handling differs from x86. ARM is handling  context_saved with IRQ
> disabled in CPSR, though x86 has IRQs on. Thus it is failing on ASSERT
> inside spin_lock_irq when running on ARM. I guess it should work on
> x86, so this issue is ARM platform specific.

FWIW I was waiting for it to happen to a xen-unstable run but the latest
osstest gate run at
http://www.chiark.greenend.org.uk/~xensrcts/logs/33915/ which included
Dario's patches to rationalize the schedulr tests vs. archs also
resulted in a similar sounding failure on credit2:
http://www.chiark.greenend.org.uk/~xensrcts/logs/33915/test-armhf-armhf-xl-credit2/info.html
http://www.chiark.greenend.org.uk/~xensrcts/logs/33915/test-armhf-armhf-xl-credit2/serial-marilith-n5.txt

        [Thu Jan 29 13:29:28 2015](XEN) Assertion 'local_irq_is_enabled()' failed at spinlock.c:137
        [Thu Jan 29 13:29:28 2015](XEN) ----[ Xen-4.6-unstable  arm32  debug=y  Not tainted ]----
        [Thu Jan 29 13:29:28 2015](XEN) CPU:    0
        [Thu Jan 29 13:29:28 2015](XEN) PC:     00229734 _spin_lock_irq+0x18/0x94
        [Thu Jan 29 13:29:28 2015](XEN) CPSR:   200000da MODE:Hypervisor
        [Thu Jan 29 13:29:28 2015](XEN)      R0: 4000823c R1: 00000000 R2: 02faf080 R3: 600000da
        [Thu Jan 29 13:29:28 2015](XEN)      R4: 4000823c R5: 4000d000 R6: 4000823c R7: 002ee020
        [Thu Jan 29 13:29:28 2015](XEN)      R8: 4000f218 R9: 00000000 R10:0026fe08 R11:7ffcfefc R12:00000002
        [Thu Jan 29 13:29:28 2015](XEN) HYP: SP: 7ffcfeec LR: 0021f34c
        [Thu Jan 29 13:29:28 2015](XEN) 
        [Thu Jan 29 13:29:28 2015](XEN)   VTCR_EL2: 80003558
        [Thu Jan 29 13:29:28 2015](XEN)  VTTBR_EL2: 00010002b9ffc000
        [Thu Jan 29 13:29:28 2015](XEN) 
        [Thu Jan 29 13:29:28 2015](XEN)  SCTLR_EL2: 30cd187f
        [Thu Jan 29 13:29:28 2015](XEN)    HCR_EL2: 000000000038643f
        [Thu Jan 29 13:29:28 2015](XEN)  TTBR0_EL2: 00000000ff6e8000
        [Thu Jan 29 13:29:28 2015](XEN) 
        [Thu Jan 29 13:29:28 2015](XEN)    ESR_EL2: 00000000
        [Thu Jan 29 13:29:28 2015](XEN)  HPFAR_EL2: 0000000000000000
        [Thu Jan 29 13:29:28 2015](XEN)      HDFAR: 00000000
        [Thu Jan 29 13:29:28 2015](XEN)      HIFAR: 00000000
        [Thu Jan 29 13:29:28 2015](XEN) 
        [Thu Jan 29 13:29:28 2015](XEN) Xen stack trace from sp=7ffcfeec:
        [Thu Jan 29 13:29:28 2015](XEN)    0024d068 00000000 002f0328 7ffcff2c 0021f34c 00000000 00000000 6591e5c1
        [Thu Jan 29 13:29:28 2015](XEN)    00000000 4000d000 4000d000 00000000 00000000 00000000 00000000 7ffcff3c
        [Thu Jan 29 13:29:28 2015](XEN)    002285dc 00007fff 00000000 7ffcff4c 00242614 00000000 00000000 7ffcff54
        [Thu Jan 29 13:29:28 2015](XEN)    002427c8 00000000 00242b6c 00000000 ffffffff 28000000 00000000 00000000
        [Thu Jan 29 13:29:28 2015](XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        [Thu Jan 29 13:29:28 2015](XEN)    00000000 00000000 27a00000 000001d3 00000000 00000000 00000000 00000000
        [Thu Jan 29 13:29:28 2015](XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        [Thu Jan 29 13:29:28 2015](XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        [Thu Jan 29 13:29:28 2015](XEN)    00000000 00000000 00000000 00000000 00000000
        [Thu Jan 29 13:29:28 2015](XEN) Xen call trace:
        [Thu Jan 29 13:29:28 2015](XEN)    [<00229734>] _spin_lock_irq+0x18/0x94 (PC)
        [Thu Jan 29 13:29:28 2015](XEN)    [<0021f34c>] csched2_context_saved+0x44/0x18c (LR)
        [Thu Jan 29 13:29:28 2015](XEN)    [<0021f34c>] csched2_context_saved+0x44/0x18c
        [Thu Jan 29 13:29:28 2015](XEN)    [<002285dc>] context_saved+0x58/0x80
        [Thu Jan 29 13:29:28 2015](XEN)    [<00242614>] schedule_tail+0x148/0x2f0
        [Thu Jan 29 13:29:28 2015](XEN)    [<002427c8>] continue_new_vcpu+0xc/0x70
        [Thu Jan 29 13:29:28 2015](XEN)    [<00242b6c>] context_switch+0x74/0x7c
        [Thu Jan 29 13:29:28 2015](XEN) 
        [Thu Jan 29 13:29:28 2015](XEN) 
        [Thu Jan 29 13:29:28 2015](XEN) ****************************************
        [Thu Jan 29 13:29:28 2015](XEN) Panic on CPU 0:
        [Thu Jan 29 13:29:28 2015](XEN) Assertion 'local_irq_is_enabled()' failed at spinlock.c:137
        [Thu Jan 29 13:29:28 2015](XEN) ****************************************
        
I didn't have a chance yet to think about whether the ARM ctxt switch or
the scheduler(s) are in the wrong here...

Ian.

  parent reply	other threads:[~2015-01-31 10:50 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30 12:30 [PATCH] xen/arm: Fix rtds scheduler for arm Denis Drozdov
2015-01-30 12:38 ` Jan Beulich
2015-01-30 15:40   ` Denis Drozdov
2015-01-30 15:46     ` Julien Grall
2015-01-30 15:56       ` Andrew Cooper
2015-01-30 16:10         ` Julien Grall
2015-01-30 16:19           ` Denys Drozdov
2015-01-30 16:29             ` Julien Grall
2015-01-31 10:50             ` Ian Campbell [this message]
2015-02-02 10:49               ` Denys Drozdov
2015-02-02 11:14                 ` Ian Campbell
2015-02-02 11:40                   ` Jan Beulich
2015-02-02 12:16                     ` Ian Campbell
2015-02-02 12:59                       ` Julien Grall
2015-02-02 13:06                         ` Ian Campbell
2015-02-04 15:04                         ` Stefano Stabellini
2015-02-04 15:09                           ` Ian Campbell
2015-02-02 13:07                       ` Jan Beulich
2015-02-02 18:03                         ` Denis Drozdov
2015-02-04 15:13                           ` Ian Campbell
2015-02-04 16:19                             ` Dario Faggioli
2015-02-04 16:45                             ` Julien Grall
2015-02-04 17:13                               ` [PATCH] xen/arm: Call context_saved() with interrupts enabled during context switch Denis Drozdov
2015-02-05 12:48                                 ` Ian Campbell

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=1422701456.15317.2.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=denys.drozdov@globallogic.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=julien.grall@linaro.org \
    --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.