From: Bill Huey (hui) <bhuey@lnxw.com>
To: Bill Huey <bhuey@lnxw.com>
Cc: Amit Shah <amit.shah@codito.com>, Ingo Molnar <mingo@elte.hu>,
"K.R. Foley" <kr@cybsft.com>,
Mark_H_Johnson@raytheon.com,
Florian Schmidt <mista.tapas@gmx.net>,
linux-kernel@vger.kernel.org, Lee Revell <rlrevell@joe-job.com>,
Rui Nuno Capela <rncbc@rncbc.org>, Adam Heath <doogie@debian.org>,
Thomas Gleixner <tglx@linutronix.de>,
Michal Schmidt <xschmi00@stud.feec.vutbr.cz>,
Fernando Pablo Lopez-Lezcano <nando@ccrma.stanford.edu>,
Karsten Wiese <annabellesgarden@yahoo.de>,
Gunther Persoons <gunther_persoons@spymac.com>,
emann@mrv.com, Shane Shrybman <shrybman@aei.ca>,
Stefan Schweizer <sschweizer@gmail.com>
Subject: Re: BUG with 0.7.27-11, with KGDB
Date: Wed, 17 Nov 2004 01:19:02 -0800 [thread overview]
Message-ID: <20041117091902.GA31039@nietzsche.lynx.com> (raw)
In-Reply-To: <20041117082620.GA23226@nietzsche.lynx.com>
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
On Wed, Nov 17, 2004 at 12:26:20AM -0800, Bill Huey wrote:
> On Wed, Nov 17, 2004 at 01:29:33PM +0530, Amit Shah wrote:
> > Initializing Cryptographic API
> > kgdb <20030915.1651.33> : port =3f8, IRQ=4, divisor =1
> > BUG: scheduling while atomic: swapper/0x00000001/1
> > caller is schedule+0x3f/0x13c
> > [<c01041f4>] dump_stack+0x23/0x27 (20)
> > [<c02ce307>] __sched_text_start+0xc97/0xce7 (116)
> > [<c02ce396>] schedule+0x3f/0x13c (36)
> > [<c02ce60a>] wait_for_completion+0x95/0x137 (96)
> > [<c0138cd8>] kthread_create+0x22a/0x22c (368)
> > [<c0145a30>] start_irq_thread+0x4f/0x83 (32)
> > [<c01453ec>] setup_irq+0x55/0x140 (36)
> > [<c0145655>] request_irq+0x90/0x107 (44)
> > [<c01e1bc1>] kgdb_enable_ints_now+0xa5/0xb0 (28)
> > [<c03bfb89>] kgdb_enable_ints+0x2c/0x63 (16)
> > [<c03a8a23>] do_initcalls+0x31/0xc6 (32)
> > [<c01003bb>] init+0x87/0x19a (28)
> > [<c0101329>] kernel_thread_helper+0x5/0xb (1047322644)
>
> Woops, it means that KGDB needs a direct irq and not an irq-thread.
> Let me see if I can work up something tonight before I head to bed.
It could be horribly wrong for a number of reasons (wait for Ingo
for a proper irq code fix and additional support), but try this:
[attachment]
It should be a good hint as to how to fix this problem.
bill
[-- Attachment #2: t2 --]
[-- Type: text/plain, Size: 1238 bytes --]
diff -rwu linux.voluntary.virgin/kernel/irq/manage.c linux.voluntary/kernel/irq/manage.c
--- linux.voluntary.virgin/kernel/irq/manage.c 2004-11-16 16:39:24.000000000 -0800
+++ linux.voluntary/kernel/irq/manage.c 2004-11-17 00:39:46.000000000 -0800
@@ -362,6 +363,11 @@
}
#endif
+ if (irqflags & SA_NODELAYFORCED) {
+ irqflags &= ~SA_NODELAYFORCED;
+ irqflags |= SA_NODELAY;
+ }
+
action = kmalloc(sizeof(struct irqaction), GFP_ATOMIC);
if (!action)
return -ENOMEM;
--- linux.voluntary.virgin/arch/i386/lib/kgdb_serial.c 2004-11-16 16:39:24.000000000 -0800
+++ linux.voluntary/arch/i386/lib/kgdb_serial.c 2004-11-17 00:40:04.000000000 -0800
@@ -435,7 +435,7 @@
#endif
ints_disabled = request_irq(gdb_async_info->state->irq,
gdb_interrupt,
- IRQ_T(gdb_async_info),
+ IRQ_T(gdb_async_info) | SA_NODELAYFORCED,
"KGDB-stub", NULL);
intprintk(("KGDB: request_irq returned %d\n", ints_disabled));
}
--- linux.voluntary.virgin/include/linux/irq.h 2004-11-16 16:39:24.000000000 -0800
+++ linux.voluntary/include/linux/irq.h 2004-11-17 00:27:29.000000000 -0800
@@ -42,6 +42,7 @@
*/
#ifndef SA_NODELAY
# define SA_NODELAY 0x01000000
+# define SA_NODELAYFORCED 0x02000000
#endif
/*
next prev parent reply other threads:[~2004-11-17 9:19 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-16 16:09 [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm1-V0.7.27-3 Mark_H_Johnson
2004-11-16 18:43 ` Ingo Molnar
2004-11-16 18:41 ` K.R. Foley
2004-11-16 19:51 ` K.R. Foley
2004-11-16 21:24 ` Ingo Molnar
2004-11-16 21:20 ` Florian Schmidt
2004-11-16 21:32 ` Florian Schmidt
2004-11-16 22:42 ` Ingo Molnar
2004-11-16 22:04 ` Florian Schmidt
2004-11-16 23:11 ` Ingo Molnar
2004-11-16 22:55 ` Florian Schmidt
2004-11-16 23:29 ` Florian Schmidt
2004-11-17 0:06 ` john cooper
2004-11-17 11:23 ` Florian Schmidt
2004-11-17 12:28 ` Ingo Molnar
2004-11-17 13:02 ` Ingo Molnar
2004-11-17 12:14 ` Florian Schmidt
2004-11-17 13:41 ` Ingo Molnar
2004-11-17 12:59 ` Florian Schmidt
2004-11-17 13:35 ` Paul Ma
2004-11-17 13:45 ` Ingo Molnar
2004-11-17 13:00 ` Florian Schmidt
2004-11-17 15:01 ` Ingo Molnar
2004-11-17 6:19 ` [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm1-V0.7.27-11 ???
2004-11-16 21:42 ` [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm1-V0.7.27-3 K.R. Foley
2004-11-16 21:47 ` Florian Schmidt
2004-11-16 22:31 ` Ingo Molnar
2004-11-16 21:33 ` Florian Schmidt
2004-11-16 21:40 ` Florian Schmidt
2004-11-16 23:03 ` Ingo Molnar
2004-11-17 7:59 ` BUG with 0.7.27-11, with KGDB Amit Shah
2004-11-17 8:26 ` Bill Huey
2004-11-17 9:19 ` Bill Huey [this message]
2004-11-17 12:05 ` Ingo Molnar
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=20041117091902.GA31039@nietzsche.lynx.com \
--to=bhuey@lnxw.com \
--cc=Mark_H_Johnson@raytheon.com \
--cc=amit.shah@codito.com \
--cc=annabellesgarden@yahoo.de \
--cc=doogie@debian.org \
--cc=emann@mrv.com \
--cc=gunther_persoons@spymac.com \
--cc=kr@cybsft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mista.tapas@gmx.net \
--cc=nando@ccrma.stanford.edu \
--cc=rlrevell@joe-job.com \
--cc=rncbc@rncbc.org \
--cc=shrybman@aei.ca \
--cc=sschweizer@gmail.com \
--cc=tglx@linutronix.de \
--cc=xschmi00@stud.feec.vutbr.cz \
/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
Powered by JetHome