Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCxlR-0004cg-20 for qemu-devel@nongnu.org; Tue, 24 Nov 2009 10:57:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCxlN-0004ZA-1l for qemu-devel@nongnu.org; Tue, 24 Nov 2009 10:57:12 -0500 Received: from [199.232.76.173] (port=53710 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCxlM-0004Z7-OC for qemu-devel@nongnu.org; Tue, 24 Nov 2009 10:57:08 -0500 Received: from mail-yw0-f171.google.com ([209.85.211.171]:52771) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCxlM-0006uH-GA for qemu-devel@nongnu.org; Tue, 24 Nov 2009 10:57:08 -0500 Received: by ywh1 with SMTP id 1so5716217ywh.18 for ; Tue, 24 Nov 2009 07:57:07 -0800 (PST) Date: Tue, 24 Nov 2009 10:57:02 -0500 From: Kevin O'Connor Message-ID: <20091124155702.GC17606@morn.localdomain> References: <20091122140853.GI3193@redhat.com> <20091122172101.GB9880@redhat.com> <38AF5F086DB24529A1D605A0E2414FD0@FSCPC> <20091122195136.GC9880@redhat.com> <74E6EFE7D92346E29A2E321F017E6308@FSCPC> <20091123072823.GB2999@redhat.com> <1F775774A6D54955836164CA63C6BFBA@FSCPC> <20091123183041.GB10115@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091123183041.GB10115@redhat.com> Subject: [Qemu-devel] Re: [PATCH][SEABIOS] Make SMBIOS table pass MS SVVP test List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: qemu-devel@nongnu.org, Sebastian Herbszt On Mon, Nov 23, 2009 at 08:30:41PM +0200, Gleb Natapov wrote: > On Mon, Nov 23, 2009 at 07:15:55PM +0100, Sebastian Herbszt wrote: > > Ok - sounds good if bios_characteristics gets proper system based values. > > > Kevin can you help here. I can send a patch, but I am not sure I know > everything SeaBIOS supports. I don't know what bios_characteristics should be set to. SeaBIOS does generate the smbios table even on coreboot. This is a hack to work around the fact that coreboot boards don't generate smbios tables currently and Linux wont use ACPI unless an smbios table is present. So, the smbios table is just used to make Linux accept the acpi table. It is not a requirement that SeaBIOS be able to generate fully populated and correct smbios tables for coreboot - it's understood that any coreboot user that needs a full smbios table needs to have that table generated by coreboot itself. That said, I think SeaBIOS should autodetect any values where that's feasible. So, for example, if the cpu identification is available via cpuid, then I think that should be used. However, for example, if cpu model isn't available anywhere, then I think hardcoding something is okay. > > >>>>>>>- p->max_speed = 0; /* unknown */ > > >>>>>>>- p->current_speed = 0; /* unknown */ > > >>>>>>>+ p->max_speed = 2000; > > >>>>>>>+ p->current_speed = 2000; SeaBIOS detects the current Mhz - see calibrate_tsc() in src/clock.c. -Kevin