public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
From: Kirill Tkhai <tkhai@yandex.ru>
To: Allen Pais <allen.pais@oracle.com>,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"davem@davemloft.net" <davem@davemloft.net>
Subject: Re: Cyclictest results on Sparc64 with PREEMPT_RT
Date: Wed, 12 Feb 2014 01:44:31 +0400	[thread overview]
Message-ID: <193151392155071@web21h.yandex.ru> (raw)
In-Reply-To: <52F4E00F.9010009@oracle.com>



07.02.2014, 17:31, "Allen Pais" <allen.pais@oracle.com>:
> Sebastian,
>
>>  This is a dead lock. Whatever lock you go after, you are already
>>  holding it in this context / hackbench. I don't know how you got from
>>  perfctr_irq() to do_exit() but you shouldn't do this in hardirq
>>  context.
>>
>>  But calling do_exit() is probably error recovery since it would kill
>>  hackbench and I assume it wasn't done yet.
>>  I see also tl0_irq15() in your stack trace. This is that evil NMI that
>>  checks if the system is stalling. I think that you stuck in
>>  flush_tsb_user() on that raw_lock and somebody is not letting it go and
>>  so you spin for ever. Maybe full lockdep shows you some informations
>>  about wrong context locking etc.
>
> Yes, there's someone's holding the lock and not releasing it in
> flush_tsb_user(). I'll check with lockdep.

I'm looking at arch_enter_lazy_mmu_mode()/arch_leave_lazy_mmu_mode().
It looks like it's assumed they are called with preemption disabled.
In !RT case they are called after spin_lock() which gives preemption
disabled. In RT the spinlocks are mutexes and there is preemption.
I think we need something like migrate_disable() here.

I have no sparc right now and did not check this carefully. Check if
you are interested :)

Kirill

> Thanks,
> Allen
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2014-02-11 21:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-27  8:20 Cyclictest results on Sparc64 with PREEMPT_RT Allen Pais
2014-02-07 12:35 ` Sebastian Andrzej Siewior
2014-02-07 12:41   ` Allen Pais
2014-02-07 13:25     ` Sebastian Andrzej Siewior
2014-02-07 13:30       ` Allen Pais
2014-02-11 21:44         ` Kirill Tkhai [this message]

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=193151392155071@web21h.yandex.ru \
    --to=tkhai@yandex.ru \
    --cc=allen.pais@oracle.com \
    --cc=bigeasy@linutronix.de \
    --cc=davem@davemloft.net \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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