NatSemi SC1200 timer problems

Christer Weinigel (wingel@acolyte.hack.org)
Thu, 21 Mar 2002 17:23:12 +0100 (CET)


Hi,

I'm seeing some very strange problems with a NatSemi SC1200 based
system. The problems is that the code to read the PIT counter
sometimes returns the bytes swapped:

outb(0, 0x43);
count = inb(0x40);
count |= inb(0x40) << 8;

This sometimes gives 0x822e instead of 0x2e82 that is reasonable. I
first thought this was a bug in another driver, but sometimes the
counter read from the timer would be 0xd5dd and that value should be
impossible to get, so I'm starting to suspect the hardware.

Besides this, I have a report that the TSC sometimes jumps ahead, so
that the reported time of day will be about 7 seconds more than it
should be.

Does any of this sound familar?

Hiroshi MIURA <miura@da-cha.org> has a patch for a Cyrix CX5520 i8254
timer bug on his web page, but I have been unable to find any
information on the net on what the bug actually is. Could you tell me
a bit more about it? I'm trying to figure out if it has reappeared in
the SC1200 or if this is a completely new problem.

Alan, i think did a patch to disable the TSC on the MediaGX and I have
seen posts by you where you say about the MediaGX that "It reports a
TSC but the TSC is unreliable at least in certain strange
circumstances". Do you refer to the TSC being stopped or turned off
on halt or suspend or is it a completely different problem? Could you
please tell me what kind of problems you saw?

Regards,
Christer (pulling his hair in confusion)

-- 
"Just how much can I get away with and still go to heaven?"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/