From nobody@FreeBSD.org  Thu Jul  6 18:46:56 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 58B1F16A4DD
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Jul 2006 18:46:56 +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 2A33F43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Jul 2006 18:46:56 +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 k66IktvP074804
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Jul 2006 18:46:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k66Ikt2F074803;
	Thu, 6 Jul 2006 18:46:55 GMT
	(envelope-from nobody)
Message-Id: <200607061846.k66Ikt2F074803@www.freebsd.org>
Date: Thu, 6 Jul 2006 18:46:55 GMT
From: trasz <trasz@pin.if.uz.zgora.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ataraid hangs in g_waitidle when attaching to nVidia MediaShield RAID0 with broken drive
X-Send-Pr-Version: www-2.3

>Number:         99850
>Category:       kern
>Synopsis:       [ar] ataraid hangs in g_waitidle when attaching to nVidia RAID0 with broken drive
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 06 18:50:15 GMT 2006
>Closed-Date:    
>Last-Modified:  Sat Apr 21 08:36:53 GMT 2007
>Originator:     trasz
>Release:        6.1
>Organization:
>Environment:
FreeBSD traszkan.ds7 6.1-RELEASE-p1 FreeBSD 6.1-RELEASE-p1 #1: Thu Jun 22 15:52:56 CEST 2006     trasz@traszkan.ds7:/usr/obj/usr/src/sys/TRASHCAN  i386
>Description:
I've got a machine with NForce pseudoraid controller, with two disks
configured as RAID0.

One of these disks is broken (physically).  'kldload ataraid' fails with
(retyped by hand):

ar0: 476950MB <nVidia MediaShield RAID0 (stripe 64KB)> status: READY
ar0: disk0 READY using ad4 as ata2-master
ar0: disk1 READY using ad6 as ata2-master
ad4: FAILURE - READ_DMA status=51<READY, ???_ERROR> error=1<ILLEGAL_LENGTH>
ar0: FAILURE - RAID0 array broken
ar0: writing of nVidia MediaShield metadata is NOT supported yet

^T shows:

load: 0.00 cmd: kldload 249 [g_waitidle] 0.00u 0% 544k

It hangs here.  When ataraid is compiled into the kernel - like in GENERIC -
it makes booting impossible.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
