home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sysv386
- Path: sparky!uunet!caen!sdd.hp.com!apollo.hp.com!netnews
- From: goykhman_a@apollo.hp.com (Alex Goykhman)
- Subject: Re: Loosing incoming serial characters [summary]
- Sender: usenet@apollo.hp.com (Usenet News)
- Message-ID: <BuA3tF.6Dx@apollo.hp.com>
- Date: Tue, 8 Sep 1992 21:32:03 GMT
- Nntp-Posting-Host: dzoo.ch.apollo.hp.com
- Organization: Hewlett-Packard Company, Chelmsford, MA
- Lines: 38
-
- In article <JOCHEN.92Sep5145619@busybit.mrz.sub.org> jochen@busybit.mrz.sub.org (Jochen Fahrner) writes:
- >Some weeks ago I wrote about problems, loosing incoming characters on
- >my dumb serial port. I got many replies from people with similar
- >problems, so I think this should be in the FAQ...
- ...
- >Question:
- >How can I solve this problems ?
- >
- >Answer:
- >Try setting the buson-time for your hostadapter to a low value like
- >5 usec. and setting the busoff-time to a high value like 9 usec.
- >If this does not help, you have no chance. You have to switch your
- >hostadapter or your mainboard.
-
- Losing characters has nothing to do with bus-mastering per se,
- and everything to do with excessive interrupt handling latency.
- While one might argue that a large bus-on/small bus-off time
- may slow the serial driver down somewhat, in reality a few usec.
- do not matter (1700cps translates into ~600us/char).
-
- SCSI protocol is primerily target-driven, as a result the bulk
- of the SCSI code ends up in the busmaster's interrupt handler
- routine running in the interrupts-disabled mode (with most OSes,
- anyway). Hence, great care must be taken to minimize the routine's
- latency, otherwise real-time devices may be affected.
-
- Unfortunately, there isn't much an end-user can do to decrease
- a busmaster's interrupt-handling latency, though one might try
- changing the number of SCSI-related interrupts by changing
- the block size (fewer interrupts are not necessarily better, though).
- If that does not work, one should consider either adding buffering
- capabilities to the serial link (16550A*, or one of those multi-port
- boards), or switching to a PIO host adapter:(such as 1522).
-
- --
- -----------------------------------------------------------------------------------
- Disclaimer: all opinions are mine.
- -----------------------------------------------------------------------------------
-