Re: [Patch] tsc-disable_A5

john stultz (johnstul@us.ibm.com)
17 Jun 2002 18:31:49 -0700


On Mon, 2002-06-17 at 17:48, Kurt Garloff wrote:
> Hi Ben,
>
> On Fri, Jun 14, 2002 at 02:53:07PM -0400, Benjamin LaHaise wrote:
> > On Fri, Jun 14, 2002 at 11:35:26AM -0700, john stultz wrote:
> > > This results in sequential calls to gettimeofday to return
> > > non-sequential time values. By disabling the TSCs on these boxes, it
> > > forces gettimeofday to use the PIC clock instead, fixing the problem.
> >
> > This seems to be yet another reason for supporting per-CPU TSC
> > calibration, as that would fix machines with different speed cpus, too.
>
> I agree.
> Maybe the patch I once made to support CPUs with different speeds can serve
> as a starting point?
>
> http://www.uwsg.iu.edu/hypermail/linux/kernel/0203.1/0481.html
>
> However, one would need to make sure that all CPUs occasionally do receive
> timer interrupts, otherwise your TSC may overflow. Depending on your
> hardware (APICs), this might be an issue. I've been told that Fosters do
> misbehave ...

Hmmm, I've skimmed your patch before, but really only just for the
lowest common features bit. I didn't quite grasp it last time, but I
really like what you're doing there. TSC overflow can be almost
eliminated if we use the full 64bits, but if we can round robin the
interrupts, that would help compensate for any skew in the clocks.

Thanks for the pointer!
-john

-
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/