home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / sysv386 / 14192 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.3 KB  |  50 lines

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