[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: m68k/166: fsck -p locks up machine with >1 scsi disks



The following reply was made to PR m68k/166; it has been noted by GNATS.

From: Allen Briggs <briggs_(_at_)_puma_(_dot_)_macbsd_(_dot_)_com>
To: d_(_at_)_fnarg_(_dot_)_net_(_dot_)_au
Cc: gnats_(_at_)_openbsd_(_dot_)_org
Subject: Re: m68k/166: fsck -p locks up machine with >1 scsi disks
Date: Sun, 27 Apr 1997 15:03:20 -0400

 > 	machine locks up during 'fsck -p' (in /etc/rc)
 
 This may have been caused by the changes that I recently made to the
 ncrscsi driver.  Can you please try this patch and see if it helps?
 
 Thanks,
 -allen
 
 Index: mac68k5380.c
 ===================================================================
 RCS file: /cvs/src/sys/arch/mac68k/dev/mac68k5380.c,v
 retrieving revision 1.10
 diff -c -r1.10 mac68k5380.c
 *** mac68k5380.c	1997/04/07 12:56:45	1.10
 --- mac68k5380.c	1997/04/27 19:00:09
 ***************
 *** 451,462 ****
   		pending_5380_count -= dcount;
   		pending_5380_data += dcount;
   		}
 - 		/*
 - 		 * OK.  No bus error occurred above.  Clear the nofault flag
 - 		 * so we no longer short-circuit bus errors.
 - 		 */
 - 		nofault = (int *) 0;
 - 
   	} else {
   		int	resid;
   
 --- 451,456 ----
 ***************
 *** 511,527 ****
   
   		PID("write complete");
   
 - 		/*
 - 		 * OK.  No bus error occurred above.  Clear the nofault flag
 - 		 * so we no longer short-circuit bus errors.
 - 		 */
 - 		nofault = (int *) 0;
 - 
   		drq = (volatile u_int8_t *) ncr_5380_with_drq;
   		tmp_data = *drq;
   
   		PID("read a byte to force a phase change");
   	}
   
   	PID("end drq");
   	return;
 --- 505,521 ----
   
   		PID("write complete");
   
   		drq = (volatile u_int8_t *) ncr_5380_with_drq;
   		tmp_data = *drq;
   
   		PID("read a byte to force a phase change");
   	}
 + 
 + 	/*
 + 	 * OK.  No bus error occurred above.  Clear the nofault flag
 + 	 * so we no longer short-circuit bus errors.
 + 	 */
 + 	nofault = (int *) 0;
   
   	PID("end drq");
   	return;
 


Visit your host, monkey.org