Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  4 Oct 2000 07:22:10 -0700 (PDT)
From:      nickc@corp.firstindustrial.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/21752: Infortrend IFT-3102 doesn't like SCSI Cache Sync
Message-ID:  <20001004142210.E255D37B66D@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         21752
>Category:       kern
>Synopsis:       Infortrend IFT-3102 doesn't like SCSI Cache Sync
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 04 07:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Nick R. Colakovic
>Release:        4.1.1-STABLE
>Organization:
First Industrial Realty Trust
>Environment:
FreeBSD stvincent2.firstindustrial.com 4.1.1-STABLE FreeBSD 4.1.1-STABLE #0: Wed Sep 27 09:48:02 CDT 2000     nickc@stvincent2.firstindustrial.com:/usr/obj/usr/src/sys/SCLEAN  i386

Hardware Environment:

Intel L440GX+ Server Board
2 X PII-450
128MB RAM
Onboard Adaptec AIC-78xx U2 Controller attached to channel 0 on IFT-3102
w/ both IFT-3102 and system board controllers set at 80 MB/s U2 operation.
Onboard Intel Pro/100+ NIC


>Description:
The Infortrend IFT-3102 is a external multihost U2 SCSI to U2 SCSI controller.   The logical drives/partions created using the controller  appear on a conventional SCSI controller as a normal SCSI disk drive.  The advantage of this was to provide host OS independance for RAID support (esp. given the 2.x and 3.x branches limited HW raid support).
   FreeBSD 3.x and 4.x are setup to send SCSI CACHE_SYNC commands to SCSI disk drives unless they are listed in the scsi_da.c quirk table as not supporting this.  The IFT-3102 doesn't accept this command and as a result a kernel error message is seen at shutdown.  I haven't yet experienced a operational problem under 4.1-STABLE and greater as a result.  But this problem did cause 3.5-RELEASE to crash during the post install reboot.  
>How-To-Repeat:
Install FreeBSD 3.4-RELEASE and greater on a IFT-3102 hosted logical drive.  Reboot and you will get an error like the following:

syncing disks... 12
done
Uptime: 21h18m36s
(da0:ahc0:0:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da0:ahc0:0:0:0): ILLEGAL REQUEST asc:20,0
(da0:ahc0:0:0:0): Invalid command operation code
Rebooting...

>Fix:
Add the IFT-3102 to the scsi_da.c quirks table disabling Sync Cache.  Apply the following patch to sys/cam/scsi_da.c, recompile your kernel and reboot:

*** sys/cam/scsi/scsi_da.c.orig Wed Oct  4 09:10:18 2000
--- sys/cam/scsi/scsi_da.c      Wed Oct  4 09:10:32 2000
***************
*** 215,221 ****
                 */
                {T_DIRECT, SIP_MEDIA_REMOVABLE, "Y-E DATA", "USB-FDU", "*"},
                /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
!       }
  };

  static        d_open_t        daopen;
--- 215,230 ----
                 */
                {T_DIRECT, SIP_MEDIA_REMOVABLE, "Y-E DATA", "USB-FDU", "*"},
                /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
!       },
!       {
!               /*
!                * Infortrend IFT-3102 SCSI to SCSI controller as of
!                * Firmware Version 2.23 doesn't like SCSI SYNC_CACHE
!                */
!               {T_DIRECT, SIP_MEDIA_FIXED, "IFT", "3102", "*"},
!               /* quirks*/ DA_Q_NO_SYNC_CACHE
!       }
!
  };

  static        d_open_t        daopen;



>Release-Note:
>Audit-Trail:
>Unformatted:


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001004142210.E255D37B66D>