From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 27 14:50:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72E51106568D for ; Thu, 27 Aug 2009 14:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 50B058FC2F for ; Thu, 27 Aug 2009 14:50:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7REo18A047571 for ; Thu, 27 Aug 2009 14:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7REo1xr047570; Thu, 27 Aug 2009 14:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 27 Aug 2009 14:50:01 GMT Resent-Message-Id: <200908271450.n7REo1xr047570@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Carsten Menke Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39C1C106568D for ; Thu, 27 Aug 2009 14:42:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 294958FC4D for ; Thu, 27 Aug 2009 14:42:13 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7REgCti062487 for ; Thu, 27 Aug 2009 14:42:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7REgCOh062486; Thu, 27 Aug 2009 14:42:12 GMT (envelope-from nobody) Message-Id: <200908271442.n7REgCOh062486@www.freebsd.org> Date: Thu, 27 Aug 2009 14:42:12 GMT From: Carsten Menke To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/138235: Hotswap with SATA drives and AHCI enabled does not work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 14:50:02 -0000 >Number: 138235 >Category: kern >Synopsis: Hotswap with SATA drives and AHCI enabled does not work >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 27 14:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Carsten Menke >Release: 7.2 >Organization: Prozesse im Unternehmen >Environment: FreeBSD server.local 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0: Tue Aug 25 18:58:21 CEST 2009 >Description: I have a Icydock MB674SPF-B hotswap backplane attached to a Gigabyte MA78GM-UD2H Motherboard with a AMD SB710 Southbridge and AHCI enabled in the BIOS. The good news, it works better than in Linux. However, it does not work fully, because the removal of a device is recognized, but the re-insertion of the drive is not. cat /var/run/devd.pipe -subdisk6 at on ad6 -ad6 at on ata3 !system=DEVFS subsystem=CDEV type=DESTROY cdev=ad6 If I plug the drive back in, there is NO message generated through devd.pipe and the drive is not recognized. The current workaround for me is: Hotswap remove the drive atacontrol detach ata3 Put the drive back in atacontrol attach ata3 then everything works as expected. Further more, I'm not able to catch the detach event generated through devd and run atacontrol detach automatically, but that's another problem >How-To-Repeat: 1. Remove drive 2. Insert drive >Fix: Workaround: atacontrol detach ataX atacontrol attach ataX >Release-Note: >Audit-Trail: >Unformatted: