From owner-freebsd-bugs Tue Jun 4 1:20:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 949CE37B404 for ; Tue, 4 Jun 2002 01:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g548K1h57932; Tue, 4 Jun 2002 01:20:01 -0700 (PDT) (envelope-from gnats) Received: from menalto.com (www.menalto.com [198.144.206.35]) by hub.freebsd.org (Postfix) with ESMTP id 2CD3B37B440 for ; Tue, 4 Jun 2002 01:14:05 -0700 (PDT) Received: from harmony.menalto.com (7cbky40r7mqo3v2k@harmony [127.0.0.1]) by menalto.com (8.12.1/8.11.6) with ESMTP id g548Dvup062046 for ; Tue, 4 Jun 2002 01:13:57 -0700 (PDT) (envelope-from bharat@harmony.menalto.com) Received: (from bharat@localhost) by harmony.menalto.com (8.12.1/8.12.1/Submit) id g548Dvwq062045; Tue, 4 Jun 2002 01:13:57 -0700 (PDT) Message-Id: <200206040813.g548Dvwq062045@harmony.menalto.com> Date: Tue, 4 Jun 2002 01:13:57 -0700 (PDT) From: Bharat Mediratta Reply-To: Bharat Mediratta To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/38886: Maxtor 3000LE requires another sys/cam/scsi_da.c quirk Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38886 >Category: kern >Synopsis: Maxtor 3000LE requires another sys/cam/scsi_da.c quirk >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: Tue Jun 04 01:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Bharat Mediratta >Release: FreeBSD 4.5-RELEASE-p6 i386 >Organization: menalto.com >Environment: System: FreeBSD unity.menalto.com 4.5-RELEASE-p6 FreeBSD 4.5-RELEASE-p6 #3: Tue Jun 4 00:45:50 P\ DT 2002 bharat@unity.menalto.com:/usr/obj/usr/src/sys/UNITY i386 >Description: I have a Maxtor 3000LE USB drive attached to my box. Drive info (from /var/log/message after boot): da1 at umass-sim0 bus 0 target 0 lun 0 da1: Fixed Direct Access SCSI-0 device da1: 650KB/s transfers da1: 117246MB (240121728 512 byte sectors: 64H 32S/T 51710C) (the 2nd line above contains less than and greater than signs, and in case send-pr garbles it, the vender/product/version code is "Maxtor 4 G120J6 GAK8") When running fdisk on the drive I get this error: (da1:umass-sim0:0:0:0): READ(06). CDB: 8 0 0 40 1 0 (da1:umass-sim0:0:0:0): ILLEGAL REQUEST asc:21,0 (da1:umass-sim0:0:0:0): Logical block address out of range This looks to be the 6_BYTE problem. There's already a quirk in scsi_da.c for the Maxtor 3000LE, but they've come out with a new drive that has a different product ID causing the existing quirk not to match. >How-To-Repeat: 1. Attach Maxtor 3000LE drive with product id "G120J6" to the USB bus 2. run /stand/sysinstall 3. select FDISK 4. Change partition info 5. Attempt to write new partition to disk >Fix: Apply this patch to /usr/src/sys/cam/scsi/scsi_da.c: 265a266,272 > { > /* > * Another Maxtor 3000LE USB Drive > */ > {T_DIRECT, SIP_MEDIA_FIXED, "Maxtor*", "G120J6*", "*"}, > /*quirks*/ DA_Q_NO_6_BYTE > }, >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message