Skip to contentSkip to conversation

kernel thread and NULL active_mm (MPC860)

DISCUSSION Lee Rhodes 2 participants 2 messages May 14, 2004

lore
Share & tools
lore

Lee Rhodes

author
#0 lore raw

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/

#1 lore raw
Quoted 2 lines · Lee Rhodes

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/