Skip to contentSkip to conversation

Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-15

PATCH In review Wen-chien Jesse Sung 2 participants 6 messages Dec 1, 2004

lore
Share & tools
lore
#0 lore raw

Hi Ingo,

System hangs on my notebook with RT-0.7.31-15 when running "/sbin/hwclock --hctosys --localtime".
Cursor stops blinking, no response to SysRq-b.
But if I set "hardirq-preempt=0" in kernel command line, the problem is gone.

config is attached. Is there anything I can do to provide you more useful informantion?

Signature · 2 lines
Best Regards,
Wen-chien Jesse Sung
#1 lore raw
Quoted 2 lines · Wen-chien Jesse Sung

config is attached. Is there anything I can do to provide you more useful informantion?

hm, how did you generate this .config file? Could you send me your /proc/config.gz or the .config that you have in your kernel tree?

Ingo

#2 lore raw
Quoted 8 lines · Ingo Molnar
Quoted 2 lines · Wen-chien Jesse Sung

config is attached. Is there anything I can do to provide you more useful informantion?

hm, how did you generate this .config file? Could you send me your /proc/config.gz or the .config that you have in your kernel tree?

also, is this a vanilla -RT-2.6.10-rc2-mm3-V0.7.31-15 tree?

Ingo

#3 lore raw
Quoted 2 lines · Ingo Molnar

* Ingo Molnar <[email protected]> wrote:
also, is this a vanilla -RT-2.6.10-rc2-mm3-V0.7.31-15 tree?

Ah... Sorry, my fault, it's not a vanilla one.

I redo the test with a vanilla 2.6.10-rc2-mm3-V0.7.31-16 again, and it still hangs at hwclock. Here's the complete config file.

Signature · 2 lines
Best Regards,
Wen-chien Jesse Sung
#4 lore raw

PATCH 1/1 Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-17

Quoted 2 lines · Wen-chien Jesse Sung

I redo the test with a vanilla 2.6.10-rc2-mm3-V0.7.31-16 again, and it still hangs at hwclock. Here's the complete config file.

ok, could you try the -17 kernel i've just uploaded to the usual place:

http://redhat.com/~mingo/realtime-preempt/

does this fix the lockup?

i believe the lockup is an interesting side-effect of threading IRQ#0:
any code within the kernel that loops on jiffies will produce a lockup, because it starves the timer IRQ thread.

The RTC driver had two such places, but i also found one in the IRQ-autodetect code. We want to eliminate such code anyway, and a lockup is certainly an effective way to detect it ;)

to debug such lockups in the future you can do:

	echo 1 > /proc/sys/kernel/debug_direct_keyboard
	/sbin/hwclock ...

and use the sysrq keys to get a stack dump of the lockup. NOTE: dont use the keyboard in this mode for too long, it can lock up.

Ingo

#5 lore raw

Re: [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-17

Quoted 7 lines · Ingo Molnar
Quoted 2 lines

I redo the test with a vanilla 2.6.10-rc2-mm3-V0.7.31-16 again, and it still hangs at hwclock. Here's the complete config file.

ok, could you try the -17 kernel i've just uploaded to the usual place:

http://redhat.com/~mingo/realtime-preempt/

does this fix the lockup?

Yes, hwclock works fine with -17. Thanks! :)

Signature · 2 lines
Best Regards,
Wen-chien Jesse Sung