* kernel thread and NULL active_mm (MPC860)
@ 2004-05-14 15:20 Lee Rhodes
2004-05-14 21:33 ` Dan Malek
0 siblings, 1 reply; 3+ messages in thread
From: Lee Rhodes @ 2004-05-14 15:20 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
Can anyone tell me what would cause my kernel thread to have a NULL
active_mm? The thread is waking up from a down_interruptible (it's a DPC
thread) and, in doing so, it triggers the BUG_ON on line 559 of sched.c.
I'm just wondering if anyone can provide me with some theories on what might
be going wrong. The same could runs fine on an i386 Linux desktop machine.
I'm only encountering this issue when I port it to MPC860.
Thanks for any tips,
Lee
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kernel thread and NULL active_mm (MPC860)
2004-05-14 15:20 kernel thread and NULL active_mm (MPC860) Lee Rhodes
@ 2004-05-14 21:33 ` Dan Malek
0 siblings, 0 replies; 3+ messages in thread
From: Dan Malek @ 2004-05-14 21:33 UTC (permalink / raw)
To: Lee Rhodes; +Cc: linuxppc-embedded
On May 14, 2004, at 11:20 AM, Lee Rhodes wrote:
> Can anyone tell me what would cause my kernel thread to have a NULL
> active_mm?
Good question. The active_mm is used by lazy TLB management, which
we don't do on PowerPC. We don't use this data structure field for any
of our MMU processing. It's managed by generic code in the scheduler
and process management functions, there isn't any PowerPC specific
code that uses or changes it. I thought at one time I traced a path
through
the scheduler that would cause active_mm to be NULL for kernel threads
under certain conditions, but since we didn't use it, I didn't care.
That
code always make my head hurt.
It would help if you indicate what versions of kernel you are using in
both cases and where you got them.
Thanks.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kernel thread and NULL active_mm (MPC860)
@ 2004-05-17 14:18 Lee Rhodes
0 siblings, 0 replies; 3+ messages in thread
From: Lee Rhodes @ 2004-05-17 14:18 UTC (permalink / raw)
To: linuxppc-embedded
Hi Dan,
Thanks for taking up the gauntlet.
>It would help if you indicate what versions of kernel you are using in both
>cases and where you got them.
On my PPC-based hardware, I'm using 2.4.19 which I got from kernel.org. The
same code works fine on an i386-based desktop machine running various
kernels including 2.4.18, 2.4.20 and 2.4.21.
Lee
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-17 14:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14 15:20 kernel thread and NULL active_mm (MPC860) Lee Rhodes
2004-05-14 21:33 ` Dan Malek
-- strict thread matches above, loose matches on Subject: below --
2004-05-17 14:18 Lee Rhodes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).