From: David Dillow Date: Wed, 22 Sep 2004 03:25:48 +0000 Subject: Re: RED State Exception on Ultra 1, 2.6.9-rc2 Message-Id: <1095823548.5697.37.camel@ori.thedillows.org> List-Id: References: <1095742791.3421.3.camel@ori.thedillows.org> In-Reply-To: <1095742791.3421.3.camel@ori.thedillows.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org On Tue, 2004-09-21 at 15:48, David S. Miller wrote: > TSTATE's layout is defined by macros in include/asm-sparc64/pstate.h Thanks, but my quick decode of that info didn't turn up anything very interesting: current window is always 2, address space always 0x80. The other bits are Privilege, Intr enable, and some globals -- nothing that means much to me, or looks promising. > Anyways, in free_streaming_cluster() we took a vectored interrupt (trap > type 0x60). In tl0_ivec we took an illegal instruction trap, which is > very odd because the instruction at 0x408c00:tl0_ivec is a branch. Should I track the vectored interrupt? What's it used for -- it looks like its used for cross-CPU calls, but this is a single CPU. Are there other uses? I ask, because we took the first trap on "stx %g0, [%o2]", which corresponds with this line in free_streaming_cluster(): iopte_val(*iopte) = 0UL; Could iopte point somewhere nasty? Does this seem like a possible pointer to a bug, or just a red herring? > It looks like something clobbered the instruction there, that is my best > guess. If you get one of these again you can, at the OBP prompt, say: > > ok 0x408c00 dis > > and see if the instruction has been corrupted there. If I can reproduce it, I will check this. Any suggestions as to reproducing it? I was doing an "apt-get upgrade" when it occurred, somewhere around restarting /sbin/init. I'm guessing just load the CPU and disk, since that's what it was doing mostly. > It may be your DMA mapping changes, so doing the following wouldn't hurt: > > 1) try running with those DMA mapping patches reverted > 2) audit those patches for possible errors And 3) Audit my lpvi driver for memory problems -- it had been in use earlier in this boot. I've seen some slab corruption, but I'm pretty sure that was from some error recovery code in the lpvi driver that I've since fixed. If I can cause it to reappear with the driver installed (and used a bit), then I will also try without it. Thanks for your help, Dave