From nobody@FreeBSD.org  Sat Sep  9 17:35:04 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 671E316A40F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Sep 2006 17:35:04 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2791543D49
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Sep 2006 17:35:04 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k89HZ3kV050820
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 9 Sep 2006 17:35:03 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k89HZ3Mo050793;
	Sat, 9 Sep 2006 17:35:03 GMT
	(envelope-from nobody)
Message-Id: <200609091735.k89HZ3Mo050793@www.freebsd.org>
Date: Sat, 9 Sep 2006 17:35:03 GMT
From: Gergely Czuczy <phoemix@harmless.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: SATA disk attach/unplug from a MV88SX5041 freezes the system
X-Send-Pr-Version: www-2.3

>Number:         103075
>Category:       kern
>Synopsis:       [ata] SATA disk attach/unplug from a MV88SX5041 freezes the system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 09 17:40:21 GMT 2006
>Closed-Date:    Wed Oct 12 15:07:15 UTC 2011
>Last-Modified:  Wed Oct 12 15:07:15 UTC 2011
>Originator:     Gergely Czuczy
>Release:        6.1-RELEASE, 6.1-RELEASE-p6
>Organization:
Harmless Digital
>Environment:
FreeBSD marvin.harmless.hu 6.1-RELEASE-p6 FreeBSD 6.1-RELEASE-p6 #0: Fri Sep  8 12:55:34 UTC 2006     root@marvin.harmless.hu:/usr/obj/usr/src/sys/MARVIN  i386

>Description:
the hotswap thingie for the MV88SX5041 controller is not workig.
on the following circumstances it freezes your system, it can be reproduced. when the system is frozen, then not even the numlock is working, everything stays as it were.

i'm using gmirror, but independently the usage of the given disk by gmirror, the system will freeze. so, it doesn't matter if the disk is in a mirror or not.

pciconf -lv:
atapci0@pci2:4:0:       class=0x010000 card=0x504111ab chip=0x504111ab rev=0x03 hdr=0x00
    vendor   = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
    device   = 'MV88SX5041 4-port SATA PCI-X Controller'
    class    = mass storage
    subclass = SCSI

atacontrol list for the online disks:
ATA channel 2:
    Master:  ad4 <HDT722520DLA380/V44OA9BA> Serial ATA v1.0
    Slave:       no device present
ATA channel 3:
    Master:  ad6 <HDT722520DLA380/V44OA96A> Serial ATA v1.0
    Slave:       no device present

the system also had locked up when i tried the following:
# atacontrol cap ad4

>How-To-Repeat:
known ways:
A)
1) atacontrol detach ata3
2) pull of the disk (freezes here)

B)
1) atacontrol detach ata3
2) atacontrol attach ata3 (freezes here)

>Fix:
none
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: mav 
State-Changed-When: Mon Feb 23 17:57:04 UTC 2009 
State-Changed-Why:  
Attach/detach operation was changed on 8-CURRENT. 
Controller should be retested. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103075 
State-Changed-From-To: patched->closed 
State-Changed-By: remko 
State-Changed-When: Wed Oct 12 15:07:14 UTC 2011 
State-Changed-Why:  
2 years is more then enough time to test the controller and see mav's 
comment. I am sure this works or is not considered important enough by 
the submitted to get this fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103075 
>Unformatted:
