From owner-freebsd-stable Fri Apr 5 8: 2: 0 2002 Delivered-To: freebsd-stable@freebsd.org Received: from freebsd.dk (fw-rl0.freebsd.dk [212.242.86.114]) by hub.freebsd.org (Postfix) with ESMTP id DC93737B4BB for ; Fri, 5 Apr 2002 08:01:07 -0800 (PST) Received: (from sos@localhost) by freebsd.dk (8.11.6/8.11.6) id g35G0ZV50417; Fri, 5 Apr 2002 18:00:35 +0200 (CEST) (envelope-from sos) From: Søren Schmidt Message-Id: <200204051600.g35G0ZV50417@freebsd.dk> Subject: Re: Problems w/ MFCed ata driver In-Reply-To: <20020405152447.GA919@frolic.no-support.loc> To: Bjoern Fischer Date: Fri, 5 Apr 2002 18:00:35 +0200 (CEST) Cc: freebsd-stable@FreeBSD.ORG Reply-To: sos@freebsd.dk X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 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 It seems Bjoern Fischer wrote: > 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=0xc15a8300, type=1, rid=0, r=0x0; the latter one does not seem right) > although the channel is already detached and the kernel crashes later in > nexus_release_resource(). Hmm, "dont do that" :) Its an artifact of newbus/missing devfs that it doesn't get caught, I'll think about how to do this.. > 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-security? There is no reliable way to do that AFAIK.. > 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. Oops, thats a genuine bug alright.. fixed and committed. > 3.) Is there a way to determine whether a channel is detached or attached > with no devices? Not in -stable because of the under 1 stated reasons. -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message