public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Klaus Muth <muth-5lHx5lHeYlQ@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: ACPI: RSDP - ERROR: Invalid checksum
Date: Thu, 9 Jun 2005 11:13:13 +0200	[thread overview]
Message-ID: <200506091113.14327.muth@hagos.de> (raw)
In-Reply-To: <200506081529.49355.muth-5lHx5lHeYlQ@public.gmane.org>

Am Mittwoch, 8. Juni 2005 15:29 schrieb Klaus Muth:
> Hi!
>
> Ok, I do the Ingrid.
AAARGH. Another Ingrid. Seems, that the acpi_find_rsdp() is rather optimistic 
about finding the RSDP [arch/i386/kernel/acpi/boot.c, acpi_scan_rsdp]:
 /*
  * Scan all 16-byte boundaries of the physical memory region for the
  * RSDP signature.
  */
 for (offset = 0; offset < length; offset += 16) {
  if (strncmp((char *) (start + offset), "RSD PTR ", sig_len))
   continue;
  return (start + offset);
 }

It seems to happen, that the IBM BIOS contains just the string "RSD PTR " 
exactly at a 16-Byte-Boundary before the real RSDP block, so the wrnog 
address is returned and acpi_table_init() in drivers/acpi/tables.c fails to 
checksum this block of course.

The patched up RedHat Kernel uses 
static struct acpi_table_rsdp * __init
acpi_find_root_pointer(void)
{
 struct acpi_table_rsdp * rsdp;

 /*
  * Physical address is given
  */
 /*
  * Region 1) Search EBDA (low memory) paragraphs
  */
 rsdp = acpi_tb_scan_memory_for_rsdp(__va(LO_RSDP_WINDOW_BASE),
      LO_RSDP_WINDOW_SIZE);

 if (rsdp)
  return rsdp;

 /*
  * Region 2) Search upper memory: 16-byte boundaries in E0000h-F0000h
  */
 rsdp = acpi_tb_scan_memory_for_rsdp(__va(HI_RSDP_WINDOW_BASE),
            HI_RSDP_WINDOW_SIZE);

 
          
 if (rsdp)
  return rsdp;

 printk(KERN_ERR "ACPI: System description tables not found\n");
 return NULL;
}

to find the RSDP and seems to find it in Region 2. GRRRR.

Is there any patch to do the same with a vanilla 2.6 Kernel?
-- 
Klaus Muth
HAGOS eG                      Industriestr. 62      fon: (+49) 711 78805-86
EDV-Programmierung            70565  Stuttgart      fax: (+49) 711 78805-35
http://www.hagos.de               Germany              mailto:muth-5lHx5lHeYlQ@public.gmane.org


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

  parent reply	other threads:[~2005-06-09  9:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-07 13:46 ACPI: RSDP - ERROR: Invalid checksum Klaus Muth
     [not found] ` <200506071546.57120.muth-5lHx5lHeYlQ@public.gmane.org>
2005-06-08 13:29   ` Klaus Muth
     [not found]     ` <200506081529.49355.muth-5lHx5lHeYlQ@public.gmane.org>
2005-06-09  9:13       ` Klaus Muth [this message]
     [not found]         ` <200506091113.14327.muth-5lHx5lHeYlQ@public.gmane.org>
2005-06-28  7:24           ` Klaus Muth
  -- strict thread matches above, loose matches on Subject: below --
2005-06-28 15:19 Moore, Robert
     [not found] ` <971FCB6690CD0E4898387DBF7552B90E01F2DB9A-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-06-29  7:30   ` Klaus Muth
     [not found]     ` <200506290930.05338.muth-5lHx5lHeYlQ@public.gmane.org>
2005-06-29  8:42       ` Klaus Muth
2005-06-29 16:05 Moore, Robert
2005-07-01 20:51 Moore, Robert
     [not found] ` <971FCB6690CD0E4898387DBF7552B90E01FDC975-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-07-01 22:06   ` Perry Hutchison

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=200506091113.14327.muth@hagos.de \
    --to=muth-5lhx5lheylq@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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