Skip to contentSkip to conversation

CVS [email protected]: linux

DISCUSSION Ralf Baechle 2 participants 3 messages Oct 3, 2001 2 messages not in the archive MIPS

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 8 lines · Maciej W. Rozycki
Quoted 5 lines

Modified files:
arch/mips/kernel: scall_o32.S sysmips.c

Log message:
Barf.

The new mips_atomic_set() doesn't mask interrupts in the non-ll/sc case.
Thus it may fail to keep coherency. Is it intentional?

Yes. Assuming do_page_fault did it's job successfully the address which has been passed as argument to sysmips() is now writable and thus we won't take any pagefaults.

There are two remaining failure scenarios which probably are't very interesting for practical usage. It's when an interrupt is accessing the same address. This could be fixed by disabling interrupts. The other case is missaligned words.

Quoted 1 line

Also the bad_stack exit point for the ll/sc case looks suspicient to me.

Indeed, the symbol deserves a better name. Cut'n'paste happens ;-)

Ralf

#3 lore raw
Quoted 12 lines · Ralf Baechle
Quoted 8 lines · Maciej W. Rozycki
Quoted 5 lines

Modified files:
arch/mips/kernel: scall_o32.S sysmips.c

Log message:
Barf.

The new mips_atomic_set() doesn't mask interrupts in the non-ll/sc case.
Thus it may fail to keep coherency. Is it intentional?

Quoted 9 lines

Yes. Assuming do_page_fault did it's job successfully the address which has been passed as argument to sysmips() is now writable and thus we won't take any pagefaults.

There are two remaining failure scenarios which probably are't very interesting for practical usage. It's when an interrupt is accessing the same address. This could be fixed by disabling interrupts. The other case is missaligned words.

And a third one - when you enable kernel preemption with the preemptable kernel patch. :-)

Jun

#4 lore raw
Quoted 2 lines · Jun Sun

And a third one - when you enable kernel preemption with the preemptable kernel patch. :-)

Other people's problem.

Ralf