From owner-freebsd-current Tue Mar 21 13:27:28 2000 Delivered-To: freebsd-current@freebsd.org Received: from mass.cdrom.com (mg130-183.ricochet.net [204.179.130.183]) by hub.freebsd.org (Postfix) with ESMTP id 0715237BD02 for ; Tue, 21 Mar 2000 13:27:21 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id NAA00839; Tue, 21 Mar 2000 13:29:46 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <200003212129.NAA00839@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Brad Knowles Cc: "John W. DeBoskey" , freebsd-current@FreeBSD.ORG, Brad Chisholm Subject: Re: AMI MegaRAID lockup? not accepting commands. In-reply-to: Your message of "Tue, 21 Mar 2000 10:25:53 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 21 Mar 2000 13:29:45 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > At 7:25 PM -0800 2000/3/20, Mike Smith wrote: > > > Not that I consider this particuarly optimal; busy-waiting for the > > controller is a terrible waste of the host CPU. A better solution would > > probably defer the command and try again a short time later, but let's > > see if this works first. > > Since this is a device driver, I guess you can't usleep() and > then check again? Is there anything else useful you could be doing > during that period of time -- other than busy waiting? Well, I call amr_done() to collect completed commands. There's not much other housekeeping that's possible at that point. -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message