linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: Stealth port problems
@ 2000-07-31 12:22 Iain Sandoe
  2000-08-01 10:28 ` Timothy A. Seufert
  0 siblings, 1 reply; 28+ messages in thread
From: Iain Sandoe @ 2000-07-31 12:22 UTC (permalink / raw)
  To: Timothy A. Seufert; +Cc: linuxppc-dev


On  Mon, Jul 31, 2000, I wrote...
> On  Mon, Jul 31, 2000, Timothy A. Seufert wrote:
>> At 10:11 AM +0100 7/31/00, Iain Sandoe wrote:
>>
>>>BTW st SCC-XXdma stuff *is* enabled on my G3 by default.
>>
>> Beige or blue?  On my B&W G3 it's not enabled, I only see the plain
>> non-DMA RX and TX interrupts.
>
> Beige - but I was burbling (again) - I build all my own kernels... so YMMV

FWIW:
With the same kernel...
On my Lombard - the SCC XXdma does *not* show
On my 9600 - it does.

Config options supplied if you like :-)
Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: Stealth port problems
@ 2000-08-02 17:13 Iain Sandoe
  0 siblings, 0 replies; 28+ messages in thread
From: Iain Sandoe @ 2000-08-02 17:13 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, linuxppc-dev


>>So it looks like it's not getting enabled on New World machines.
>>After a brief look at the driver init code my impression (quite
>>possibly a wildly inaccurate one BTW) is that the driver wants DMA
>>channels and/or IRQs already partially configured.  On New World
>>machines booted via yaboot these may not be configured by OF.  On Old
>>World machines booted via BootX MacOS does the initialization.
>
> Can you all test with my rsync tree ? I changed the test against the
> number of addresses as Takashi pointed out. If it still doesn't work, we
> may have to add missing addresses "manually" (I hate OF tree fixup code ;)

yep. xxDMA show up OK on my Lombard now... sorr, can't test (I haven't
tangled with irDA and have no easy modem-based test).

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: Stealth port problems
@ 2000-08-01 11:11 Iain Sandoe
  0 siblings, 0 replies; 28+ messages in thread
From: Iain Sandoe @ 2000-08-01 11:11 UTC (permalink / raw)
  To: Timothy A. Seufert; +Cc: linuxppc-dev


 Tue, Aug 1, 2000,Timothy A. Seufert wrote:
> At 1:22 PM +0100 7/31/00, Iain Sandoe wrote:
>>On  Mon, Jul 31, 2000, I wrote...
>>>  On  Mon, Jul 31, 2000, Timothy A. Seufert wrote:
>>>>  At 10:11 AM +0100 7/31/00, Iain Sandoe wrote:
>>>>
>>>>>BTW st SCC-XXdma stuff *is* enabled on my G3 by default.
>>>>
>>>>  Beige or blue?  On my B&W G3 it's not enabled, I only see the plain
>>>>  non-DMA RX and TX interrupts.
>>>
>>>  Beige - but I was burbling (again) - I build all my own kernels... so YMMV
>>
>>FWIW:
>>With the same kernel...
>>On my Lombard - the SCC XXdma does *not* show
>>On my 9600 - it does.
>
> So it looks like it's not getting enabled on New World machines.
> After a brief look at the driver init code my impression (quite
> possibly a wildly inaccurate one BTW) is that the driver wants DMA
> channels and/or IRQs already partially configured.  On New World
> machines booted via yaboot these may not be configured by OF.  On Old
> World machines booted via BootX MacOS does the initialization.

I think I saw a patch for this fly by yesterday :-)

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: Stealth port problems
@ 2000-07-31 11:43 Iain Sandoe
  0 siblings, 0 replies; 28+ messages in thread
From: Iain Sandoe @ 2000-07-31 11:43 UTC (permalink / raw)
  To: Timothy A. Seufert; +Cc: linuxppc-dev


On  Mon, Jul 31, 2000, Timothy A. Seufert wrote:
> At 10:11 AM +0100 7/31/00, Iain Sandoe wrote:
>
>>BTW st SCC-XXdma stuff *is* enabled on my G3 by default.
>
> Beige or blue?  On my B&W G3 it's not enabled, I only see the plain
> non-DMA RX and TX interrupts.

Beige - but I was burbling (again) - I build all my own kernels... so YMMV
;-)
Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: Stealth port problems
@ 2000-07-31  9:11 Iain Sandoe
  2000-07-31  9:59 ` Timothy A. Seufert
  0 siblings, 1 reply; 28+ messages in thread
