* udelay
@ 2003-08-02 1:49 Pete Popov
2003-08-02 2:42 ` udelay Kumba
2003-08-04 1:41 ` udelay Ralf Baechle
0 siblings, 2 replies; 8+ messages in thread
From: Pete Popov @ 2003-08-02 1:49 UTC (permalink / raw)
To: Linux MIPS mailing list
Looks like the latest udelay in 2.4 is borked. Anyway else notice that
problem? I did a 10 sec test: mdelay works, udelay is broken, at least
for the CPU and toolchain I'm using.
Pete
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: udelay
2003-08-02 1:49 udelay Pete Popov
@ 2003-08-02 2:42 ` Kumba
2003-08-02 12:01 ` udelay Geert Uytterhoeven
2003-08-04 1:41 ` udelay Ralf Baechle
1 sibling, 1 reply; 8+ messages in thread
From: Kumba @ 2003-08-02 2:42 UTC (permalink / raw)
To: linux-mips
Pete Popov wrote:
> Looks like the latest udelay in 2.4 is borked. Anyway else notice that
> problem? I did a 10 sec test: mdelay works, udelay is broken, at least
> for the CPU and toolchain I'm using.
>
> Pete
What's one way of testing this brokeness? I've been trying to find some
explanation for a bug of some sort in a cobalt RaQ2 in which the tulip
driver (eth0) just stops dead after several minutes of use. One of the
notable features of the tulip driver patch needed to work on the RaQ2
adds a "udelay(1000)" into the tulip source. Without it, the eth0 on
the RaQ2 is dead, so I wonder if these are related.
If they are related, then this behavior has been slowly getting worse it
seems, as eth0 on the RaQ2 apparently has had smaller and smaller
amounts of time needed before the interface died. 2.4.18, it took most
of a day, by 2.4.21, it happens within seconds.
--Kumba
--
"Such is oft the course of deeds that move the wheels of the world:
small hands do them because they must, while the eyes of the great are
elsewhere." --Elrond
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: udelay
2003-08-02 2:42 ` udelay Kumba
@ 2003-08-02 12:01 ` Geert Uytterhoeven
2003-08-02 20:41 ` udelay Kumba
0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2003-08-02 12:01 UTC (permalink / raw)
To: Kumba; +Cc: Linux/MIPS Development
On Fri, 1 Aug 2003, Kumba wrote:
> Pete Popov wrote:
> > Looks like the latest udelay in 2.4 is borked. Anyway else notice that
> > problem? I did a 10 sec test: mdelay works, udelay is broken, at least
> > for the CPU and toolchain I'm using.
>
> What's one way of testing this brokeness? I've been trying to find some
> explanation for a bug of some sort in a cobalt RaQ2 in which the tulip
> driver (eth0) just stops dead after several minutes of use. One of the
> notable features of the tulip driver patch needed to work on the RaQ2
> adds a "udelay(1000)" into the tulip source. Without it, the eth0 on
> the RaQ2 is dead, so I wonder if these are related.
>
> If they are related, then this behavior has been slowly getting worse it
> seems, as eth0 on the RaQ2 apparently has had smaller and smaller
> amounts of time needed before the interface died. 2.4.18, it took most
> of a day, by 2.4.21, it happens within seconds.
Any kernel messages (e.g. transmit timed out) from the tulip driver when it
dies?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: udelay
2003-08-02 12:01 ` udelay Geert Uytterhoeven
@ 2003-08-02 20:41 ` Kumba
0 siblings, 0 replies; 8+ messages in thread
From: Kumba @ 2003-08-02 20:41 UTC (permalink / raw)
To: linux-mips
Geert Uytterhoeven wrote:
> Any kernel messages (e.g. transmit timed out) from the tulip driver when it
> dies?
None that I can see. If I'm using SSH, input/output just stops cold.
In some cases, I have noticed that if you send a single character (like
you were in a text editor when input/output died), and you wait a minute
or so, it will appear. This seems to mean the interface hasn't died
completely, but seems to havce slowed down to the point of complete
unsuability, like >1bps would be my guess.
Restarting the interface fixes it for several seconds until it drops
again. I usually disconnect from the serial console before trying any
SSH activity, as serial console work + network activity can halt the
kernel (which I have confirmed does occur in 2.4.21 CVS).
As an experiment, I did try replacing the udelay(1000) line in the
cobalt patch with mdelay(1) to see if this udelay() brokeness was the
issue, but it still drops out after several seconds.
--Kumba
--
"Such is oft the course of deeds that move the wheels of the world:
small hands do them because they must, while the eyes of the great are
elsewhere." --Elrond
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: udelay
2003-08-02 1:49 udelay Pete Popov
2003-08-02 2:42 ` udelay Kumba
@ 2003-08-04 1:41 ` Ralf Baechle
2003-08-04 17:29 ` udelay Pete Popov
1 sibling, 1 reply; 8+ messages in thread
From: Ralf Baechle @ 2003-08-04 1:41 UTC (permalink / raw)
To: Pete Popov; +Cc: Linux MIPS mailing list
On Fri, Aug 01, 2003 at 06:49:08PM -0700, Pete Popov wrote:
> Looks like the latest udelay in 2.4 is borked. Anyway else notice that
> problem? I did a 10 sec test: mdelay works, udelay is broken, at least
> for the CPU and toolchain I'm using.
That just doesn't make sense. Mdelay is based on udelay so if udelay
is broken mdelay should be broken, too.
Ralf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: udelay
2003-08-04 1:41 ` udelay Ralf Baechle
@ 2003-08-04 17:29 ` Pete Popov
2003-08-04 21:38 ` udelay Ralf Baechle
0 siblings, 1 reply; 8+ messages in thread
From: Pete Popov @ 2003-08-04 17:29 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Linux MIPS mailing list
On Sun, 2003-08-03 at 18:41, Ralf Baechle wrote:
> On Fri, Aug 01, 2003 at 06:49:08PM -0700, Pete Popov wrote:
>
> > Looks like the latest udelay in 2.4 is borked. Anyway else notice that
> > problem? I did a 10 sec test: mdelay works, udelay is broken, at least
> > for the CPU and toolchain I'm using.
>
> That just doesn't make sense. Mdelay is based on udelay so if udelay
> is broken mdelay should be broken, too.
I think the problem may be occurring when udelay is used with very large
values, like 10000. I've told the developer that that's not recommended
and to use mdelays in that case.
Pete
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: udelay
2003-08-04 17:29 ` udelay Pete Popov
@ 2003-08-04 21:38 ` Ralf Baechle
2003-08-04 22:04 ` udelay Pete Popov
0 siblings, 1 reply; 8+ messages in thread
From: Ralf Baechle @ 2003-08-04 21:38 UTC (permalink / raw)
To: Pete Popov; +Cc: Linux MIPS mailing list
On Mon, Aug 04, 2003 at 10:29:20AM -0700, Pete Popov wrote:
> > > Looks like the latest udelay in 2.4 is borked. Anyway else notice that
> > > problem? I did a 10 sec test: mdelay works, udelay is broken, at least
> > > for the CPU and toolchain I'm using.
> >
> > That just doesn't make sense. Mdelay is based on udelay so if udelay
> > is broken mdelay should be broken, too.
>
> I think the problem may be occurring when udelay is used with very large
> values, like 10000. I've told the developer that that's not recommended
> and to use mdelays in that case.
Any bug report for udelay arguments larger than 1000 will probably be
ignored ...
Ralf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: udelay
2003-08-04 21:38 ` udelay Ralf Baechle
@ 2003-08-04 22:04 ` Pete Popov
0 siblings, 0 replies; 8+ messages in thread
From: Pete Popov @ 2003-08-04 22:04 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Linux MIPS mailing list
On Mon, 2003-08-04 at 14:38, Ralf Baechle wrote:
> On Mon, Aug 04, 2003 at 10:29:20AM -0700, Pete Popov wrote:
>
> > > > Looks like the latest udelay in 2.4 is borked. Anyway else notice that
> > > > problem? I did a 10 sec test: mdelay works, udelay is broken, at least
> > > > for the CPU and toolchain I'm using.
> > >
> > > That just doesn't make sense. Mdelay is based on udelay so if udelay
> > > is broken mdelay should be broken, too.
> >
> > I think the problem may be occurring when udelay is used with very large
> > values, like 10000. I've told the developer that that's not recommended
> > and to use mdelays in that case.
>
> Any bug report for udelay arguments larger than 1000 will probably be
> ignored ...
I found the 'bug' before I saw your udelay comment ;)
Pete
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-08-04 22:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-02 1:49 udelay Pete Popov
2003-08-02 2:42 ` udelay Kumba
2003-08-02 12:01 ` udelay Geert Uytterhoeven
2003-08-02 20:41 ` udelay Kumba
2003-08-04 1:41 ` udelay Ralf Baechle
2003-08-04 17:29 ` udelay Pete Popov
2003-08-04 21:38 ` udelay Ralf Baechle
2003-08-04 22:04 ` udelay Pete Popov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.