Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 1998 08:23:44 +0200 (CEST)
From:      Blaz Zupan <blaz@gold.amis.net>
To:        "Kenneth D. Merry" <ken@plutotech.com>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/cam/scsi scsi_da.c
Message-ID:  <Pine.BSF.4.02A.9810130820380.617-100000@gold.amis.net>
In-Reply-To: <199810122247.QAA27886@panzer.plutotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > Yes, one of my disks completely hangs so a CAM-ified kernel can not boot.
> > One disk is an old Quantum 540MB, the other is a 1.5GB NEC. I suspect the
> > Quantum, I'll be finding out which one is the culprit tomorrow.
> 
> Then you've probably got a different problem.  The cache sync doesn't
> happen until final close, or system shutdown.

Well, the following patch works just fine:

*** /sys/cam/scsi/scsi_da.c.orig        Thu Sep 17 22:19:58 1998
--- /sys/cam/scsi/scsi_da.c     Thu Sep 17 22:22:57 1998
***************
*** 358,363 ****
--- 358,364 ----
  
        dsclose(dev, fmt, softc->dk_slices);
  
+ #if 0
        ccb = cam_periph_getccb(periph, /*priority*/1);
  
        scsi_synchronize_cache(&ccb->csio,
***************
*** 374,379 ****
--- 375,381 ----
                          /*sense_flags*/0, &softc->device_stats);
  
        xpt_release_ccb(ccb);
+ #endif
  
        if ((softc->flags & DA_FLAG_PACK_REMOVABLE) != 0) {
                daprevent(periph, PR_ALLOW);


In fact, I'm writing this mail from a machine with the above patch. I was
told by Justin that you were working on a quirk entry which would enable
to selectively turn off the above for certain disks, and I believe the
patch in the subject is it. Or am I mistaken? My two disks are:

da0 at ahc0 bus 0 target 0 lun 0
da0: <QUANTUM LPS540S 5900> Fixed Direct Access SCSI2 device 
da0: 10.0MB/s transfers (10.0MHz, offset 8)
da0: 516MB (1057616 512 byte sectors: 64H 32S/T 516C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <NEC D3847 0307> Fixed Direct Access SCSI2 device 
da1: 10.0MB/s transfers (10.0MHz, offset 15)
da1: 1547MB (3170160 512 byte sectors: 255H 63S/T 197C)

I believe the Quantum is at fault, but will know for sure later today,
when I get home from work.

Best regards,

Blaz Zupan, blaz@medinet.si, http://home.amis.net/blaz
Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9810130820380.617-100000>