xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>, Keir Fraser <keir@xen.org>
Subject: Re: [Patch 2/4] x86/hpet: Sanitise HPET ACPI table and warn about multiple tables
Date: Mon, 7 Oct 2013 14:55:10 +0100	[thread overview]
Message-ID: <5252BD3E.9090202@citrix.com> (raw)
In-Reply-To: <5252D71202000078000F9445@nat28.tlf.novell.com>

On 07/10/13 14:45, Jan Beulich wrote:
>>>> On 07.10.13 at 15:26, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>> --- a/xen/arch/x86/acpi/boot.c
>> +++ b/xen/arch/x86/acpi/boot.c
>> @@ -276,6 +276,21 @@ static int __init acpi_parse_hpet(struct 
>> acpi_table_header *table)
>>  		return -1;
>>  	}
>>  
>> +	if ( !hpet_tbl->address.address || !(hpet_tbl->address.address + 1) )
>> +	{
>> +		printk(KERN_WARNING PREFIX "Bad HPET address %#lx\n",
>> +		       hpet_tbl->address.address);
>> +		return -1;
>> +	}
> Did you really encounter a system where this would trigger?
>
>> +
>> +	/*
>> +	 * Hopefully someone might implement multiple HPET support in Xen.
>> +	 * Until then, warn the user if multiple HPET tables are found.
>> +	 */
>> +	if ( hpet_address )
>> +		printk(KERN_WARNING PREFIX
>> +		       "Xen only supports one HPET - Using latest table\n");
>> +
> You perhaps miunderstood how multiple HPETs would be surfaced
> by firmware: Not via multiple HPET tables, but via objects in the
> ACPI object namespace. With that, a similar question to the above
> arises: Have you seen a system where multiple HPET tables get
> surfaced?
>
> Jan
>

We had a system which had two HPET tables.  A BIOS update fixed the
issue, but the fact remains that in the case of multiple HPET tables, we
blindly go with the latest table.

Perhaps the message could change to "Multiple tables found (BIOS BUG?). 
Using information from latest" ?

~Andrew

  reply	other threads:[~2013-10-07 13:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-07 13:26 [Patch 0/4] HPET general fixes Andrew Cooper
2013-10-07 13:26 ` [Patch 1/4] x86/hpet: Basic cleanup Andrew Cooper
2013-10-07 13:26 ` [Patch 2/4] x86/hpet: Sanitise HPET ACPI table and warn about multiple tables Andrew Cooper
2013-10-07 13:45   ` Jan Beulich
2013-10-07 13:55     ` Andrew Cooper [this message]
2013-10-07 14:26       ` Jan Beulich
2013-10-07 13:26 ` [Patch 3/4] x86/hpet: Fix ambiguity in broadcast info message Andrew Cooper
2013-10-07 13:48   ` Jan Beulich
2013-10-07 13:26 ` [Patch 4/4] x86/hpet: Don't clear reserved bits in the General Configuration Register Andrew Cooper
2013-10-07 13:55   ` Jan Beulich
2013-10-07 14:02     ` Andrew Cooper
2013-10-07 14:28       ` Jan Beulich

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=5252BD3E.9090202@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).