From: Scott Wood <scottwood@freescale.com>
To: <smitha.vanga@wipro.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: BUG: scheduling while atomic:
Date: Wed, 5 Oct 2011 12:43:29 -0500 [thread overview]
Message-ID: <4E8C9741.9010401@freescale.com> (raw)
In-Reply-To: <40631E9A2581F14BA60888C87A76A1FE014A35@HYD-MKD-MBX4.wipro.com>
On 10/05/2011 06:24 AM, smitha.vanga@wipro.com wrote:
> Hi Scoot,
>
> When my ISR gets exeuted I get a below BUG. Could let me what I am
> doing wrong in the ISR?
>
>
> BUG: scheduling while atomic: IRQ-20/0x0fff0000/108
> Call Trace:
> [C3AEFEC0] [C0007CCC] (unreliable)
> [C3AEFEF0] [C0017F10]
> [C3AEFF00] [C0268818]
> [C3AEFF50] [C0017F44]
> [C3AEFF60] [C0018044]
> [C3AEFF70] [C0046A90]
> [C3AEFF90] [C0046D90]
> [C3AEFFC0] [C0032AFC]
> [C3AEFFF0] [C000F5AC]
This trace is useless without debugging symbols from your kernel image.
Please enable kallsyms.
> Below is the code :
> *My ISR*
>
> irqreturn_t cpld_irq_handler(int irq, void * dev_id, struct pt_regs *regs)
>
> {
>
> wake_up(&cpld_intr_wait);
>
> atomic_inc(&cpld_intr_data); /* incrementing this will indicate the
> poll() that the interrupt is occured */
None of this should schedule when run in interrupt context.
The only thing that comes to mind is possibly wake_up(), if you're
running the RT patch but somehow the interrupt isn't in a thread.
> return 0;
Not related, but return IRQ_HANDLED;
-Scott
next prev parent reply other threads:[~2011-10-05 17:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-05 11:24 BUG: scheduling while atomic: smitha.vanga
2011-10-05 16:05 ` David Laight
2011-10-05 17:43 ` Scott Wood [this message]
2011-10-08 12:51 ` BUG: " smitha.vanga
2011-10-14 4:14 ` I2c-cpm drievr not working smitha.vanga
2011-10-14 5:42 ` Bhushan Bharat-R65777
2011-10-14 10:02 ` I2c-cpm driver " smitha.vanga
2011-10-17 3:58 ` Bhushan Bharat-R65777
2011-10-17 8:17 ` smitha.vanga
2011-10-18 4:05 ` Bhushan Bharat-R65777
2011-10-18 8:05 ` IRQ2 and IRQ 3 smitha.vanga
-- strict thread matches above, loose matches on Subject: below --
2009-09-20 11:54 BUG: scheduling while atomic: Kelly Bowa
2009-09-20 12:35 ` Kelly Bowa
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=4E8C9741.9010401@freescale.com \
--to=scottwood@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=smitha.vanga@wipro.com \
/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.