Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2003 14:29:11 +0100
From:      Thomas Moestl <tmoestl@gmx.net>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        current@FreeBSD.org
Subject:   Re: Dumping broken?
Message-ID:  <20030208132910.GA624@crow.dom2ip.de>
In-Reply-To: <20030208111854.GA13178@rot13.obsecurity.org>
References:  <20030208111854.GA13178@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <tmoestl@gmx.net>	http://www.tu-bs.de/~y0015675/
              <tmm@FreeBSD.org>	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030208132910.GA624>