From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: adeos-main <adeos-main@gna.org>
Subject: Re: [Adeos-main] [BUG] ipipe_sync_stage deadlock
Date: Thu, 08 May 2008 23:00:46 +0200 [thread overview]
Message-ID: <482369FE.6070508@domain.hid> (raw)
In-Reply-To: <482368B8.9070008@domain.hid>
Philippe Gerum wrote:
> Jan Kiszka wrote:
>> I love KVM - not only because I'm heavily hacking on it now, also
>> because it is so easy to trigger various kinds of guest issues with
>> it (SMP host + threaded virtual CPUs => true SMP guest - and if you
>> want to watch fancy things happen, just load one host core).
>>
>> Here is one I found that way:
>>
>> void fastcall __ipipe_sync_stage(unsigned long syncmask)
>> {
>> [ ... ]
>> while ((mask = (ipipe_this_cpudom_var(irqpend_himask) & syncmask)) != 0) {
>> level = __ipipe_ffnz(mask);
>>
>> while ((submask = ipipe_this_cpudom_var(irqpend_lomask)[level]) != 0) {
>> rank = __ipipe_ffnz(submask);
>> irq = (level << IPIPE_IRQ_ISHIFT) + rank;
>>
>> if (test_bit(IPIPE_LOCK_FLAG, &ipd->irqs[irq].control)) {
>> __clear_bit(rank, &ipipe_this_cpudom_var(irqpend_lomask)[level]);
> - continue;
> + goto rpm_needs_more_neurons;
>> }
>>
>> __clear_bit(rank, &ipipe_this_cpudom_var(irqpend_lomask)[level]);
>>
> + rpm_needs_more_neurons:
>> if (ipipe_this_cpudom_var(irqpend_lomask)[level] == 0)
>> __clear_bit(level, &ipipe_this_cpudom_var(irqpend_himask));
>> [ ... ]
>>
Of course, I'm not saying this is the real fix, but that just points at a
possible issue. I do want those 100 points on my score card.
>> Who sees the deadlock? 100 points for the right answer! But be quick,
>> I'm already hacking on a fix. :)
>>
>> Jan
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Adeos-main mailing list
>> Adeos-main@domain.hid
>> https://mail.gna.org/listinfo/adeos-main
>
>
--
Philippe.
next prev parent reply other threads:[~2008-05-08 21:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-08 20:26 [Adeos-main] [BUG] ipipe_sync_stage deadlock Jan Kiszka
2008-05-08 20:55 ` Philippe Gerum
2008-05-08 21:00 ` Philippe Gerum [this message]
2008-05-08 21:13 ` Jan Kiszka
2008-05-08 21:23 ` Philippe Gerum
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=482369FE.6070508@domain.hid \
--to=rpm@xenomai.org \
--cc=adeos-main@gna.org \
--cc=jan.kiszka@domain.hid \
/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.