From patchwork Wed May 9 15:57:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alain_Ribi=C3=A8re?= X-Patchwork-Id: 158001 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 01313B6FA9 for ; Thu, 10 May 2012 01:58:21 +1000 (EST) Received: from localhost ([::1]:49703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS9HP-0008JF-JC for incoming@patchwork.ozlabs.org; Wed, 09 May 2012 11:58:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS9HA-0008It-Nc for qemu-devel@nongnu.org; Wed, 09 May 2012 11:58:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SS9H1-0007Ij-JG for qemu-devel@nongnu.org; Wed, 09 May 2012 11:58:04 -0400 Received: from nm17-vm0.bullet.mail.ac4.yahoo.com ([98.139.53.208]:42916) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SS9H1-0007IZ-Bg for qemu-devel@nongnu.org; Wed, 09 May 2012 11:57:55 -0400 Received: from [98.139.52.194] by nm17.bullet.mail.ac4.yahoo.com with NNFMP; 09 May 2012 15:57:53 -0000 Received: from [98.139.52.148] by tm7.bullet.mail.ac4.yahoo.com with NNFMP; 09 May 2012 15:57:53 -0000 Received: from [127.0.0.1] by omp1031.mail.ac4.yahoo.com with NNFMP; 09 May 2012 15:57:53 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 795995.41460.bm@omp1031.mail.ac4.yahoo.com Received: (qmail 94886 invoked by uid 60001); 9 May 2012 15:57:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1336579073; bh=7uqrCNIiyN0UGeq6iXf4nQODhT19Ri9w8QQt99P+fDk=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=5vHWfEwa6wwgpRgHSFVBMgFDQceXS6ZcQVIKElDrjMir25k2CtoZO0XHZWrMF8R/uB4j+jAesn3TcHi8SWlNxCelhJ7CVKG9Y1OcOSBJFnqqLbMpPHx39Rc1nRhjce1b0dzaxZ+sHCEOE1PdLzVycIW8r7iq+WRhBzfm0+ySN7M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=U/Ox3FoO02VpvXu87F0Wk1TDLzIN63HRGdOk16MzFeMSd+7ZivOvAvbUONxim3dAU1OQVL+QexbG8QTinDYO2Qtx0599GdJiTMkSGXsVYWn872Mq6tcWslAScgEonBT6hNK46lQpHTbF8j/p2TgzRblkAhkiFItdjl4ey0Y/wUA=; X-YMail-OSG: zX6.6qoVM1kHT8ASqyiOZ7Yta.jASXN35.t9wTJNJZmU6Mh 4QKqD_qRntOf3Wk6iBNFmxhCALt0mAbP5VR.yY5RITHiBzVsbbxTb4eanP6o 1ozuHdKeozhoMix0z4YYub_uqRWgqdiswqis0mWbxWhUAUT26bnp_m0Bf6eX p_Fv13.QMDNZYzey9Q2Z6o_xE7Z711NLF8kgoYQFj_Zre2cvgT5Kz.Gx5g1d XZzbU9UBnqJnWy7a1jxbgP8y0B106rzqHZ4IRhyAY4jGInGXOegzaxywPeh2 rY5B5aqofBfz.L.lNCbCefDbAHCXtng.Tb_6OXZg8jZwlMcY47Dbi8Udn6xw e5P5yYUjPhi.CH7prez8_Q4bDngiBSGAJBi2lhtrsyO3gB_0gvvAjv_bcKrH YiA1C4NI_Xo5V3.W7_r0C0LM0HZFAcVTd5oO1yEXemhrRKELl6KtonBslJo9 AsD8rPvO_OXHx1yf1UUQgjw6A Received: from [163.116.6.11] by web130105.mail.mud.yahoo.com via HTTP; Wed, 09 May 2012 08:57:53 PDT X-Mailer: YahooMailWebService/0.8.118.349524 References: <1336406325.86421.YahooMailNeo@web130104.mail.mud.yahoo.com> <20120508005521.GA14087@morn.localdomain> <1336495676.9684.YahooMailNeo@web130104.mail.mud.yahoo.com> <20120508220631.GA28784@morn.localdomain> Message-ID: <1336579073.87968.YahooMailNeo@web130105.mail.mud.yahoo.com> Date: Wed, 9 May 2012 08:57:53 -0700 (PDT) From: =?iso-8859-1?Q?Alain_Ribi=E8re?= To: Kevin O'Connor In-Reply-To: <20120508220631.GA28784@morn.localdomain> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.139.53.208 Cc: "seabios@seabios.org" , "qemu-devel@nongnu.org" Subject: [Qemu-devel] Re : Re : [SeaBIOS] : Memory problem with Qemu/SeaBIOS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: =?iso-8859-1?Q?Alain_Ribi=E8re?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Tanks for your answer. I have to apologize, I made a mistake. I rechecked my application and used git bisect. So I found that this is not a SeaBIOS issue (actually it's more a C-DOS issues...). My problem comes from this Qemu commit : 49669fc551e0ccd2310a9584a9b7343a0bcae477 is the first bad commit commit 49669fc551e0ccd2310a9584a9b7343a0bcae477 Author: Glauber Costa Date:   Thu Apr 23 15:20:55 2009 -0400     suport device driver initialization model         According to PnP specification, Appendix B, Option ROMs     that support DDIM (device driver initialization model) should     have their memory space writeable.         KVM deviates from us here, by removing the IO_MEM_ROM flag,     to allow for PCI option ROMs (they require DDIM). However,     there's absolutely no reason we can't do the same.         Signed-off-by: Glauber Costa     Signed-off-by: Anthony Liguori :040000 040000 5186361da34236c2680af6ed568b5f5bdb2915ac c968308168e23ffa2678011ed2ff010389b528bd M      hw Also I found the theorical memory map of the C-DOS in the documentation of my legacy application : start         end 000000    9FFFF    Program area 0A0000    0BFFFF    Video memory 0C00000    0C7FFF    BIOS graphic card 0C8000    0CBFFF    BIOS cache controller 0CC000    0CFFFF    BIOS removable disk 0D0000    0D3FFF    BIOS network adapter 0D4000    0EFFFF    CDOS system 0F0000    0FFFFF    ROM BIOS I wonder what is the CDOS system at 0D4000... It seems a bit strange. I do not understand why this commit affects the C-DOS memory allocation. But you're probably right, C-DOS is using memory addresses he shouldn't for it's own purpose causing conflicts... If you have any idea. Thanks, and sorry again for the wrong issue (I will remove the SeaBIOS mailing list in the future mails)... Alain diff --git a/hw/pc.c b/hw/pc.c index 61f6e7b..340b313 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -920,7 +920,8 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size,        option_rom_offset = qemu_ram_alloc(0x20000);      oprom_area_size = 0; -    cpu_register_physical_memory(0xc0000, 0x20000, option_rom_offset); +    cpu_register_physical_memory(0xc0000, 0x20000, +                                 option_rom_offset | IO_MEM_ROM);        if (using_vga) {          /* VGA BIOS load */