From owner-freebsd-current Sat Feb 8 5:26:21 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B650637B405 for ; Sat, 8 Feb 2003 05:26:19 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 8DC3843F75 for ; Sat, 8 Feb 2003 05:26:17 -0800 (PST) (envelope-from tmoestl@gmx.net) Received: (qmail 6002 invoked by uid 0); 8 Feb 2003 13:26:16 -0000 Received: from p508E55B2.dip.t-dialin.net (HELO galatea.local) (80.142.85.178) by mail.gmx.net (mp008-rz3) with SMTP; 8 Feb 2003 13:26:16 -0000 Received: from tmm by galatea.local with local (Exim 4.12 #1) id 18hV2d-0000dz-00; Sat, 08 Feb 2003 14:29:11 +0100 Date: Sat, 8 Feb 2003 14:29:11 +0100 From: Thomas Moestl To: Kris Kennaway Cc: current@FreeBSD.org Subject: Re: Dumping broken? Message-ID: <20030208132910.GA624@crow.dom2ip.de> Mail-Followup-To: Kris Kennaway , current@FreeBSD.org References: <20030208111854.GA13178@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline In-Reply-To: <20030208111854.GA13178@rot13.obsecurity.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, 2003/02/08 at 03:18:54 -0800, Kris Kennaway wrote: > I'm having lots of problems with crashdumps under 5.0. Most of the > time trying to force a dump via 'call doadump' returns an error about > 'Context switches not permitted in the debugger'. Calling it again > causes the system to hang. Is anyone else seeing this? If this is on ATA, try the attached patch. It changes ata_getparam() to not block anymore by reverting to the pre-r1.138 behaviour. This is just a quick hack though, since r1.138 was apparently made to fix probing of some CD-ROMs (so these are broken again by this patch). - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ata-dump.diff" Index: ata-all.c =================================================================== RCS file: /ncvs/src/sys/dev/ata/ata-all.c,v retrieving revision 1.163 diff -u -r1.163 ata-all.c --- ata-all.c 19 Jan 2003 20:18:07 -0000 1.163 +++ ata-all.c 21 Jan 2003 17:01:13 -0000 @@ -514,7 +514,7 @@ /* apparently some devices needs this repeated */ do { - if (ata_command(atadev, command, 0, 0, 0, ATA_WAIT_INTR)) { + if (ata_command(atadev, command, 0, 0, 0, ATA_WAIT_READY)) { ata_prtdev(atadev, "%s identify failed\n", command == ATA_C_ATAPI_IDENTIFY ? "ATAPI" : "ATA"); free(ata_parm, M_ATA); --sm4nu43k4a2Rpi4c-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message