All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: Kevin O'Connor <kevin@koconnor.net>
Cc: seabios@seabios.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH V4 2/8] Provide ACPI SSDT table for TPM device + S3 resume support
Date: Wed, 18 May 2011 21:18:16 -0400	[thread overview]
Message-ID: <4DD46FD8.30900@linux.vnet.ibm.com> (raw)
In-Reply-To: <20110518234402.GA26641@morn.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

On 05/18/2011 07:44 PM, Kevin O'Connor wrote:
> On Wed, May 18, 2011 at 03:49:25PM -0400, Stefan Berger wrote:
>> On 04/12/2011 09:32 AM, Stefan Berger wrote:
>>> +
>>> +static u32 add_tpm_device(void **tpm_addr, void **tcpa_addr)
>>> +{
>>> +    struct tcpa_descriptor_rev2 *tcpa;
>>> +
>>> +    *tpm_addr = NULL;
>>> +    *tcpa_addr = NULL;
>>> +
>>> +    if (has_working_tpm()) {
>>> +        u32 laml = 64 * 1024;
>> Kevin,
>>
>>    the above line prepares 64 kb to be allocated for an ACPI table.
>> It works fine if booting a VM from an image. However, when passing
>> the kernel, initrd and command line parameters to Qemu directly
>> (-kernel, -append, ..), the 64kb above seem to be too much -- I see
>> errors in the Linux kernel's dmesg when Linux tries to access the
>> ACPI tables. Lowering the above to 48kb (happens to) makes it work.
>> I am wondering whether something is copying into the ACPI area or
>> what else may be the reason - do you know?
> I don't know of any reason why that would fail.  You can print out the
> address and compare it to the e820 map that SeaBIOS outputs and verify
> it is properly reserved.
>
> Does increasing the amount of guest system ram help?
It helped. At some point the initrd and ACPI tables weren't overlapping 
anymore... I forgot to increase the size reserved for ACPI tables inside 
the Qemu code...

> BTW, is this just a buffer or could the size be dynamically
> calculated?
>
Following specs it's supposed to be 64kb. The BIOS writes logs into this 
area.

    Stefan
> -Kevin


[-- Attachment #2: dmsg.png --]
[-- Type: image/png, Size: 126934 bytes --]

  reply	other threads:[~2011-05-19  1:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-12 13:32 [Qemu-devel] [PATCH V4 0/8] Add TPM support to SeaBIOS Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 1/8] Add an implementation for a TPM TIS driver Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 2/8] Provide ACPI SSDT table for TPM device + S3 resume support Stefan Berger
2011-05-18 19:49   ` Stefan Berger
2011-05-18 23:44     ` Kevin O'Connor
2011-05-19  1:18       ` Stefan Berger [this message]
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 3/8] Add public get_rsdp function Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 4/8] Implementation of the TCG BIOS extensions Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 5/8] Support for BIOS interrupt handler Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 6/8] Add measurement code to the BIOS Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 7/8] Add a menu for TPM control Stefan Berger
2011-04-12 13:32 ` [Qemu-devel] [PATCH V4 8/8] Optional tests for the TIS interface Stefan Berger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DD46FD8.30900@linux.vnet.ibm.com \
    --to=stefanb@linux.vnet.ibm.com \
    --cc=kevin@koconnor.net \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.