Received: from [140.186.70.92] (port=46861 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgSRy-0007Np-5X for qemu-devel@nongnu.org; Tue, 03 Aug 2010 21:07:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgSRw-0000HI-Mv for qemu-devel@nongnu.org; Tue, 03 Aug 2010 21:07:17 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:38237) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgSRw-0000H8-JX for qemu-devel@nongnu.org; Tue, 03 Aug 2010 21:07:16 -0400 Received: by vws19 with SMTP id 19so3761463vws.4 for ; Tue, 03 Aug 2010 18:07:15 -0700 (PDT) Date: Tue, 3 Aug 2010 21:07:12 -0400 From: Kevin O'Connor Message-ID: <20100804010712.GB8802@morn.localdomain> References: <20100802161157.GA11743@morn.localdomain> <4C56F35D.6020708@codemonkey.ws> <20100802164752.GA13438@morn.localdomain> <4C5829F8.30406@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C5829F8.30406@redhat.com> Subject: [Qemu-devel] Re: [PATCHv3] Load "bootsplash.jpg" if present List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Tue, Aug 03, 2010 at 04:38:48PM +0200, Paolo Bonzini wrote: > On 08/02/2010 06:47 PM, Kevin O'Connor wrote: > >There is no added delay for the bootsplash. However, it does take > >time to decompress it. On my machine it can take between 200-300ms > >for the jpeg code. > > KVM or TCG? TCG. > Also, what's the time for a completely black bootsplash? Here are the timings (times are in seconds measured on the host) for a completely black 640x480 jpeg on my machine: 00.135: Checking for bootsplash 00.139: VESA 2.0 00.140: VENDOR: VGABIOS Cirrus extension 00.143: PRODUCT: VGABIOS Cirrus extension 00.145: Copying bootsplash.jpg 00.146: Decoding bootsplash.jpg 00.154: Finding vesa mode with dimensions 640/480 00.160: mode: 0111 00.162: framebuffer: 0xf0000000 00.164: bytes per scanline: 1280 00.165: bits per pixel: 16 00.166: Decompressing bootsplash.jpg 00.283: Switching to graphics mode 00.322: Showing bootsplash.jpg 00.327: Bootsplash copy complete One can compare this output with the dprintf() calls in the code at: http://git.linuxtogo.org/?p=kevin/seabios.git;a=blob;f=src/bootsplash.c;h=14bdd4cfaa6b931032e30236039b0fd4934f75ac;hb=eb6dc785475e4676de728f99a0fcd638d81c5b68#l144 The times weren't notably different with a real picture instead of just a black picture. As before, SeaBIOS should probably be changed so that it only shows the image if the boot menu has been enabled. -Kevin