[fusion] get_mmu_context() in mpc8xx

Studencki Pawel pawel.studencki at siemens.com
Mon Aug 29 17:10:06 CEST 2005


hello,

have you tested your linux mpc8xx port with hackbench? running it in a
script like this one:

while true; do dd if=/dev/null of=bigfile bs=1048000 count=1024 2>/dev/null;
done &
while true; do ./hackbench 1; done & 


in one of patches discussed on ppc-linux mailing list you protect
destroy_context() with preempt_disable() and preempt_enable().
But it does nothing when working with adeos. ADEOS uses get_mmu_context(mm)
in (include/nucleus/asm-ppc/system.h)
and this code can preempt native linux call. 

I try to protect destroy_context() with:

#ifdef CONFIG_ADEOS_CORE
        adeos_hw_local_irq_disable(); 
#endif


and

#ifdef CONFIG_ADEOS_CORE
        adeos_hw_local_irq_enable(); 
#endif

I'm testing it now, but it doesn't seems to work as I thought...could
someone reproduce this problem with his test application + hackbench (mpc8xx
+ 2.6.10 + adeos)?

best regards
Pawel



 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hackbench.c
Type: application/octet-stream
Size: 5447 bytes
Desc: not available
Url : http://mail.rtai.org/pipermail/rtai/attachments/20050829/6d97d7d3/attachment.obj 


More information about the Rtai mailing list