Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1lAZ-0008AH-BR for qemu-devel@nongnu.org; Tue, 13 Apr 2010 14:49:07 -0400 Received: from [140.186.70.92] (port=58911 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1lAT-00087D-Pp for qemu-devel@nongnu.org; Tue, 13 Apr 2010 14:49:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1lAP-0000ie-MZ for qemu-devel@nongnu.org; Tue, 13 Apr 2010 14:49:01 -0400 Received: from canardo.mork.no ([148.122.252.1]:36229) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1lAO-0000hG-TH for qemu-devel@nongnu.org; Tue, 13 Apr 2010 14:48:57 -0400 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= References: <20100221040555.GA16455@morn.localdomain> <20100228193904.GA15352@morn.localdomain> <20100228204137.GA23442@redhat.com> Date: Tue, 13 Apr 2010 20:48:35 +0200 In-Reply-To: <20100228204137.GA23442@redhat.com> (Gleb Natapov's message of "Sun, 28 Feb 2010 22:41:37 +0200") Message-ID: <87d3y3p4sc.fsf@nemi.mork.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: SeaBIOS error with Juniper FreeBSD kernel List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: Brandon Bennett , Kevin O'Connor , seabios@seabios.org, qemu-devel@nongnu.org Gleb Natapov writes: > On Sun, Feb 28, 2010 at 02:39:04PM -0500, Kevin O'Connor wrote: >> On Sun, Feb 21, 2010 at 04:18:38PM -0700, Brandon Bennett wrote: >> >> > I have narrowed it down to SMBIOS. If I disable CONFIG_SMBIOS the >> > image boots up fine. >>=20 >> Gleb, have you seen this thread? >>=20 >> Some of the recent changes to smbios that look like possible culprits >> are: >>=20 >> Make SMBIOS table pass MS SVVP test >> Use MaxCountCPUs during building of per cpu tables. >> Add malloc_high/fseg() and rework bios table creation to use them. >>=20 > If there is any seabios revision that works then it is possible to > bisect to find problematic commit. Hello, I'm also bitten by this and have now attempted to bisect it. The result was:=20 c95d2cee36db79c88253d43a90230ceadf0c26cf is first bad commit commit c95d2cee36db79c88253d43a90230ceadf0c26cf Author: Kevin O'Connor Date: Wed Jul 29 20:41:39 2009 -0400 Add auto-generated version info to each build. =20=20=20=20 Add versioning info to initial debug and screen banner output. :100644 100644 2e2ba1dbf46cb7a12eeaafbc394f3f279c10abf4 37589097295dde049f8= 512d99561a0320955fb41 M Makefile :040000 040000 29c4ea1e03416fce9b3aa963ece74050a7b5769a 2b5425a20726caeadba= 524e14756c8827dd66595 M src Which looks a bit strange... I'm afraid I'm unable to revert this on the current HEAD due to other changes in the same area and my complete lack of understanding any assembler. But I have verified that=20 commit 8c8a880b584ccf8958d67e99a6750ba32d0b6454 is working for me, while=20 commit c95d2cee36db79c88253d43a90230ceadf0c26cf has the mentioned problems. However, I am not completely sure that I didn't mess up something which affected the result. I do note that the *working* version logs a=20 "Bad SMBIOS data checksum" message: olive@canardo:~$ kvm -L /usr/local/src/git/seabios/out -m 1024 -hda olive2.= img -nographic -serial mon:stdio -monitor null=20 Could not open option rom 'vapic.bin': No such file or directory pci_add_option_rom: failed to find romfile "vgabios-cirrus.bin" pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin" Consoles: serial port=20=20 BIOS drive C: is disk0 BIOS 639kB/1047544kB available memory FreeBSD/i386 bootstrap loader, Revision 1.1 (builder@ormonth.juniper.net, Tue Nov 3 08:19:23 UTC 2009) Loading /boot/defaults/loader.conf=20 /kernel text=3D0x74574c smbios_init: Bad SMBIOS data checksum data=3D0x42ba0+0x92e34 syms=3D[0x4+0x7f570+0x4+0xb12b2] /boot/modules/if_bge.ko text=3D0xa98c data=3D0x364+0xc syms=3D[0x4+0xd50+0x= 4+0xd18] /boot/modules/mpt_core.ko text=3D0x18dbc data=3D0x488+0x358=20 /boot/modules/if_bce.ko text=3D0xd07c data=3D0x16d94+0x24e4 syms=3D[0x4+0x1= 4d0+0x4+0x1787] /boot/modules/acb.ko text=3D0x3d78 data=3D0x284+0x80 syms=3D[0x4+0xa70+0x4+= 0x9a4] /boot/modules/mcs.ko text=3D0x4dc0 data=3D0x391+0xeb syms=3D[0x4+0xc40+0x4+= 0xbc2] /boot/modules/scs.ko text=3D0x7c08 data=3D0x564+0x164 syms=3D[0x4+0x1110+0x= 4+0x1179] /boot/modules/rcb.ko text=3D0x29c8 data=3D0x184+0x2c syms=3D[0x4+0x7e0+0x4+= 0x704] /boot/modules/cb.ko text=3D0x63fc data=3D0x3b8+0x11c syms=3D[0x4+0xf20+0x4+= 0xe69] /boot/modules/mesw.ko text=3D0x630c data=3D0x344+0x58 syms=3D[0x4+0xba0+0x4= +0xe7a] /boot/modules/cbd.ko text=3D0x1fcc data=3D0x9c+0xc syms=3D[0x4+0x540+0x4+0x= 445] /boot/modules/sfccb.ko text=3D0xe30 data=3D0x1b0+0x14 syms=3D[0x4+0x540+0x4= +0x4a5] /boot/modules/mac_runasnonroot.ko text=3D0x7b4 data=3D0x4d0 syms=3D[0x4+0x3= 10+0x4+0x39d] Hit [Enter] to boot immediately, or space bar for command prompt. Booting [/kernel]...=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 platform_early_bootinit: M/T Series Early Boot Initialization Olive CPU GDB: debug ports: sio [snip] while the failing version does not cause this message: olive@canardo:~$ kvm -L /usr/local/src/git/seabios/out -m 1024 -hda olive2.= img -nographic -serial mon:stdio -monitor null=20 Could not open option rom 'vapic.bin': No such file or directory pci_add_option_rom: failed to find romfile "vgabios-cirrus.bin" pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin" Consoles: serial port=20=20 BIOS drive C: is disk0 BIOS 639kB/1047544kB available memory FreeBSD/i386 bootstrap loader, Revision 1.1 (builder@ormonth.juniper.net, Tue Nov 3 08:19:23 UTC 2009) Loading /boot/defaults/loader.conf=20 /kernel text=3D0x74574c data=3D0x42ba0+0x92e34 syms=3D[0x4+0x7f570+0x4+0xb1= 2b2] /boot/modules/if_bge.ko text=3D0xa98c data=3D0x364+0xc syms=3D[0x4+0xd50+0x= 4+0xd18] /boot/modules/mpt_core.ko text=3D0x18dbc data=3D0x488+0x358=20 /boot/modules/if_bce.ko text=3D0xd07c data=3D0x16d94+0x24e4 syms=3D[0x4+0x1= 4d0+0x4+0x1787] /boot/modules/acb.ko text=3D0x3d78 data=3D0x284+0x80 syms=3D[0x4+0xa70+0x4+= 0x9a4] /boot/modules/mcs.ko text=3D0x4dc0 data=3D0x391+0xeb syms=3D[0x4+0xc40+0x4+= 0xbc2] /boot/modules/scs.ko text=3D0x7c08 data=3D0x564+0x164 syms=3D[0x4+0x1110+0x= 4+0x1179] /boot/modules/rcb.ko text=3D0x29c8 data=3D0x184+0x2c syms=3D[0x4+0x7e0+0x4+= 0x704] /boot/modules/cb.ko text=3D0x63fc data=3D0x3b8+0x11c syms=3D[0x4+0xf20+0x4+= 0xe69] /boot/modules/mesw.ko text=3D0x630c data=3D0x344+0x58 syms=3D[0x4+0xba0+0x4= +0xe7a] /boot/modules/cbd.ko text=3D0x1fcc data=3D0x9c+0xc syms=3D[0x4+0x540+0x4+0x= 445] /boot/modules/sfccb.ko text=3D0xe30 data=3D0x1b0+0x14 syms=3D[0x4+0x540+0x4= +0x4a5] /boot/modules/mac_runasnonroot.ko text=3D0x7b4 data=3D0x4d0 syms=3D[0x4+0x3= 10+0x4+0x39d] Hit [Enter] to boot immediately, or space bar for command prompt. Booting [/kernel]...=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 platform_early_bootinit: M/T Series Early Boot Initialization kernel trap 12 with interrupts disabled Fatal trap 30: reserved (unknown) fault while in kernel mode instruction pointer =3D 0x20:0xc09ba131 stack pointer =3D 0x28:0xc1021c6c frame pointer =3D 0x28:0xc1021ca4 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, IOPL =3D 0 current process =3D 0 () trap number =3D 30 dog: ERROR - reset of uninitialized watchdog panic: reserved (unknown) fault (null)(c0ba9440,c0ba9440,c0b40fd0,c1021bb4,5) at 0xc09a5757 (null)(c0b40fd0,1e,c1021c2c,1,1) at 0xc0593caf (null)(c0b23132,0,c1021d14,c05b41e0,a) at 0xc09b9747 (null)(c1021c2c) at 0xc09ba631 (null)(c1021cb0) at 0xc09a6d8f (null)(c1021d44,c0aa42a9,c0b42b37,c1021d34,c1021d30) at 0xc09a6d8f (null)(c0b42b37,c1021d34,c1021d30,a,c1021d54) at 0xc09a001e (null)(c0b21154,c0ad7f78,c1021d84,c09af90e,80) at 0xc0aa42a9 (null)(80,c09a6dd0,f,3,20) at 0xc0aa488e (null)(1026000) at 0xc09af90e (null)() at 0xc049bb8d kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xf000ff53 fault code =3D supervisor write, page not present instruction pointer =3D 0x20:0xc05bc3bd stack pointer =3D 0x28:0xc1021920 frame pointer =3D 0x28:0xc1021940 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 0 () trap number =3D 12 dog: ERROR - reset of uninitialized watchdog panic: page fault XXXXX: ERROR platform_boot_mastership_relinquish not defined:XXXXXdog: ERRO= R - reset of uninitialized watchdog dog: ERROR - reset of uninitialized watchdog Uptime: 1s I guess this can affect the result if it means that SMBIOS is being disabled/ignored. I can confirm Brandon's findings that disabling CONFIG_SMBIOS on current head also gives me a working image. Bj=C3=B8rn