From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 30 13:01:35 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 1077810656DD for ; Mon, 30 Mar 2009 13:01:35 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 864DB8FC1F for ; Mon, 30 Mar 2009 13:01:34 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPA id 238857460; Mon, 30 Mar 2009 16:01:33 +0300 Message-ID: <49D0C2AD.70706@FreeBSD.org> Date: Mon, 30 Mar 2009 16:01:33 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: Andriy Gapon References: <49D0A46B.3000306@icyb.net.ua> <49D0A99B.4030908@FreeBSD.org> <49D0B3B7.60400@icyb.net.ua> In-Reply-To: <49D0B3B7.60400@icyb.net.ua> X-Enigmail-Version: 0.95.0 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 13:01:35 -0000 Andriy Gapon wrote: > 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? There is significant sources difference due to modularization work done on CURRENT, so it is not so easy to directly compare sources or backport something. I haven't actually looked on/tested 7-STABLE much. -- Alexander Motin