[5623] in Athena Bugs

home help back first fref pref prev next nref lref last post

megapel microcode reload

daemon@ATHENA.MIT.EDU (John Carr)
Sun Jul 29 03:27:58 1990

To: bugs@ATHENA.MIT.EDU
Date: Sun, 29 Jul 90 03:27:45 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>


When the RT kernel reloads tty emulation microcode for the megapel, it
allows a maximum total time delay.  This turns out not to be enough.  This
change is more tolerant of the adapter being slow (it will only time out if
the average tranfer time per word is too long, not if the total time taken
for the write is too long).

*** /source/bsd-4.3/rt/sys/cacons/mpeltty.c	Thu Apr  7 13:27:43 1988
--- mpeltty.c	Wed Jul 25 06:36:02 1990
***************
*** 870,879 ****
  
     retry = 0;
  
- 
     while (TRUE) {
  	if (data_len < 1)
  		break;
  
  	STATUS_MPEL(fifo_flags); 	/* fifo flags		     */
    	fifo_flags &= 0xe000;
--- 883,893 ----
  
     retry = 0;
  
     while (TRUE) {
  	if (data_len < 1)
  		break;
+ 
+ 	retry /= 2;
  
  	STATUS_MPEL(fifo_flags); 	/* fifo flags		     */
    	fifo_flags &= 0xe000;


home help back first fref pref prev next nref lref last post