Continual reading from the PowerPc time base register is not stable

Csdncannon csdncannon at gmail.com
Fri Mar 26 13:01:20 EST 2010


I enabled the printing of all values. There is bigger gap between two
reading, it seems isync bring to performance drop.
Could you elaborate what does "closer that 64 tick together" mean?

You can see the attached log, the 0x40 is not always set.

Thanks
Gino

2010/3/26 Segher Boessenkool <segher at kernel.crashing.org>

> > After trying the new code with "isync" and unsigned long long convertion,
> > this problem doesn't happen(I tested for several minutes).
>
> Do you now ever get two consecutive time readings that are closer
> that 64 tick together?  If not, it's simply hiding the problem.
>
> Do you ever now read a value that does not have the bit with value
> 0x40 set?
>
>
> Segher
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20100326/59d2e51b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log
Type: application/octet-stream
Size: 4465 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20100326/59d2e51b/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timebase.c
Type: application/octet-stream
Size: 1642 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20100326/59d2e51b/attachment-0003.obj>


More information about the Linuxppc-dev mailing list