Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* SX164 Clock Problem
@ 1998-03-15 12:35 Jay.Estabrook
  1998-03-16  9:49 ` Ladislav Zejda
  1998-03-19 20:28 ` Loic Prylli
  0 siblings, 2 replies; 9+ messages in thread
From: Jay.Estabrook @ 1998-03-15 12:35 UTC (permalink / raw)
  To: axp-list


RE: Problem with AlphaPC164-SX (aka SX164 or SX) clock running 2X or 1/2X

I'm trying to get to the bottom of this problem, but having trouble
duplicating the symptoms others have seen.

My configuration, which shows no problem, is:

	kernel:		sx164.gz as found on RH 5.0 CD
	MILO:		sx164    as found on RH 5.0 CD
	AlphaBIOS:	5.62-1 (Sep 26 1997, 11:41:34)

The above AlphaBIOS is available at:

    ftp://ftp.digital.com/pub/Digital/info/semiconductor/alpha/AB5621-F.zip

You can check the exact revision your machine has installed by:

1. use F2 to enter "Setup" when the console is booting
2. select the "About AlphaBIOS..." menu item
3. the top line should indicate version and build date, as above.

Please, could the people that have seen the problem, whether they've found a
workaround or not, upgrade their AlphaBIOS if necessary, and run the above
MILO and kernel, and report to me whether they still see the problem with
all those things in place?

PLEASE! Report to me (Jay.Estabrook@digital.com) and *NOT* to axp-list!!!!!