From: Iain Sandoe @ 2000-07-31  9:11 UTC (permalink / raw)
  To: Giuliano Pochini; +Cc: linuxppc-dev


On  Mon, Jul 31, 2000,  Giuliano Pochini wrote:
>>> The problem is definitely X.  I made a lot of tests: with dma and non-dma
>>> serial driver, X accelerated, non accelerated, X bare.bone (started with
>>> xinit). The problem is X. When X is running the serial ports looses packets
>>> :-((
>>> Am I the only one who is having this problem ???  Why does X cause overruns
>>> ??
>
>> If you can try 2.2.17pre10ben2 or pre13ben2 (linuxcare linux-pmac-benh) then
>> you can apply the IRQ latency test and see if it is that which is blocking
>> you.  Scan the dev list for "[ANN} IRQ".
>
> I'll try a soon I have a bit of free time...

There's a pre-built kernel, modules & system.map (with IRQ latency &
dmasound stuff already applied ) linked to:

http://www.drfruitcake.com/linux/linuxppc.html

The IRQh app - which you need to start the profiling is linked to :

http://www.drfruitcake.com/linux/irq_blk.html

>> The RX buffer in an 85230 (which is actually the chip - IIRC - an enhanced
>> 8530) is 8 characters deep - so any more that about 700 us IRQ block will
>> cause a drop out at 115200 continuous...
>
> On the Amiga I used to rtx stuff at 230K with no problems. It has 1 byte
> buffer...

BTW st SCC-XXdma stuff *is* enabled on my G3 by default.

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: Stealth port problems
@ 2000-07-30 16:44 Iain Sandoe
  0 siblings, 0 replies; 28+ messages in thread
From: Iain Sandoe @ 2000-07-30 16:44 UTC (permalink / raw)
  To: Takashi Oe; +Cc: linuxppc-dev


On  Sun, Jul 30, 2000, Takashi Oe wrote:
> On Sun, 30 Jul 2000, Iain Sandoe wrote:
>
>> > Ok, this is a news to me.  I'm certain that SCC on oldworld pmacs is
>> > 85C30.  When did the change to 85230 occur?  If I remember correctly,
>> > some DMA setup codes in macserial.c need to know about it if it's dealing
>> > with 85230 rather than 85C30.
>>
>> OK - I don't know for certain - but the code refers to an "ESCC" which is
>> the name of the 85230 - the 8530 should just be called "SCC".
>
> It's not 8530.  I got an impression from Zilog's manual that ESCC refers
> to both 85230 and 85C30 loosely.

That manual has "Iain's all-time-award-for-the-worst-written-chip-manual"
:-(

>  Actually, on some pages, the term was
> used to refer to functionalities only available on 85230, and, on other
> pages, it was used to describe something 8530 doesn't support but both
> 85C30 and 85230 do.  AMD's usage of the term ESCC is yet slightly
> different, IIRC.
>
> Anyway, Apple's documentation uses the term ESCC and 85C30
> interchangeably, and I think the driver's usage of the term "ESCC" comes
> from there.

OK.  Well, that makes things worse - rather than better (re. the original
problem - if DMA is not enabled).  The 8530 had only 4 bytes of RX buffer &
only 2 Tx (the ESCC doubled these) - can't remember about the 85C30.  Wrote
drivers for the other two some years ago on a different OS (so memory might
be a shade foggy).

Of course, Apple has implemented the devices as a cell in an ASIC - so who
knows?

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: Stealth port problems
@ 2000-07-30 13:01 Iain Sandoe
  2000-07-30 14:01 ` Takashi Oe
  0 siblings, 1 reply; 28+ messages in thread
From: Iain Sandoe @ 2000-07-30 13:01 UTC (permalink / raw)
  To: Takashi Oe; +Cc: linuxppc-dev


On  Sun, Jul 30, 2000, Takashi Oe wrote:
> On Sun, 30 Jul 2000, Iain Sandoe wrote:
>
> [...]
>> The RX buffer in an 85230 (which is actually the chip - IIRC - an enhanced
>> 8530) is 8 characters deep
>
> Ok, this is a news to me.  I'm certain that SCC on oldworld pmacs is
> 85C30.  When did the change to 85230 occur?  If I remember correctly,
> some DMA setup codes in macserial.c need to know about it if it's dealing
> with 85230 rather than 85C30.

OK - I don't know for certain - but the code refers to an "ESCC" which is
the name of the 85230 - the 8530 should just be called "SCC".


>>                            - so any more that about 700 us IRQ block will
>> cause a drop out at 115200 continuous...
>
> With DMA, this is a non-issue as far as serial driver is concerned.

This is, of course, true - unless something blocks for long enough to
prevent the IRQ that indicates end-of-dma transfer (assuming there is one).

Iain,

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: Stealth port problems
@ 2000-07-30 10:31 Iain Sandoe
  2000-07-30 12:39 ` Takashi Oe
  2000-07-31  7:12 ` Giuliano Pochini
  0 siblings, 2 replies; 28+ messages in thread
From: Iain Sandoe @ 2000-07-30 10:31 UTC (permalink / raw)
  To: Giuliano Pochini, linuxppc-dev


Sun, Jul 30, 2000,   Giuliano Pochini wrote:
> Giuliano Pochini wrote:
>>
>> > >Hi!  I have troubles with my stealth port on a G3-blue. When it runs at
>> > 115200
>> > >ifconfig
>> > >shows a lot of overruns. At 57600 it works fine, but it's slow :-((
>
> The problem is definitely X.  I made a lot of tests: with dma and non-dma
> serial driver, X accelerated, non accelerated, X bare.bone (started with
> xinit). The problem is X. When X is running the serial ports looses packets
> :-((
> Am I the only one who is having this problem ???  Why does X cause overruns ??

If you can try 2.2.17pre10ben2 or pre13ben2 (linuxcare linux-pmac-benh) then
you can apply the IRQ latency test and see if it is that which is blocking
you.  Scan the dev list for "[ANN} IRQ".

It is possible (there was a discussion in the ANN thread about fb IRQ
blocks) - X may aggravate this.

I have seen 2ms of IRQ blocking on the Lombard (using IDE CDROM) and around
450-750 us of IRQ blocking on my other machines (SCSI). [when heavily
loaded].

The RX buffer in an 85230 (which is actually the chip - IIRC - an enhanced
8530) is 8 characters deep - so any more that about 700 us IRQ block will
cause a drop out at 115200 continuous...

So it looks like music might not be the only pressure to tune the IRQ
latencies :-)

Note that an x86 kernel guru said on the lad list "a well tuned kernel
should not exhibit more than about 60 us worst-case IRQ block"

we have a ways to go to get to that.

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Stealth port problems
@ 2000-07-28  5:33 Giuliano Pochini
  2000-07-28  8:34 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 28+ messages in thread
From: Giuliano Pochini @ 2000-07-28  5:33 UTC (permalink / raw)
  To: linuxppc-dev


Hi!  I have troubles with my stealth port on a G3-blue. When it runs at 115200
ifconfig
shows a lot of overruns. At 57600 it works fine, but it's slow :-((

Does any of you own that serial port ?  Suggestions ??

Bye.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-09-04  3:40 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-31 12:22 Stealth port problems Iain Sandoe
2000-08-01 10:28 ` Timothy A. Seufert
2000-08-02 16:22   ` Benjamin Herrenschmidt
2000-09-04  3:40     ` SCC chip bug on various macs Takashi Oe
  -- strict thread matches above, loose matches on Subject: below --
2000-08-02 17:13 Stealth port problems Iain Sandoe
2000-08-01 11:11 Iain Sandoe
2000-07-31 11:43 Iain Sandoe
2000-07-31  9:11 Iain Sandoe
2000-07-31  9:59 ` Timothy A. Seufert
2000-07-30 16:44 Iain Sandoe
2000-07-30 13:01 Iain Sandoe
2000-07-30 14:01 ` Takashi Oe
2000-07-30 10:31 Iain Sandoe
2000-07-30 12:39 ` Takashi Oe
2000-07-31  7:12 ` Giuliano Pochini
2000-07-31 12:03   ` Geert Uytterhoeven
2000-07-28  5:33 Giuliano Pochini
2000-07-28  8:34 ` Benjamin Herrenschmidt
2000-07-28 14:23   ` Giuliano Pochini
2000-07-30  0:16   ` Giuliano Pochini
2000-07-30 13:01     ` Michel Dänzer
2000-07-30 12:59   ` Giuliano Pochini
2000-07-30 12:29     ` Takashi Oe
2000-07-31  7:01       ` Giuliano Pochini
2000-07-31 13:01       ` Giuliano Pochini
2000-08-01  0:09         ` Giuliano Pochini
2000-07-31 18:27           ` Benjamin Herrenschmidt
2000-07-30 14:11     ` Giuliano Pochini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).