From owner-freebsd-sparc64@FreeBSD.ORG Mon Dec 1 21:53:39 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CFC016A4CE for ; Mon, 1 Dec 2003 21:53:39 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5A9C43FBF for ; Mon, 1 Dec 2003 21:53:37 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9p2/8.12.9) with ESMTP id hB25otMg060926; Tue, 2 Dec 2003 00:50:55 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)hB25osUB060922; Tue, 2 Dec 2003 00:50:54 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Tue, 2 Dec 2003 00:50:54 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Thomas Moestl In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: sparc@freebsd.org Subject: Re: panic: trap: memory address not aligned in ata_prtdev() with Nov 18 GENERIC X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2003 05:53:39 -0000 On Mon, 1 Dec 2003, Robert Watson wrote: > On Mon, 1 Dec 2003, Thomas Moestl wrote: > > > This can happen when an ATA operation times out, and is caused by an > > access to a freed structure. I have attached a workaround; IIRC sos is > > developing a more complete fix for this. > > > > ISTR the timeouts were caused by the fact that Blade 100s come with > > ATA66-capable disks and controllers, but a non-ATA66 (40 pin) cable, and > > that for some reason the driver check to catch this situation did not > > work. I am not seeing this on my machine because I replaced the cable > > long ago when I added another disk. > > > > Can you confirm that your box does only have a 40 pin cable? > > Didn't get a chance to open up the box today, however, I did apply the > patch. It doesn't panic, ... but it does now hang solid. > > FreeBSD/sparc64 (ray.rv.nailabs.com) (screen) > > login: ad0: WARNING - WRITE_DMA recovered from missing interrupt > ad0: WARNING - READ_DMA recovered from missing interrupt > > > I'll reset the box and rebuild the kernel with BREAK_TO_DEBUGGER, > assuming I can keep it up that long. Nope, can't seem to get into the debugger. It's obviously unhappy, and quite possibly pushing up the daisies. login: Dec 2 00:39:13 ray su: rwatson to root on /dev/ttyp0 ad0: WARNING - WRITE_DMA recovered from missing interrupt ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) ata2: resetting devices .. ad0: FAILURE - already active DMA on this device ad0: setting up DMA failed done ad0: WARNING - WRITE_DMA recovered from missing interrupt ad0: WARNING - READ_DMA recovered from missing interrupt Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research