From owner-freebsd-stable Tue Jun 13 9:17:11 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.clarkson.edu (mail.clarkson.edu [128.153.4.10]) by hub.freebsd.org (Postfix) with SMTP id AF36737BF08 for ; Tue, 13 Jun 2000 09:17:02 -0700 (PDT) (envelope-from cohentl@clarkson.edu) Received: (qmail 4159 invoked by uid 0); 13 Jun 2000 16:16:56 -0000 Received: from sirius.clarkson.edu (HELO sirius) (128.153.48.53) by mail.clarkson.edu with SMTP; 13 Jun 2000 16:16:56 -0000 Date: Tue, 13 Jun 2000 12:16:59 -0400 (EDT) From: Todd Cohen To: Grard Roudier Cc: freebsd-stable@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: Problem with newer sym driver on a Tekram DC-390U2W controller In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Different but related question, are the DC-315U cards supported? On Tue, 13 Jun 2000, Bradley T. Hughes wrote: > On Tue, 13 Jun 2000, G=E9rard Roudier wrote: >=20 > >=20 > > Hello, > >=20 > > Thanks for the report and sorry for the breakage. Unfortunately I haven= 't > > any Tekram board and so, risk of device setup breakage is more likely t= o > > happen for these boards due to their proprietary NVRAM layout. Tekram u= se > > to speak highly of their success under notably Linux and seem to want t= o > > provide their own drivers. May-be, for this reason, they never sent me = any > > of their SYM53C8XX based SCSI boards for driver testing. >=20 > i tried tekram's drivers, but my machine would reboot itself randomly for > some odd reason... the sym driver has proven much more stable >=20 > > Well. I have an explanation of the breakage. The table used by the driv= er > > to translate the NVRAM sync. tag to sync. factor is probably wrong. The > > values seem to be rather ((sync. period)/4 in nano-seconds) than true S= CSI > > sync. factors. > >=20 > > Here it the offending table: > >=20 > > static u_char Tekram_sync[16] =3D > > =09{25,31,37,43, 50,62,75,125, 12,15,18,21, 6,7,9,10}; > >=20 > > The below preliminar patch should work-around the problem: > >=20 > > --- sym_hipd.c.0613=09Tue Jun 13 14:58:18 2000 > > +++ sym_hipd.c=09Tue Jun 13 15:17:54 2000 > > @@ -2960,11 +2960,15 @@ > > =09=09sym_nvram_setup_target (np, i, nvram); > > =20 > > =09=09/* > > -=09=09 * For now, guess PPR support from the period. > > +=09=09 * For now, guess PPR/DT support from the period=20 > > +=09=09 * and BUS width. > > =09=09 */ > > -=09=09if (tp->tinfo.user.period <=3D 9) { > > -=09=09=09tp->tinfo.user.options |=3D PPR_OPT_DT; > > -=09=09=09tp->tinfo.user.offset =3D np->maxoffs_dt; > > +=09=09if (np->features & FE_ULTRA3) { > > +=09=09=09if (tp->tinfo.user.period <=3D 9=09&& > > +=09=09=09 tp->tinfo.user.width =3D=3D BUS_16_BIT) { > > +=09=09=09=09tp->tinfo.user.options |=3D PPR_OPT_DT; > > +=09=09=09=09tp->tinfo.user.offset =3D np->maxoffs_dt; > > +=09=09=09} > > =09=09} > > =20 > > =09=09if (!tp->usrtags) > > ----------------------- Cut there ---------------------- >=20 > after applying this to the 1.6.1 driver from -CURRENT, everything works > great >=20 > [snip] >=20 > -- > Bradley T. Hughes > Waldemar Thranes gt. 98B N-0175 Oslo, Norway > Office: +47 21 60 48 92 > Mobile: +47 92 01 97 81 >=20 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message >=20 --------------------------------------------------- http://www.clarkson.edu/~cohentl "Sometimes crazy things happen in circuits." - Muku, 1999 "The answers to lifes problems aren't at the bottom of bottles, they're on TV" - Homer J. Simpson --------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message