Date: Sat, 02 Oct 1999 08:27:07 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Peter Wemm <peter@netplex.com.au> Cc: current@freebsd.org Subject: Re: BEWARE: CAM changes broke AHC! Message-ID: <16744.938845627@critter.freebsd.dk> In-Reply-To: Your message of "Sat, 02 Oct 1999 06:03:48 %2B0800." <19991001220348.A90A71CA7@overcee.netplex.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <19991001220348.A90A71CA7@overcee.netplex.com.au>, Peter Wemm writes : >If you boot with a -current kernel: > >(da0:ahc0:0:0:0) data overrun detected in Data-In phase. Tag = 0x8 >(da0:ahc0:0:0:0) Have seen Data Phase. Length = 0, NumSGs = 1 > >Backing out the following sys/cam/scsi change set: > >revision 1.39 >date: 1999/10/01 09:34:09; author: phk; state: Exp; lines: +47 -117 >Introduce the disk mini-layer and devstat_end_transaction_buf() in cam/scsi. > >..and the other files touched at the same time revived it and made the >system bootable again. > >I am particularly suspicious about this: > >@@ -284,26 +283,14 @@ > return (error); /* error code from tsleep */ > } > >- if ((softc->flags & DA_FLAG_OPEN) == 0) { >- if (cam_periph_acquire(periph) != CAM_REQ_CMP) >- return(ENXIO); >- softc->flags |= DA_FLAG_OPEN; >- } >+ if (cam_periph_acquire(periph) != CAM_REQ_CMP) >+ return(ENXIO); >+ softc->flags |= DA_FLAG_OPEN; > >At first glance, it would appear it's re-inquiring on each open instead of the first open, including while it's mounted. I wasn't sure, so rather than >risk disks, I backed the lot out and it worked again. Open is only called once on first open, so this isn't it. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16744.938845627>