Subject: Re: current kernel on amd64 crashes
To: None <port-amd64@netbsd.org>
From: Christoph Egger <Christoph_Egger@gmx.de>
List: port-xen
Date: 01/10/2008 12:14:09
On Thursday 06 December 2007 12:55:35 Christoph Egger wrote:
> On Thursday 06 December 2007 12:33:41 Nicolas Joly wrote:
> > On Thu, Dec 06, 2007 at 12:27:34PM +0100, Kurt Schreiner wrote:
> > > Hi,
> > >
> > > a kernel compiled from source cvs update'd some minutes ago
> > > doesn't come up on my dual opteron machine. No changes where
> > > made to the (customized) config file... Is this just me?
> >
> > Same here. The problem seems to be with src/sys/arch/x86/isa/clock.c
> > lastest revision (1.14), reverting to previous one (1.13) make it boot
> > again.
>
> I am seeing another issue which I only see when I boot it as Xen HVM guest
>
> (thus I add port-xen@ and Manuel to CC list):
> >> NetBSD/x86 BIOS Boot, Revision 3.3
> >> (builds@wb28, Thu Nov  1 11:09:38 PDT 2007)
> >> Memory: 639/130027 k
>
> 4162904+5344192+257360=0xa50e10
> Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
>     2006, 2007
>     The NetBSD Foundation, Inc.  All rights reserved.
> Copyright (c) 1982, 1986, 1989, 1991, 1993
>     The Regents of the University of California.  All rights reserved.
>
> NetBSD 4.99.34 (INSTALL) #0: Thu Nov  1 12:27:29 PDT 2007
>
> builds@wb28:/home/builds/ab/HEAD/amd64/200711010002Z-obj/home/builds/ab/HEA
>D/src/sys/arch/amd64/compile/INSTALL total memory = 127 MB
> avail memory = 112 MB
> mainbus0 (root)
> cpu0 at mainbus0 apid 0: (boot processor)
> cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+, 2399.99 MHz
> uvm_fault(0xffffffff80b267c0, 0xffffffff80112000, 2) -> e
> fatal page fault in supervisor mode
> trap type 6 code 3 rip ffffffff802e8a3a cs 8 rflags 10086 cr2
> ffffffff80112200 cpl 7 rsp ffffffff80b56a50
> panic: trap
>
> The operating system has halted.
> Please press any key to reboot.
>
>
> This still happens with 4.99.39.

This crash has been "fixed" in Xen by allowing unaligned and/or page-crossing 
writes. NetBSD 4.99.39 boots fine.

BTW: What happened with the PIT timer code between 4.99.39 and 4.99.48?

NetBSD 4.99.48 hangs, because it tries to access the PIT timer via 
page-crossing writes. Xen's PIT emulation does not support this yet.


>> NetBSD/x86 BIOS Boot, Revision 3.3
>> (builds@wb28, Sun Jan  6 18:01:51 PST 2008)
>> Memory: 639/130027 k
Press return to boot now, any other key for boot menu
booting cd0a:netbsd - starting in 0 
(XEN) HVM3: int13_cdrom: unsupported AH=08
9442072+5600032+398104=0xfbab38
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.99.48 (INSTALL) #0: Sun Jan  6 19:33:24 PST 2008
        
builds@wb28:/home/builds/ab/HEAD/amd64/200801060002Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/INSTALL
total memory = 127 MB
avail memory = 107 MB
(hangs forever here)


Christoph