From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 8 20:36:07 2014 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B7C2EB3D for ; Wed, 8 Jan 2014 20:36:07 +0000 (UTC) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 541DD1F94 for ; Wed, 8 Jan 2014 20:36:07 +0000 (UTC) Received: from r2d2 ([82.69.141.170]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50007475910.msg for ; Wed, 08 Jan 2014 20:36:03 +0000 X-Spam-Processed: mail1.multiplay.co.uk, Wed, 08 Jan 2014 20:36:03 +0000 (not processed: message from valid local sender) X-MDDKIM-Result: neutral (mail1.multiplay.co.uk) X-MDRemoteIP: 82.69.141.170 X-Return-Path: prvs=10857851f7=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-scsi@freebsd.org Message-ID: <430F34AB88D44C4BAF31DDC7AD214137@multiplay.co.uk> From: "Steven Hartland" To: "Garrett Wollman" , References: <21197.39676.138433.937002@khavrinen.csail.mit.edu> Subject: Re: Attempting ATA TRIM on SAS devices? Date: Wed, 8 Jan 2014 20:36:13 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jan 2014 20:36:07 -0000 It should only do this if your drive reports it supports ATA_TRIM by setting the ATA_SUPPORT_DSM_TRIM bit in the response to an ATA_IDENTIFY command sent to it using ATA passthrough. What does the following report: camcontrol identify da12 Regards Steve ----- Original Message ----- From: "Garrett Wollman" To: Sent: Wednesday, January 08, 2014 6:37 PM Subject: Attempting ATA TRIM on SAS devices? > On a freshly-installed 9.2 system, I see the following: > > (da12:mps0:0:59:0): ATA TRIM failed, switching to UNMAP BIO_DELETE > (da12:mps0:0:59:0): ATA COMMAND PASS THROUGH(16). CDB: 85 0d 06 00 01 00 01 00 00 00 00 00 00 40 06 00 > (da12:mps0:0:59:0): CAM status: SCSI Status Error > (da12:mps0:0:59:0): SCSI status: Check Condition > (da12:mps0:0:59:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) > (da12:mps0:0:59:0): Error 22, Unretryable error > (da35:mps0:0:82:0): ATA TRIM failed, switching to UNMAP BIO_DELETE > (da35:mps0:0:82:0): ATA COMMAND PASS THROUGH(16). CDB: 85 0d 06 00 01 00 01 00 00 00 00 00 00 40 06 00 > (da35:mps0:0:82:0): CAM status: SCSI Status Error > (da35:mps0:0:82:0): SCSI status: Check Condition > (da35:mps0:0:82:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) > (da35:mps0:0:82:0): Error 22, Unretryable error > > da12 and da35 are identified as follows: > > [root@nfs-prod-3 /export]# camcontrol inquiry da12 > pass13: Fixed Direct Access SCSI-5 device > pass13: Serial Number A179E011337000251 > pass13: 600.000MB/s transfers, Command Queueing Enabled > [root@nfs-prod-3 /export]# camcontrol inquiry da35 > pass36: Fixed Direct Access SCSI-5 device > pass36: Serial Number A179E011337000234 > pass36: 600.000MB/s transfers, Command Queueing Enabled > > Why would it be trying ATA commands here? These are SAS devices. > > -GAWollman > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.