Received: from eggs.gnu.org ([2001:4830:134:3::10]:39889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjino-0002vJ-2I for qemu-devel@nongnu.org; Mon, 12 May 2014 01:29:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wjinh-00031D-R8 for qemu-devel@nongnu.org; Mon, 12 May 2014 01:29:28 -0400 Received: from mail-ig0-f169.google.com ([209.85.213.169]:44102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjinh-000311-Mi for qemu-devel@nongnu.org; Mon, 12 May 2014 01:29:21 -0400 Received: by mail-ig0-f169.google.com with SMTP id hl10so4257229igb.4 for ; Sun, 11 May 2014 22:29:20 -0700 (PDT) Date: Mon, 12 May 2014 01:29:18 -0400 From: Kevin O'Connor Message-ID: <20140512052918.GA2100@morn.localdomain> References: <20140509150621.GA9474@euler.fritz.box> <20140510150739.GA29484@morn.localdomain> <536F6241.2060806@bwalle.de> <20140511123720.GA20468@morn.localdomain> <705f2182cbc05c35147afbe7c06c62a6@bwalle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <705f2182cbc05c35147afbe7c06c62a6@bwalle.de> Subject: Re: [Qemu-devel] uvesafb doesn't work with seabios List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bernhard Walle Cc: qemu-devel@nongnu.org, kraxel@redhat.com On Sun, May 11, 2014 at 04:19:55PM +0200, Bernhard Walle wrote: > Am 2014-05-11 14:37, schrieb Kevin O'Connor: > >On Sun, May 11, 2014 at 01:42:57PM +0200, Bernhard Walle wrote: > >>Am 10.05.14 17:07, schrieb Kevin O'Connor: > >>> Also, it looks like uvesafb can call x86emu. Older versions of x86emu > >>> are known to not emulate some instructions properly, and it has caused > >>> problems for SeaVGABIOS. The most recent version of SeaVGABIOS from > >>> SeaBIOS git has additional checks for this - can you grab the seabios > >>> git, set CONFIG_DEBUG_LEVEL to 8, build SeaVGABIOS (set > >>> CONFIG_VGA_BOCHS), and post the logs from both Linux and QEMU with the > >>> above options? > >> > >>It doesn't change the result (that it doesn't work). It only makes the > >>kernel failing much faster and of course there's much more debugging > >>output: http://bwalle.de/tmp/debugoutput (250k). > > > >Were there any Linux or userspace messages with the above? > > > Yes: > > uvesafb: Getting VBE info block failed (eax=0x1d2, err=0) > uvesafb: vbe_init() failed with -22 > uvesafb: probe of uvesafb.0 failed with error -22 It does look like the x86emu issue. You can try applying the SeaVGABIOS patch below to confirm it. -Kevin --- a/vgasrc/vgaentry.S +++ b/vgasrc/vgaentry.S @@ -47,7 +47,14 @@ _rom_header_signature: // Force a fault if found to be running on broken x86emu versions. DECLFUNC x86emu_fault +msg: .ascii "SeaVGABIOS: x86emu leal trap!\n" x86emu_fault: +#if CONFIG_DEBUG_IO + movw %cs:DebugOutputPort, %dx + movl $30, %ecx + movl $msg, %esi + rep outsb %cs:(%esi), (%dx) +#endif 1: hlt jmp 1b