Thanks; I'll also inquire whether this has been a problem reported to our
field service...

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Migration Tools - LINUX Project
Digital Equipment Corp.                 (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2              enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
-------------------------------------------------------------------------------





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SX164 Clock Problem
  1998-03-15 12:35 SX164 Clock Problem Jay.Estabrook
@ 1998-03-16  9:49 ` Ladislav Zejda
  1998-03-19 20:28 ` Loic Prylli
  1 sibling, 0 replies; 9+ messages in thread
From: Ladislav Zejda @ 1998-03-16  9:49 UTC (permalink / raw)
  To: Jay.Estabrook; +Cc: axp-list

> RE: Problem with AlphaPC164-SX (aka SX164 or SX) clock running 2X or 1/2X

> My configuration, which shows no problem, is:
>
>       kernel:         sx164.gz as found on RH 5.0 CD
>       MILO:           sx164    as found on RH 5.0 CD
>       AlphaBIOS:      5.62-1 (Sep 26 1997, 11:41:34)
>

 Dear Jay!

 This combination works well for me too. But keeping the same Milo  and
AlphaBIOS and compiling my kernel (not 2.0.30) I immediately  have  the
clock problem. The kernels I tried and have the problem are 2.0.32  and
2.0.33    as    taken     from     ftp.kernel.org     together     with
alpha-patches-2.0.32-0.1. I do NOT experience  any  random  slowing  or
speeding of the clock during about two weeks of  run  time.  It  either
goes at the right speed (2.0.30) or the 2X (2.0.32 and  2.0.33).  Note,
that I always do the cold boot (power off). Therefore I believe it's  a
software (kernel)  problem.  I  have  RH  5.0  installation  with  some
updates.

 Do you need any additional information?

 Cheers,
             Ladislav Zejda
             lada@fock.usc.edu


^ permalink raw reply	[flat|nested] 9+ messages in thread

* SX164 Clock Problem
  1998-03-15 12:35 SX164 Clock Problem Jay.Estabrook
  1998-03-16  9:49 ` Ladislav Zejda
@ 1998-03-19 20:28 ` Loic Prylli
  1998-03-21 13:38   ` Wim van Dorst
  1 sibling, 1 reply; 9+ messages in thread
From: Loic Prylli @ 1998-03-19 20:28 UTC (permalink / raw)
  To: axp-list


Some people had problems with AlphaPC164-SX (aka SX164 or SX) clock
running 2X or 1/2X.

It would be interesting to see if it is the same problem that is
described in 
http://archive.redhat.com/axp-list/1998-February/0438.html

I have written a small program to check if it the case,
could some people that writes in the thread:
 "Self-build PC164SX-kernel:clock twice too fast" run it?

This programs relies on the facts that gettimeofday increments at each
clock tick and use the rpcc counter as a time base, it build a kind of
histogram of the delay (in rpcc cycles) between timer ticks (in fact
gettimeofday increments). It detects the case where several timer
ticks occurs consecutively (which was the problem for me).


Here was the ouput on our PWS500A that was running 1.15 to 1.25 too
fast depending on ethernet and disk activity.

   pws500% checktick 500
   63% nbtick=1,duration=0.98 millisec (rpcc cycles/488500)
   19% nbtick=1,duration=1.02 millisec (rpcc cycles/488500)
   0.52% nbtick=2,duration=0.98 millisec (rpcc cycles/488500)
   17% nbtick=2,duration=1.02 millisec (rpcc cycles/488500)


We can count the first two lines together: 
r 82% (63+19) of the timer ticks  were normal (about 1millisec)

The other 18% times gettimeofday switched, the kernel timer routine
was called twice (meaning the interrupt status of the chipset has not
been resetted by the end of the handler).


After a patch that check this condition at the beginning of the timer
handler our clock is very stable at 1024 Hz, the output of the program
below is now:
   pws500% checktick 500
   microsec per tick=977
   100% nbtick=1,duration=3.98 millisec (rpcc cycles/97700)
   0.0489% nbtick=3,duration=3.3 millisec (rpcc cycles/97700)

The program will generally only work properly on an idle system.
Lines that have a very low percentage should be ignored (artefacts due
to multitasking).

The program takes as argument the frequency of the processor to have
a reliable time reference (but this only used to do the proper
conversion in millisec), if you pass no value or the wrong value the
 numbers of millisec should be taken to a multiplication close.

Cheers,

Loic

Here is the prog:

#include <stdio.h>
#include <sys/timex.h>
#include <assert.h>


static volatile inline unsigned rdtsc()
{
  unsigned l;
  __asm__ volatile("rpcc %0": "=r" (l));
  return l;
}


#include <time.h>

long waittick(void) {
  struct timeval t1,t2;
  gettimeofday(&t1,NULL);
  while (gettimeofday(&t2,NULL),t1.tv_usec == t2.tv_usec);
  return t2.tv_sec * 1000000L + t2.tv_usec;
}

#define MAXTICK 10
#define STATSIZE 100


int stats[MAXTICK][STATSIZE];
int freqref;

unsigned statnb(long t)
{
  unsigned res;
  /* the first quarter correspond to tick that last less than one
     millisec == 1000*freqreq rpcc cycles */
  res = t * (STATSIZE/4) / (freqref*977);
  if (res >= STATSIZE -1)
    res = STATSIZE -1;
  return res;
}

void print_stat(void)
{
  int i,j;
  long sum=0;
  for (i=0;i<MAXTICK;i++)
    for (j=0;j<STATSIZE;j++)
      sum += stats[i][j];
  for (i=0;i<MAXTICK;i++) {
    for (j=0;j<STATSIZE;j++) {
      if (stats[i][j]) {
        printf("%.3g%% nbtick=%d,duration=%.3g millisec (rpcc
cycles/%d)\n",
               stats[i][j]*100.0/(double)sum,i,(j+0.5)/(double)(STATSIZE/4),freqref*977);
      }
    }
  }
}


  
int main(int argc,char*argv[])
{
  struct timex ti;
  long tick;
  long start;
  ti.modes = 0;
  adjtimex(&ti);
  tick = ti.tick;

  if (argc >= 2)
    freqref = atoi(argv[1]);
  if (freqref == 0)
    freqref = 100;

  printf("microsec per tick=%ld\n",tick);
  start = waittick();
  while (1) {
    long d1,d2,t,rest;
    unsigned nbtick;
    unsigned t1,t2;
    unsigned range;
    d1 = waittick();
    t1 = rdtsc();
    while (1) {
      d2 = waittick();
      t2 = rdtsc();
      nbtick = (d2 - d1 + tick / 2) / tick;
      rest = d2 - d1 - nbtick*tick;
      if (abs(rest) > tick/10) {
        static int count;
        fprintf(stderr,"gettimeofday increments not a multiple of
tick:%d tick+%ld microsec\n",nbtick,rest);
        if (count++ > 10)
          exit(1);
        break;
      }
      if (nbtick >= MAXTICK) {
        fprintf(stderr,"tick ignored\n");
        break;
      }
      if (t2 < t1)
        t = t2 + (1L<<32) - t1;
      else
        t = t2 - t1;
      range = statnb(t);
      //      printf("range=%u\n",range);
      assert(nbtick >= 0 && nbtick < MAXTICK && range >= 0 && range <
STATSIZE);
      stats[nbtick][range] += 1;
      if (d2 > start + 2000000)
        goto end;
      d1 = d2;
      t1 = t2;
    }
  }
 end:
  print_stat();
  return 0;
}


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SX164 Clock Problem
  1998-03-19 20:28 ` Loic Prylli
@ 1998-03-21 13:38   ` Wim van Dorst
  1998-03-21 21:09     ` Loic Prylli
  1998-03-23 11:43     ` Ladislav Zejda
  0 siblings, 2 replies; 9+ messages in thread
From: Wim van Dorst @ 1998-03-21 13:38 UTC (permalink / raw)
  To: axp-list

Hello Loic and others,

   } I have written a small program to check if it the case,
   } could some people that writes in the thread:
   }  "Self-build PC164SX-kernel:clock twice too fast" run it?

I have run the program on my PC164SX several times with:
- a self-built 2.0.33 kernel
- the stock rh5 sx164 kernel (as Jay Estabrook suggested)

The former give me the double timespeed (`date`=2*`clock`)
and the latter gives me the normal timespeed (`date`=`clock`).

Here are the results for the self-built kernel:

microsec per tick=977
0.072% nbtick=1,duration=0.78 millisec (rpcc cycles/520741)
0.072% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
0.072% nbtick=1,duration=0.9 millisec (rpcc cycles/520741)
33.9% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
18.3% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
0.072% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
0.072% nbtick=1,duration=1.22 millisec (rpcc cycles/520741)
12.9% nbtick=2,duration=0.98 millisec (rpcc cycles/520741)
34.5% nbtick=2,duration=1.02 millisec (rpcc cycles/520741)
0.072% nbtick=2,duration=1.1 millisec (rpcc cycles/520741)

microsec per tick=977
0.079% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
0.079% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
0.079% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
0.079% nbtick=1,duration=0.94 millisec (rpcc cycles/520741)
34.8% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
3.24% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
19% nbtick=2,duration=0.98 millisec (rpcc cycles/520741)
42.3% nbtick=2,duration=1.02 millisec (rpcc cycles/520741)
0.079% nbtick=2,duration=1.06 millisec (rpcc cycles/520741)
0.079% nbtick=2,duration=1.14 millisec (rpcc cycles/520741)
0.079% nbtick=2,duration=1.26 millisec (rpcc cycles/520741)
0.079% nbtick=2,duration=1.3 millisec (rpcc cycles/520741)

microsec per tick=977
0.0634% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
0.0634% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
41.2% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
28.7% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
0.0634% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
6.34% nbtick=2,duration=0.98 millisec (rpcc cycles/520741)
23.5% nbtick=2,duration=1.02 millisec (rpcc cycles/520741)
0.0634% nbtick=2,duration=1.26 millisec (rpcc cycles/520741)

microsec per tick=977
0.0759% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
0.0759% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
0.0759% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
0.0759% nbtick=1,duration=0.9 millisec (rpcc cycles/520741)
0.0759% nbtick=1,duration=0.94 millisec (rpcc cycles/520741)
34.1% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
10.2% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
0.0759% nbtick=1,duration=1.1 millisec (rpcc cycles/520741)
16.2% nbtick=2,duration=0.98 millisec (rpcc cycles/520741)
38.8% nbtick=2,duration=1.02 millisec (rpcc cycles/520741)
0.0759% nbtick=2,duration=1.06 millisec (rpcc cycles/520741)
0.0759% nbtick=2,duration=1.14 millisec (rpcc cycles/520741)
0.0759% nbtick=2,duration=1.26 millisec (rpcc cycles/520741)
0.0759% nbtick=2,duration=1.3 millisec (rpcc cycles/520741)

Here are the results for the RedHat kernel:

microsec per tick=977
0.0488% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
43.6% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
56.2% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.26 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.3 millisec (rpcc cycles/520741)

microsec per tick=977
0.0488% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
43.6% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
56.1% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.26 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.3 millisec (rpcc cycles/520741)

microsec per tick=977
0.0488% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
44% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
55.8% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.3 millisec (rpcc cycles/520741)

It indeed shows that there is a notable difference.
Loic, could you send me your path for trying this out?

met vriendelijke groeten, Wim van Dorst


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SX164 Clock Problem
  1998-03-21 13:38   ` Wim van Dorst
@ 1998-03-21 21:09     ` Loic Prylli
  1998-03-23 11:43     ` Ladislav Zejda
  1 sibling, 0 replies; 9+ messages in thread
From: Loic Prylli @ 1998-03-21 21:09 UTC (permalink / raw)
  To: axp-list


Wim van Dorst writes:
 > 
 > I have run the program on my PC164SX several times with:
 > - a self-built 2.0.33 kernel
 > - the stock rh5 sx164 kernel (as Jay Estabrook suggested)
 > 
 > The former give me the double timespeed (`date`=2*`clock`)
 > and the latter gives me the normal timespeed (`date`=`clock`).
 > 
 > Here are the results for the self-built kernel:
 > [...]

Ok, so it looks like the same problem (actually given the percentages,
it looks the date on your Alpha was perharps running about 1.6 too
fast rather than exatly 2?) 

Below the patch I use (not this workaround should be ok, but it does not
really solve the real problem, the interrupt handler should not be
called twice).


It is strange than the redhat one works ok, maybe the timer handler is
a bit slower to execute (due a smaller level of optimization while
compiling the kernel), and the problem cannot occur?

Loic

--- linux/arch/alpha/kernel/time.c.std  Sat Mar 21 21:01:41 1998
+++ linux/arch/alpha/kernel/time.c      Sat Mar 21 21:05:39 1998
@@ -61,12 +61,23 @@
  * timer_interrupt() needs to keep up the real-time clock,
  * as well as call the "do_timer()" routine every clocktick
  */
+
+#define MINCYCLE 50000/2
+/* the minimum number of rpcc cycles between two timer interrupts, it
+   assume > 50 Mhz processor clock, for a 600Mhz machine, this
+   workaround will work if the timer handler takes less than 25000
+   cycles=40us (that should be ok) */
+
 void timer_interrupt(struct pt_regs * regs)
 {
        __u32 delta, now;
+       static int ignored;
 
        now = rpcc();
        delta = now - state.last_time;
+       if (delta < MINCYCLE && ignored++ < 4)
+         return 0;
+       ignored = 0;
        state.last_time = now;
        if (delta > state.max_cycles_per_tick) {
                int i, missed_ticks;


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SX164 Clock Problem
  1998-03-21 13:38   ` Wim van Dorst
  1998-03-21 21:09     ` Loic Prylli
@ 1998-03-23 11:43     ` Ladislav Zejda
  1 sibling, 0 replies; 9+ messages in thread
From: Ladislav Zejda @ 1998-03-23 11:43 UTC (permalink / raw)
  To: axp-list; +Cc: Jay.Estabrook

 Hello all!

 Loic, I have also tried to run your program, but I do have quite different
results than Wim does. On self-built 2.0.33 kernel which has 2x clock speed
problem I get:

#checktick 533
microsec per tick=977
0.0488% nbtick=1,duration=0.46 millisec (rpcc cycles/520741)
0.0977% nbtick=1,duration=0.94 millisec (rpcc cycles/520741)
44.1% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
55.6% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
0.0977% nbtick=1,duration=1.06 millisec (rpcc cycles/520741)
0.0488% nbtick=1,duration=1.54 millisec (rpcc cycles/520741)

 This is on an idle system (but some jobs are stopped). I run that about 10
times and this result is reproductible up to a couple %. I have never rece-
ived a result similar to Wim's. So, I am affraid it's not that simple.

 Wim, by the way did you have any luck with Loic's patch?

 Cheers,
            Ladislav Zejda
            lada@fock.usc.edu

> 
>    } I have written a small program to check if it the case,
>    } could some people that writes in the thread:
>    }  "Self-build PC164SX-kernel:clock twice too fast" run it?
> 
> I have run the program on my PC164SX several times with:
> - a self-built 2.0.33 kernel
> - the stock rh5 sx164 kernel (as Jay Estabrook suggested)
> 
> The former give me the double timespeed (`date`=2*`clock`)
> and the latter gives me the normal timespeed (`date`=`clock`).
> 
> Here are the results for the self-built kernel:
> 
> microsec per tick=977
> 0.072% nbtick=1,duration=0.78 millisec (rpcc cycles/520741)
> 0.072% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
> 0.072% nbtick=1,duration=0.9 millisec (rpcc cycles/520741)
> 33.9% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
> 18.3% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
> 0.072% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
> 0.072% nbtick=1,duration=1.22 millisec (rpcc cycles/520741)
> 12.9% nbtick=2,duration=0.98 millisec (rpcc cycles/520741)
> 34.5% nbtick=2,duration=1.02 millisec (rpcc cycles/520741)
> 0.072% nbtick=2,duration=1.1 millisec (rpcc cycles/520741)
> 
> microsec per tick=977
> 0.079% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
> 0.079% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
> 0.079% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
> 0.079% nbtick=1,duration=0.94 millisec (rpcc cycles/520741)
> 34.8% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
> 3.24% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
> 19% nbtick=2,duration=0.98 millisec (rpcc cycles/520741)
> 42.3% nbtick=2,duration=1.02 millisec (rpcc cycles/520741)
> 0.079% nbtick=2,duration=1.06 millisec (rpcc cycles/520741)
> 0.079% nbtick=2,duration=1.14 millisec (rpcc cycles/520741)
> 0.079% nbtick=2,duration=1.26 millisec (rpcc cycles/520741)
> 0.079% nbtick=2,duration=1.3 millisec (rpcc cycles/520741)
> 
> microsec per tick=977
> 0.0634% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
> 0.0634% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
> 41.2% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
> 28.7% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
> 0.0634% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
> 6.34% nbtick=2,duration=0.98 millisec (rpcc cycles/520741)
> 23.5% nbtick=2,duration=1.02 millisec (rpcc cycles/520741)
> 0.0634% nbtick=2,duration=1.26 millisec (rpcc cycles/520741)
> 
> microsec per tick=977
> 0.0759% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
> 0.0759% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
> 0.0759% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
> 0.0759% nbtick=1,duration=0.9 millisec (rpcc cycles/520741)
> 0.0759% nbtick=1,duration=0.94 millisec (rpcc cycles/520741)
> 34.1% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
> 10.2% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
> 0.0759% nbtick=1,duration=1.1 millisec (rpcc cycles/520741)
> 16.2% nbtick=2,duration=0.98 millisec (rpcc cycles/520741)
> 38.8% nbtick=2,duration=1.02 millisec (rpcc cycles/520741)
> 0.0759% nbtick=2,duration=1.06 millisec (rpcc cycles/520741)
> 0.0759% nbtick=2,duration=1.14 millisec (rpcc cycles/520741)
> 0.0759% nbtick=2,duration=1.26 millisec (rpcc cycles/520741)
> 0.0759% nbtick=2,duration=1.3 millisec (rpcc cycles/520741)
> 
> Here are the results for the RedHat kernel:
> 
> microsec per tick=977
> 0.0488% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
> 43.6% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
> 56.2% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=1.26 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=1.3 millisec (rpcc cycles/520741)
> 
> microsec per tick=977
> 0.0488% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=0.74 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
> 43.6% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
> 56.1% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=1.26 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=1.3 millisec (rpcc cycles/520741)
> 
> microsec per tick=977
> 0.0488% nbtick=1,duration=0.7 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=0.86 millisec (rpcc cycles/520741)
> 44% nbtick=1,duration=0.98 millisec (rpcc cycles/520741)
> 55.8% nbtick=1,duration=1.02 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=1.14 millisec (rpcc cycles/520741)
> 0.0488% nbtick=1,duration=1.3 millisec (rpcc cycles/520741)
> 
> It indeed shows that there is a notable difference.
> Loic, could you send me your path for trying this out?
> 
> met vriendelijke groeten, Wim van Dorst
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SX164 Clock Problem
       [not found] <199803242130.QAA04157@linux03.amt.tay1.dec.com>
@ 1998-03-25  9:14 ` Ladislav Zejda
  1998-03-25 12:23   ` Christopher Huffine
  1998-03-26  3:08   ` PCMCIA compile error with 2.1.87 Nelson Maksoudian
  0 siblings, 2 replies; 9+ messages in thread
From: Ladislav Zejda @ 1998-03-25  9:14 UTC (permalink / raw)
  To: Jay.Estabrook; +Cc: axp-list

 Dear Jay!

 Excellent work, your new Milo solves my 2x clock problem. Great!

 Thank you very much,
                       Ladislav Zejda
                       lada@fock.usc.edu

PS. I hope you don't mind I am sending a copy of your letter to axp list -
   I hope it will get there this time. Let others enjoy as well!


> The latest posting from Loic correctly idnetifies the "time drift" cause
> on a number of boxes, MIATA and SX being just two of them.
> 
> It is indeed caused by the timer interrupt handler being entered two times
> for a single interrupt; seems that PYXIS propagation delays allow the
> interrupt status to not be clear by the time the interrupt handler exits.
> 
> However and unfortunately, this problem was fixed for the MIATA with the
> MILOs of RH 5.0 (which introduced an unrelated bad bug), but was perhaps not
> fixed for the SX in those same MILOs (can't remember).
> 
> I've put two new MILOs out on gatekeeper.dec.com:/pub/DEC/Linux-Alpha/Kernels/:
> 
> 	milo-sx164-980324
> 	milo-miata-980324
> 
> These should fix the clock drift problem (its a fix in the PALcode).
> 
> Also included is code back-ported from 2.1.88 to calculate a (hopefully)
> reasonable value for hwrpb->cycle_freq. This should help the stock kernel
> code which attempts to detect missed clock interrupts.
> 
> Whether these together will solve the 2*clock problem seen on the SX is
> anyone's guess; it's certainly worth a try. I've been running two "custom"
> kernels with the older SX MILO (from RH 5.0):
> 
> 1. pristine 2.0.32 plus alpha-patches-2.0.32-0.1 built under RH 5.0
> 2. pristine 2.0.33 plus alpha-patches-2.0.32-0.1 built under RH 5.0
> 
> Neither exhibit *any* problems for me on my SX; it's got only IDE HD and CD,
> Millennium, and DE500, 533MHz 21164PC rev 1, 128Mb and 1Mb cache.
> 
> Note that I also tried activating the special RTC code in 2.0.33 in another
> kernel, and also encountered no problems.
> 
> Let me know if these help or not; if not, a /proc/pci and the .config for
> the failing kernel may be helpful.
> 
> Crossing my fingers... ;-}
> 
> --Jay++
> 
> -------------------------------------------------------------------------------
>   American Non Sequitur Society: we don't make sense, but we do like pizza...
> 
> Jay A Estabrook                         Alpha Migration Tools - LINUX Project
> Digital Equipment Corp.                 (978) 506-4202 or (DTN) 226-4202
> 151 Taylor Street - TAY1-2              enet: Jay.Estabrook@digital.com
> Littleton, MA 01460-1407
> -------------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: SX164 Clock Problem
  1998-03-25  9:14 ` SX164 Clock Problem Ladislav Zejda
@ 1998-03-25 12:23   ` Christopher Huffine
  1998-03-26  3:08   ` PCMCIA compile error with 2.1.87 Nelson Maksoudian
  1 sibling, 0 replies; 9+ messages in thread
From: Christopher Huffine @ 1998-03-25 12:23 UTC (permalink / raw)
  To: axp-list

Ladislav Zejda wrote:

Thanks guys,

This fixes my time problem on a Miata/PWS 433au too.

Chris


> 
>  Dear Jay!
> 
>  Excellent work, your new Milo solves my 2x clock problem. Great!
> 
>  Thank you very much,
>                        Ladislav Zejda
>                        lada@fock.usc.edu


^ permalink raw reply	[flat|nested] 9+ messages in thread

* PCMCIA compile error with 2.1.87
  1998-03-25  9:14 ` SX164 Clock Problem Ladislav Zejda
  1998-03-25 12:23   ` Christopher Huffine
@ 1998-03-26  3:08   ` Nelson Maksoudian
  1 sibling, 0 replies; 9+ messages in thread
From: Nelson Maksoudian @ 1998-03-26  3:08 UTC (permalink / raw)
  To: axp-list


This is my first question to the list.  This may be a stupid question or
the answer available somewhere I am not aware of.  I have multia initially
installed with RedHat 5.0 and later upgraded to 2.1.87 kernel and modutils
2.1.85.  The question I have is that pcmcia-cs-2.9.12 compiled fine on
RedHat 5.0 but after the upgrade I get the following error (see below).
What am I missing?  I even downloaded pcmcia-cs-3.0.0, same compile time
error.

Help

Nelson

------------------- Screen output ------------------------------------
[root@buzzman pcmcia-cs-3.0.0]# make all   
set -e ; for d in modules cardmgr flash debug-tools man etc ; do make -C $d
; done
make[1]: Entering directory `/usr/src/pcmcia-cs-3.0.0/modules'
gcc -MD -O2 -Wall -Wstrict-prototypes -Winline -pipe  -D__KERNEL__ -DMODULE
-I../include -I/usr/src/linux/include -I/usr/src/linux -c i82365.c
In file included from /usr/src/linux/include/linux/sched.h:434,
                 from /usr/src/linux/include/asm/uaccess.h:5,
                 from ../include/pcmcia/k_compat.h:171,
                 from i82365.c:10:
/usr/src/linux/include/asm/current.h:4: global register variable follows a
function definition
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/src/linux/include/asm/current.h:4: warning: call-clobbered register
used for global register variable
i82365.c: In function `i365_get':
i82365.c:334: warning: `__r16' might be used uninitialized in this function
i82365.c:336: warning: `__r16' might be used uninitialized in this function
i82365.c: In function `i365_set':
i82365.c:344: warning: `__r16' might be used uninitialized in this function
i82365.c:346: warning: `__r16' might be used uninitialized in this function
i82365.c: In function `busy_loop':
i82365.c:796: warning: `__r16' might be used uninitialized in this function
i82365.c:799: warning: `__r16' might be used uninitialized in this function
i82365.c: In function `pcic_init':
i82365.c:1276: warning: unused variable `i'
make[1]: *** [i82365.o] Error 1
make[1]: Leaving directory `/usr/src/pcmcia-cs-3.0.0/modules'
make: *** [all] Error 2
[root@buzzman pcmcia-cs-3.0.0]# 



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1998-03-26  3:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <199803242130.QAA04157@linux03.amt.tay1.dec.com>
1998-03-25  9:14 ` SX164 Clock Problem Ladislav Zejda
1998-03-25 12:23   ` Christopher Huffine
1998-03-26  3:08   ` PCMCIA compile error with 2.1.87 Nelson Maksoudian
1998-03-15 12:35 SX164 Clock Problem Jay.Estabrook
1998-03-16  9:49 ` Ladislav Zejda
1998-03-19 20:28 ` Loic Prylli
1998-03-21 13:38   ` Wim van Dorst
1998-03-21 21:09     ` Loic Prylli
1998-03-23 11:43     ` Ladislav Zejda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox