From owner-freebsd-stable@FreeBSD.ORG Tue Dec 30 00:24:40 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E50E2106566C for ; Tue, 30 Dec 2008 00:24:40 +0000 (UTC) (envelope-from ehrmann@gmail.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id BA1408FC0C for ; Tue, 30 Dec 2008 00:24:40 +0000 (UTC) (envelope-from ehrmann@gmail.com) Received: from [10.0.0.158] (unknown [70.135.135.115]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id C575123E3F7; Mon, 29 Dec 2008 19:24:38 -0500 (EST) Message-ID: <49596A3D.1060003@gmail.com> Date: Mon, 29 Dec 2008 16:24:29 -0800 From: David Ehrmann User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <49582FB2.8030300@gmail.com> <4958652B.80101@gmail.com> <49588FF7.2020702@yandex.ru> In-Reply-To: <49588FF7.2020702@yandex.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: SATA hotplug and AHCI 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, 30 Dec 2008 00:24:41 -0000 Andrey V. Elsukov wrote: > David Ehrmann wrote: >>> How can I avoid all this and get the drive to be recognized >>> automatically? Can I do this with devd? Did I do what I needed to >>> correctly set up hotplugging? > > Can you enable verbose mode in /boot/loader.conf > (echo 'boot_verbose="YES"' >> /boot/loader.conf)? > And show your /var/run/dmesg.boot and kernel's output when > you unplug and plug drive back? > Here's the baseline output of dmesg and /var/run/dmesg.boot: http://pastebin.com/f5ab2ed28 dmesg.boot never changes. When I remove the drive, I see this from dmesg: ata4: DISCONNECT requested subdisk8: detached ad8: detached ata4: DISCONNECTED And when I plug it back in, ata4: CONNECT requested ata4: DISCONNECTED ata4: CONNECTED ata4: SATA connect time=0ms ata4: SIGNATURE: 0000000c ata4: No signature, asuming disk device ata4: ahci_reset devices=0x1 ata4: reiniting channel .. ata4: SATA connect time=0ms ata4: SIGNATURE: 0000000c ata4: No signature, asuming disk device ata4: ahci_reset devices=0x1 ata4: reinit done .. ata4: reiniting channel .. ata4: SATA connect time=0ms ata4: SIGNATURE: 0000000c ata4: No signature, asuming disk device ata4: ahci_reset devices=0x1 ata4: reinit done .. atacontrol list still says "no device present" for that channel.