From owner-freebsd-stable@FreeBSD.ORG Thu Aug 2 12:52:57 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 385701065673 for ; Thu, 2 Aug 2012 12:52:57 +0000 (UTC) (envelope-from sklauder@trimind.de) Received: from mikako.shopkeeper.de (mikako.shopkeeper.de [82.119.175.20]) by mx1.freebsd.org (Postfix) with ESMTP id 9BCED8FC12 for ; Thu, 2 Aug 2012 12:52:56 +0000 (UTC) Received: from avalon.dobu.local (p508D761D.dip.t-dialin.net [80.141.118.29]) (authenticated bits=0) by mikako.shopkeeper.de (8.14.3/8.14.3) with ESMTP id q72CiHBw046959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 2 Aug 2012 14:44:19 +0200 (CEST) (envelope-from sklauder@trimind.de) Received: from avalon.dobu.local (localhost [127.0.0.1]) by avalon.dobu.local (8.14.5/8.14.2) with ESMTP id q72CiGlw020548 for ; Thu, 2 Aug 2012 14:44:16 +0200 (CEST) (envelope-from sklauder@avalon.dobu.local) Received: (from sklauder@localhost) by avalon.dobu.local (8.14.5/8.14.5/Submit) id q72CiGeC020547 for freebsd-stable@freebsd.org; Thu, 2 Aug 2012 14:44:16 +0200 (CEST) (envelope-from sklauder) Date: Thu, 2 Aug 2012 14:44:16 +0200 From: Sascha Klauder To: freebsd-stable@freebsd.org Message-ID: <20120802124416.GA20450@trimind.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.97.5 at mikako.shopkeeper.de X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mikako.shopkeeper.de [82.119.175.20]); Thu, 02 Aug 2012 14:44:20 +0200 (CEST) Subject: ATA timeout with TRIM flag set X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 12:52:57 -0000 Hi all, I've bought a 60 GB Intel 330 series SSD, connected to a Promise TX4 (FastTrak 4310) SATA300 controller (PDC40719). Running 9.0-STABLE dated mid-January 2012. Writing to any filesystem that has TRIM enabled will make the disk timeout and eventually panic the system. atapci0: port 0xe000-0xe07f,0xd000-0xd0ff mem 0xf6042000-0xf6042fff,0xf6000000-0xf601ffff irq 11 at device 8.0 on pci0 ata5: SIGNATURE: 00000101 ada0 at ata5 bus 0 scbus5 target 0 lun 0 ada0: ATA-9 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada0: 57241MB (117231408 512 byte sectors: 16H 63S/T 16383C) Writing to a TRIM-enabled UFS filesystem will almost immediately stall whatever process running in ufs or wdrain, with the disk seemingly dropping off the bus after about 15s: ata5: SIGNATURE: 00000101 ata5: SIGNATURE: ffffffff ata5: timeout waiting to issue command ata5: error issuing ATA_IDENTIFY command ata5: SIGNATURE: ffffffff (ada0:ata5:0:0:0): lost device ata5: timeout waiting to issue command ata5: error issuing unknown CMD (0x06) command ata5: SIGNATURE: ffffffff g_vfs_done():ada0s1a[WRITE(offset=40711716864, length=32768)]error = 6 /dev: got error 6 while accessing filesystem panic: softdep_deallocate_dependencies: unrecovered I/O error Uptime: 14m36s ata5: timeout waiting to issue command ata5: error issuing FLUSHCACHE48 command ata5: SIGNATURE: ffffffff (ada0:ata5:0:0:0): Synchronize cache failed The drive works fine without TRIM on this controller. I also had no issues whatsoever with two SATA harddisks pre- viously running on the same card for several months. I believe there's an issue with the controller since I've verified that the drive works fine with TRIM enabled on two different SATA controllers (nForce3 and nForce MCP77 AHCI on Gigabyte mainboards). Any use opening a PR or should I get another controller? I'm aware there are "issues" at least with PDC40718-based cards. Cheers, -sascha