Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!mimsy!chris
From: chris@mimsy.UUCP (Chris Torek)
Newsgroups: comp.bugs.4bsd
Subject: Standalone RK bootstrap fails on UBA1
Message-ID: <4753@mimsy.UUCP>
Date: Mon, 15-Dec-86 19:11:18 EST
Article-I.D.: mimsy.4753
Posted: Mon Dec 15 19:11:18 1986
Date-Received: Tue, 16-Dec-86 23:03:50 EST
Organization: University of Maryland, Dept. of Computer Sci.
Lines: 29

Index: /sys/stand/rk.c 4.3BSD Fix

Description:
	The standalone RK06/RK07 driver cannot talk to an RK07 on
	UBA1, due to a botch in rkstrategy() in /sys/stand/rk.c:

		short dn, cn, sn, tn;
		...
		dn = io->i_unit;
		...
		rkaddr->rkcs2 = dn;

	io->i_unit is in the range [8..15], so this writes the
	`release' bit as well as the drive number, which confuses
	the controller.

Repeat-By:
	Attach an RK07 to UBA1.  Try to boot.  Watch it hang.

Fix:
	Saner (but untested) code:

		short cn, sn, tn;
		...
		rkaddr->rkcs2 = io->i_unit & 7;

-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP:	seismo!mimsy!chris	ARPA/CSNet:	chris@mimsy.umd.edu