From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9lqr-0007DW-Kf for qemu-devel@nongnu.org; Sun, 15 Nov 2009 15:37:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9lqn-0007Bz-6u for qemu-devel@nongnu.org; Sun, 15 Nov 2009 15:37:37 -0500 Received: from [199.232.76.173] (port=38633 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9lqm-0007Bm-Sq for qemu-devel@nongnu.org; Sun, 15 Nov 2009 15:37:32 -0500 Received: from mail-yw0-f176.google.com ([209.85.211.176]:54483) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N9lqm-0008Tg-Jg for qemu-devel@nongnu.org; Sun, 15 Nov 2009 15:37:32 -0500 Received: by ywh6 with SMTP id 6so4115679ywh.4 for ; Sun, 15 Nov 2009 12:37:32 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4B0061B2.2070207@mail.berlios.de> References: <20091115152858.GH7392@redhat.com> <4B0061B2.2070207@mail.berlios.de> From: Blue Swirl Date: Sun, 15 Nov 2009 22:37:11 +0200 Message-ID: Subject: Re: [Qemu-devel] Standard vga breakage Content-Type: text/plain; charset=UTF-8 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel , Gleb Natapov On Sun, Nov 15, 2009 at 10:16 PM, Stefan Weil wrote: > malc schrieb: >> On Sun, 15 Nov 2009, Gleb Natapov wrote: >> >>> On Sun, Nov 15, 2009 at 06:22:40PM +0300, malc wrote: >>>> On Sun, 15 Nov 2009, Blue Swirl wrote: >>>> >>>>> On Sun, Nov 15, 2009 at 3:25 AM, malc wrote: >>>>>> debian-503-i386-netinst.iso when booted on a machine with `-vga >>>>>> std' just >>>>>> shows black screen (after bios' setup screen) >>>>> Just some observations: >>>>> - if you press enter, installer starts and Linux is able to fix the >>>>> display >>>>> - the screen is fine with -bios pcbios.bin, so the issue is related >>>>> to SeaBIOS >>>> Yes i forgot to mention that -bios works, also worth noting is that >>>> before >>>> the commit that fixed cirrus -bios hack also made it work. > > > Here is a summary of my analysis of this problem: > > Graphics mode memory (ram 0xe0000000 ...) is not mapped > in QEMU address space (which results in unassigned > memory writes) for standard pci vga (-vga std), so users > don't get vga display output with grub (in graphical mode), > debian installer (in graphical mode) or similar boot software. > > This happens for PC system emulation using SeaBIOS. > It won't happen when using Bochs BIOS. > > Other system emulations which can run standard pci vga > seem to suffer from the same problem: when I run mips > malta using -vga std, it won't display anything on the vga > screen (it works with cirrus pci vga). > > Malta has no vga bios, so the error might be in QEMU's > vga code (hw/vga-pci.c). Maybe wrong initial PCI mappings? > Maybe this has always be wrong (which would explain why > git bisect does not work). > > pci_vga_init() is called by sun4u, ppc_prep, ppc_oldworld, > ppc_newworld, pc and mips, so all these emulations > share the same potential problem. At least sun4u, ppc_oldworld and ppc_newworld are fine with -vga std. There is no VGA BIOS.