From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 30 11:57:48 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E92681065670; Mon, 30 Mar 2009 11:57:48 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E51C38FC24; Mon, 30 Mar 2009 11:57:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA26363; Mon, 30 Mar 2009 14:57:45 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <49D0B3B7.60400@icyb.net.ua> Date: Mon, 30 Mar 2009 14:57:43 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090323) MIME-Version: 1.0 To: Alexander Motin References: <49D0A46B.3000306@icyb.net.ua> <49D0A99B.4030908@FreeBSD.org> In-Reply-To: <49D0A99B.4030908@FreeBSD.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org Subject: Re: hot-attach SATA drive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2009 11:57:49 -0000 on 30/03/2009 14:14 Alexander Motin said the following: > Andriy Gapon wrote: >> Recently I tried to hot-attach a SATA drive to a running system. >> Controller is ICH9 in AHCI mode. Physically/electronically everything went >> smoothly, the drive spun-up. Then I tried to detach and re-attach all channels >> with no devices on them using atacontrol. I did it 3 times to be sure, but no new >> disk showed up. Then I finally rebooted, the disk showed up OK. >> >> Question: was hot-attach expected to work? Is there a limitation in hardware or in >> our driver? >> >> Note: I attached the drive to a regular SATA port, not eSATA. > > Which system version do you use? With recent CURRENT I have successfully > tested insert/remove SATA drives with ICH8, ICH8M and JMB363 AHCI > controllers channel attach/detach. Theoretically it is possible to > insert/remove SATA drives even without channel attach/detach. Remove > works fine, but such really hot insertion functionality is not > implemented properly now and so blocked. It was stable/7, amd64. Maybe there is a small subset of the changes in current that I could try in stable/7? -- Andriy Gapon