From owner-freebsd-stable Fri Apr 5 7:32:33 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by hub.freebsd.org (Postfix) with ESMTP id 6474837BC08 for ; Fri, 5 Apr 2002 07:28:22 -0800 (PST) Received: from fwd04.sul.t-online.de by mailout05.sul.t-online.com with smtp id 16tVcj-0001DU-05; Fri, 05 Apr 2002 17:27:33 +0200 Received: from frolic.no-support.loc (520094253176-0001@[80.130.218.50]) by fmrl04.sul.t-online.com with esmtp id 16tVcd-0NNQn2C; Fri, 5 Apr 2002 17:27:27 +0200 Received: (from bjoern@localhost) by frolic.no-support.loc (8.11.6/8.9.3) id g35FOlW01631; Fri, 5 Apr 2002 17:24:47 +0200 (CEST) (envelope-from bjoern) From: Bjoern Fischer Date: Fri, 5 Apr 2002 17:24:47 +0200 To: =?iso-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-stable@FreeBSD.ORG Subject: Problems w/ MFCed ata driver Message-ID: <20020405152447.GA919@frolic.no-support.loc> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.3.25i X-Sender: 520094253176-0001@t-dialin.net Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello S=F8ren, While I'm building a backup solution for a client I was very pleased about the MFC of the attach/detach capable ata driver. The machine uses a SiS 5591, OS is out-of-the-box 4.5-20020402-STABLE, vanilla GENERIC+DDB kernel. During normal operarion everything seems to work fine, but I have a reproducible crash situation and some other issues: su-2.05a# atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI rev 5 Slave: no device present ATA channel 1: Master: ad2 ATA/ATAPI rev 5 Slave: no device present 1.) FreeBSD constantly crashes, when I try to detach a channel twice: su-2.05a# atacontrol detach 1 su-2.05a# atacontrol detach 1 ata_detach() seems to call bus_release_resource() with (dev=3D0xc15a8300, type=3D1, rid=3D0, r=3D0x0; the latter one does not seem= right) although the channel is already detached and the kernel crashes later in nexus_release_resource(). BTW: It is possible to detach a channel with mounted devices. Ok, this is a "Doctor, it hurts when I poke me here."--"Then don't do it."-thing, but would it be that complicated to add some protect-me-from-myself-securit= y? 2.) This one is somehow more complicated. Fortunately it is not critical for me since there are no supported devices in my system: su-2.05a# atacontrol enclosure 1 0 atacontrol: ioctl(ATAENCSTAT): Device not configured su-2.05a# atacontrol enclosure 1 0 The process hangs in tsleep() resp. mi_switch() forever. Any further actions on that ata channel may lead to a crash. Everything else keeps running. 3.) Is there a way to determine whether a channel is detached or attached with no devices? I can supply complete crash dumps on demand. -Bj=F6rn Fischer --=20 -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+ K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+=20 ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message