From owner-freebsd-stable@FreeBSD.ORG Tue Jun 28 22:17:15 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DF8116A41C for ; Tue, 28 Jun 2005 22:17:15 +0000 (GMT) (envelope-from davrot@neuro.uni-bremen.de) Received: from neuro.uni-bremen.de (www-neuro.physik.uni-bremen.de [134.102.192.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE3C843D1F for ; Tue, 28 Jun 2005 22:17:13 +0000 (GMT) (envelope-from davrot@neuro.uni-bremen.de) Received: (qmail 31201 invoked from network); 28 Jun 2005 22:09:32 -0000 Received: from p54891a8b.dip0.t-ipconnect.de (HELO donnerschlag.bmt.lan) (84.137.26.139) by 0 with SMTP; 28 Jun 2005 22:09:32 -0000 From: David Rotermund To: freebsd-stable@freebsd.org Content-Type: text/plain Date: Wed, 29 Jun 2005 00:17:10 +0200 Message-Id: <1119997031.5260.90.camel@Donnerschlag> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) Content-Transfer-Encoding: 7bit Subject: Promise PDC40518 SATA150 and atacontrol detach/attach problem 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: Tue, 28 Jun 2005 22:17:15 -0000 Hi, I would like to hotswap hard disks (for backups) with a Promise PDC40518 SATA150 (a.k.a. S-ATA II 150 TX4). Both SATA hard disks on this controller are found while booting. I can mount and use the drives. And this works very nicely and fast. But if I detach a drive via atacontrol or via the SATA hotplug-able backplane then the drive is gone and cannot be re-attached anymore. # atacontrol list [...] ATA channel 5: Master: ad10 Serial ATA v1.0 Slave: no device present # atacontrol detach 5 # atacontrol attach 5 Master: no device present Slave: no device present Then I find the following messages in the log: for detaching: kernel: ad10: WARNING - removed from configuration for attaching: kernel: ata5-master: timeout sending command=ef kernel: ata5-master: error issueing SETFEATURES SET TRANSFER MODE command kernel: ata5-master: FAILURE - ATA_IDENTIFY timed out kernel: ata5-master: timeout sending command=ec kernel: ata5-master: error issueing ATA_IDENTIFY command Interestingly, in the booting process detection works fine (FreeBSD-5.4- Release #0 with the generic kernel): kernel: atapci1: port 0xb000-0xb0ff,0xb400-0xb47f mem 0xec800000-0xec81ffff,0xed000000-0xed000fff irq 18 at device 10.0 on pci0 kernel: atapci1: failed: rid 0x20 is memory, requested 4 kernel: ata2: channel #0 on atapci1 kernel: ata3: channel #1 on atapci1 kernel: ata4: channel #2 on atapci1 kernel: ata5: channel #3 on atapci1 [...] kernel: ad6: 190782MB [387621/16/63] at ata3-master SATA150 kernel: ad10: 190782MB [387621/16/63] at ata5-master SATA150 Exists there a patch or a workaround for this problem? Thanks! Best regards, David