Thread (13 messages) 13 messages, 5 authors, 2008-03-13

Re: PPC upstream kernel ignored DABR bug

From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-11-28 12:29:48

On Wednesday 28 November 2007, Jan Kratochvil wrote:
Please be aware DABR works fine if the same code runs just 1 (always) or
2 (sometimes) threads. =C2=A0It starts failing with too many threads runn=
ing:
=20
$ ./dabr-lost
TID 32725: DABR 0x1001279f NIP 0xfecf41c
TID 32726: DABR 0x1001279f NIP 0xfecf41c
TID 32725: hitting the variable
variable found =3D -1, caught TID =3D 32725
TID 32726: hitting the variable
variable found =3D -1, caught TID =3D 32726
The kernel bug did not get reproduced - increase THREADS.
=20
As I did not find any code in that kernel touching DABRX its value should=
 not
be dependent on the number of threads running.
=20
Right, this is a different problem from the one reported by Uli.
=46rom what I can tell, your problem is that you set the DABR only
in one thread, so the other threads don't see it. DABR is saved
in the thread_struct, so setting it in one thread doesn't have
an impact on any other thread.

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help