Continual reading from the PowerPc time base register is not stable
Segher Boessenkool
segher at kernel.crashing.org
Fri Mar 26 19:52:38 EST 2010
[please do not top-post]
>> 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?
> I enabled the printing of all values. There is bigger gap between two
> reading, it seems isync bring to performance drop.
Yes exactly, which is to be expected.
> Could you elaborate what does "closer that 64 tick together" mean?
It means I cannot type -- "closer than 64 ticks".
My concern was that the sync;isync thing might slow down things
so much that you always get readings 64 or more cycles apart.
But you don't.
> You can see the attached log, the 0x40 is not always set.
Yes indeed. Could you post the relevant piece if disassembly from
your original binary (the one that has the problem)? Or send me the
binary (not to the mailing list), I'll do it then.
Segher
More information about the Linuxppc-dev
mailing list