From: hyl <heyongli@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Linux guest domain with two vnets bound to the same vswitch experiences hung in bootup (sun_netraT5220)
Date: Mon, 12 Oct 2009 16:23:47 +0800 [thread overview]
Message-ID: <505766fa0910120123l51b57b8aja30a5d0fd1225c0d@mail.gmail.com> (raw)
In-Reply-To: <20091009.162120.164441279.davem@davemloft.net>
2009/10/10 David Miller <davem@davemloft.net>:
> From: David Miller <davem@davemloft.net>
> Date: Fri, 09 Oct 2009 15:08:29 -0700 (PDT)
>
>> Thank you for this bug report and patch, I am looking at
>> it now.
>
> I'm trying to figure out how the deadlock can even occur,
> and I've failed so far, please help me :-)
>
> See, we always take the VIO and LDC locks in the same order
> (VIO then LDC) and always with interrupts disabled, so it is
> not possible to deadlock.
>
> The only way we could deadlock is if:
>
> 1) There is some path that takes the LDC lock before the VIO one.
>
> 2) There is some path that takes either lock with interrupts
> enabled.
>
> And I cannot find any such case.
David
Thank you, i try to figure out the path which lead to system hang. i got the
output log :(the same output run18350079 times and going forever ... )
ctl: 17, data:0 err:0, abr:0 runcc:18350079 CPUId:0, event: 0x00000004
qall Trace:
s[00000000004acb30] _handle_IRQ_event+0x50/0x120
C[00000000004acc70] handle_IRQ_event+0x70/0x120
[00000000004af14c] handle_fasteoi_irq+0xcc/0x180
[000000000042ee54] handler_irq+0x134/0x160
[00000000004208b4] tl0_irq5+0x14/0x20
[00000000004acbac] _handle_IRQ_event+0xcc/0x120
[00000000004acc70] handle_IRQ_event+0x70/0x120
[00000000004af14c] handle_fasteoi_irq+0xcc/0x180
[000000000042ee54] handler_irq+0x134/0x160
[00000000004208b4] tl0_irq5+0x14/0x20
[00000000004acbac] _handle_IRQ_event+0xcc/0x120
[00000000004acc70] handle_IRQ_event+0x70/0x120
[00000000004af14c] handle_fasteoi_irq+0xcc/0x180
[000000000042ee54] handler_irq+0x134/0x160
[00000000004208b4] tl0_irq5+0x14/0x20
[00000000007e7ffc] _spin_unlock_irqrestore+0x3c/0x60
>runcc:18350079 CPUId:0, event: 0x00000004
the runcc is the count of times ldx_rx been run. dump code:
static irqreturn_t ldc_rx(int irq, void *dev_id)
{
....
atomic64_inc(&runcc);
....
printk(KERN_INFO"runcc:%lld CPUId:%d, event: 0x%08x\n",
atomic_read(&runcc), smp_processor_id(),event_mask);
dump_stack();
}
look the console output, system seems hang on a live lock:
tl0_irq5 triggered just after the irq been re-enable in the handler
of irq5: the ldc_rx.
i have no idea about the t10_irq5, just guess that: the special
configuration lead to t10_irq5 been triggered continuously, and
the trigger condition can not been cleared.
Pauli He
>
> It might help if you run your test case with lockdep enabled. It will
> find such deadlocks and report them precisely to the kernel logs.
>
> Thank you!
>
next prev parent reply other threads:[~2009-10-12 8:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-23 4:37 hyl
2009-09-23 7:40 ` hyl
2009-09-24 2:03 ` hyl
2009-10-09 22:08 ` David Miller
2009-10-09 23:21 ` David Miller
2009-10-12 8:23 ` hyl [this message]
2009-10-12 10:26 ` David Miller
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=505766fa0910120123l51b57b8aja30a5d0fd1225c0d@mail.gmail.com \
--to=heyongli@gmail.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=sparclinux@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®