From: Jan Kiszka <jan.kiszka@domain.hid>
To: Axel Beierlein <belatronix@domain.hid>
Cc: "Xenomai-help@domain.hid" <Xenomai-help@domain.hid>
Subject: Re: [Xenomai-help] System hangs in/after rtdm_lock_put_irqrestore
Date: Wed, 29 Aug 2007 16:42:42 +0200 [thread overview]
Message-ID: <46D585E2.70902@domain.hid> (raw)
In-Reply-To: <op.txtr31btt06gyn@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]
Axel Beierlein wrote:
> what could it be that an simple rt_dev_open locks up my system when it
> calls rtdm_lock_put_irqrestore?
>
> [...]
> if (rtdm_irq_request(&ctx->irq_handle,
> MPC5xxx_PSC2_IRQ,
> rt_psc_interrupt,
> RTDM_IRQTYPE_SHARED | RTDM_IRQTYPE_EDGE,
> context->device->proc_name,
> ctx))
> {
> printk ("psc5200B.c: request_irq() failed\n");
> return -1;
> }
>
> rtdm_irq_enable(&ctx->irq_handle);
>
> rtdm_lock_get_irqsave(&ctx->lock, lock_ctx);
>
> ctx->imr_status = MPC5xxx_PSC_IMR_RXRDY;
> out_be16(&psc->mpc5xxx_psc_imr, ctx->imr_status);
Let me guess: this line arms the related IRQ source at hw level, no?
>
> rtdm_lock_put_irqrestore(&ctx->lock, lock_ctx);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Here i get the crash
Because it enabled local IRQ delivery again, and the system ends up in
an IRQ storm, or some endless loop in the IRQ handler, or some crash
related to IRQ handling. Still just guessing...
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-08-29 14:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 14:34 [Xenomai-help] System hangs in/after rtdm_lock_put_irqrestore Axel Beierlein
2007-08-29 14:42 ` Jan Kiszka [this message]
[not found] ` <op.txuzl2o9t06gyn@domain.hid>
2007-08-30 6:55 ` Jan Kiszka
2007-08-30 8:36 ` Axel Beierlein
2007-08-30 8:58 ` Jan Kiszka
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=46D585E2.70902@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=Xenomai-help@domain.hid \
--cc=belatronix@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.