* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
@ 2005-10-12 11:20 ` Marc Zyngier
2005-10-14 22:35 ` David S. Miller
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Marc Zyngier @ 2005-10-12 11:20 UTC (permalink / raw)
To: sparclinux
>>>>> "Meelis" = Meelis Roos <mroos@linux.ee> writes:
Meelis> ..É.¥½..2.86 booting
Meelis> Starting the hotplug events dispatcher: udevd.
Meelis> M.¥Ñ.¡¥...to runlevel: 6
Meelis> ..¥...processes the TERM signal
Meelis> Is this known to corrupt sometimes or is it thought to be fixed?
Meelis> I'm running todays 2.6.14-rc4-gda64c6ee.
I've seen this kind of things for ages with sunsab. Looks like init
messes with the tty settings, and maybe it confuses the chip for a
while...
M.
--
And if you don't know where you're going, any road will take you there...
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
2005-10-12 11:20 ` Marc Zyngier
@ 2005-10-14 22:35 ` David S. Miller
2005-11-04 20:16 ` David S. Miller
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: David S. Miller @ 2005-10-14 22:35 UTC (permalink / raw)
To: sparclinux
From: Meelis Roos <mroos@linux.ee>
Date: Wed, 12 Oct 2005 12:28:17 +0300 (EEST)
> Is this known to corrupt sometimes or is it thought to be fixed?
> I'm running todays 2.6.14-rc4-gda64c6ee.
It's known, and unfortunate.
I tried everything to correct this problem, but to no avail. The
current 2.6.x sunsab driver even defers all parameter changing in the
chip until the transmitter is %100 idle. That still doesn't help,
as your trace shows.
I'll have to dig into init and see what kind of terminal setting
calls it does.
Thanks for the reminder about this problem.
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
2005-10-12 11:20 ` Marc Zyngier
2005-10-14 22:35 ` David S. Miller
@ 2005-11-04 20:16 ` David S. Miller
2005-11-05 9:42 ` Meelis Roos
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: David S. Miller @ 2005-11-04 20:16 UTC (permalink / raw)
To: sparclinux
From: Meelis Roos <mroos@linux.ee>
Date: Wed, 12 Oct 2005 12:28:17 +0300 (EEST)
> Is this known to corrupt sometimes or is it thought to be fixed?
Can you say whether this same corruption occurs with
2.4.x kernels as well?
I just got back from a 2 week vacation and I plan on getting
back to this bug soon.
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (2 preceding siblings ...)
2005-11-04 20:16 ` David S. Miller
@ 2005-11-05 9:42 ` Meelis Roos
2005-11-10 21:01 ` David S. Miller
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Meelis Roos @ 2005-11-05 9:42 UTC (permalink / raw)
To: sparclinux
> Can you say whether this same corruption occurs with
> 2.4.x kernels as well?
Tried 2.4.27 from Debian, it occurs there too.
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (3 preceding siblings ...)
2005-11-05 9:42 ` Meelis Roos
@ 2005-11-10 21:01 ` David S. Miller
2005-11-10 21:08 ` Meelis Roos
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: David S. Miller @ 2005-11-10 21:01 UTC (permalink / raw)
To: sparclinux
From: Meelis Roos <mroos@linux.ee>
Date: Sat, 5 Nov 2005 11:42:13 +0200 (EET)
> > Can you say whether this same corruption occurs with
> > 2.4.x kernels as well?
>
> Tried 2.4.27 from Debian, it occurs there too.
So at least it's not a 2.4.x --> 2.6.x regression :-)
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (4 preceding siblings ...)
2005-11-10 21:01 ` David S. Miller
@ 2005-11-10 21:08 ` Meelis Roos
2005-11-18 8:45 ` Meelis Roos
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Meelis Roos @ 2005-11-10 21:08 UTC (permalink / raw)
To: sparclinux
> So at least it's not a 2.4.x --> 2.6.x regression :-)
One thing I have noticed that may or may not be known is that it looks
like it's changing between "online" and "offline" mode as seen from
remote minicom when the garbage happens. It's normally offline during
work and when I start reboot, it switches online and garbles first
line or two.
There seem to be only a couple of terminal setting touchings in init but
they tell nothing to me.
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (5 preceding siblings ...)
2005-11-10 21:08 ` Meelis Roos
@ 2005-11-18 8:45 ` Meelis Roos
2005-11-18 8:50 ` David S. Miller
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Meelis Roos @ 2005-11-18 8:45 UTC (permalink / raw)
To: sparclinux
Additional data point: Debian package linux-image-2.6.14-2-sparc64
2.6.14-3 corrupts more than standard kernel - there are several strings
corrupted.
Hmm, it might be because of CONFIG_PROM_CONSOLE=y.
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (6 preceding siblings ...)
2005-11-18 8:45 ` Meelis Roos
@ 2005-11-18 8:50 ` David S. Miller
2005-11-23 6:30 ` David S. Miller
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: David S. Miller @ 2005-11-18 8:50 UTC (permalink / raw)
To: sparclinux
From: Meelis Roos <mroos@linux.ee>
Date: Fri, 18 Nov 2005 10:45:44 +0200 (EET)
> Additional data point: Debian package linux-image-2.6.14-2-sparc64
> 2.6.14-3 corrupts more than standard kernel - there are several strings
> corrupted.
>
> Hmm, it might be because of CONFIG_PROM_CONSOLE=y.
Possibly.
I haven't had any chance to look into this one, and because
it's not even a regression from 2.4.x's behavior it's of
even lower priority. Sorry :-/
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (7 preceding siblings ...)
2005-11-18 8:50 ` David S. Miller
@ 2005-11-23 6:30 ` David S. Miller
2005-11-23 7:12 ` Meelis Roos
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: David S. Miller @ 2005-11-23 6:30 UTC (permalink / raw)
To: sparclinux
I wonder if we're setting the CEC and TEC timeouts too short.
Can you give this patch a spin? There are some other things
we can try if this still doesn't fix things.
Thanks.
diff --git a/drivers/serial/sunsab.c b/drivers/serial/sunsab.c
index ba9381f..7665a9d 100644
--- a/drivers/serial/sunsab.c
+++ b/drivers/serial/sunsab.c
@@ -93,7 +93,7 @@ static char *sab82532_version[16] = {
static __inline__ void sunsab_tec_wait(struct uart_sunsab_port *up)
{
- int timeout = up->tec_timeout;
+ int timeout = SAB82532_MAX_TEC_TIMEOUT;
while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout)
udelay(1);
@@ -101,7 +101,7 @@ static __inline__ void sunsab_tec_wait(s
static __inline__ void sunsab_cec_wait(struct uart_sunsab_port *up)
{
- int timeout = up->cec_timeout;
+ int timeout = SAB82532_MAX_CEC_TIMEOUT;
while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout)
udelay(1);
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (8 preceding siblings ...)
2005-11-23 6:30 ` David S. Miller
@ 2005-11-23 7:12 ` Meelis Roos
2005-11-23 7:43 ` David S. Miller
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Meelis Roos @ 2005-11-23 7:12 UTC (permalink / raw)
To: sparclinux
> I wonder if we're setting the CEC and TEC timeouts too short.
>
> Can you give this patch a spin? There are some other things
> we can try if this still doesn't fix things.
Unfortunately it does not fix the corruption.
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (9 preceding siblings ...)
2005-11-23 7:12 ` Meelis Roos
@ 2005-11-23 7:43 ` David S. Miller
2005-11-23 8:26 ` Meelis Roos
2005-11-23 8:58 ` David S. Miller
12 siblings, 0 replies; 14+ messages in thread
From: David S. Miller @ 2005-11-23 7:43 UTC (permalink / raw)
To: sparclinux
From: Meelis Roos <mroos@linux.ee>
Date: Wed, 23 Nov 2005 09:12:23 +0200 (EET)
> > I wonder if we're setting the CEC and TEC timeouts too short.
> >
> > Can you give this patch a spin? There are some other things
> > we can try if this still doesn't fix things.
>
> Unfortunately it does not fix the corruption.
Thanks for testing...
Give this one a spin.
diff --git a/drivers/serial/sunsab.c b/drivers/serial/sunsab.c
index ba9381f..eae54a7 100644
--- a/drivers/serial/sunsab.c
+++ b/drivers/serial/sunsab.c
@@ -461,6 +461,9 @@ static void sunsab_tx_idle(struct uart_s
if (test_bit(SAB82532_REGS_PENDING, &up->irqflags)) {
u8 tmp;
+ sunsab_tec_wait(up);
+ sunsab_cec_wait(up);
+
clear_bit(SAB82532_REGS_PENDING, &up->irqflags);
writeb(up->cached_mode, &up->regs->rw.mode);
writeb(up->cached_pvr, &up->regs->rw.pvr);
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (10 preceding siblings ...)
2005-11-23 7:43 ` David S. Miller
@ 2005-11-23 8:26 ` Meelis Roos
2005-11-23 8:58 ` David S. Miller
12 siblings, 0 replies; 14+ messages in thread
From: Meelis Roos @ 2005-11-23 8:26 UTC (permalink / raw)
To: sparclinux
[-- Attachment #1: Type: TEXT/PLAIN, Size: 512 bytes --]
> Give this one a spin.
It's still corrupting the same way it has been done before.
BUT now I noticed that the previous patch garbled it differently.
Ususally I see things like that:
..É.¥œ..2.86 booting
(instead of init version 2.86 booting)
and I still see it with this patch. But with previous patch I saw
version 2.86 booting
and perhaps some more dropped characters here and there. Entering
runlevel 2 message was still garbage with previous patch too.
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Still some serial console corruption on sunsab
2005-10-12 9:28 Still some serial console corruption on sunsab Meelis Roos
` (11 preceding siblings ...)
2005-11-23 8:26 ` Meelis Roos
@ 2005-11-23 8:58 ` David S. Miller
12 siblings, 0 replies; 14+ messages in thread
From: David S. Miller @ 2005-11-23 8:58 UTC (permalink / raw)
To: sparclinux
From: Meelis Roos <mroos@linux.ee>
Date: Wed, 23 Nov 2005 10:26:12 +0200 (EET)
> BUT now I noticed that the previous patch garbled it differently.
> Ususally I see things like that:
> ..É.¥½..2.86 booting
> (instead of init version 2.86 booting)
>
> and I still see it with this patch. But with previous patch I saw
> version 2.86 booting
> and perhaps some more dropped characters here and there. Entering
> runlevel 2 message was still garbage with previous patch too.
Ok, thanks for the info, I'll go back to studying the SAB programmer's
manual (available at:
http://www.commtech-fastcom.com/data_sheets/sab82532.pdf
as well as other places, just give "SAB82532 manual" to any search
engine) and the driver to try and get some more ideas.
^ permalink raw reply [flat|nested] 14+ messages in thread