From: Len Brown <lenb@kernel.org>
To: Zhao Yakui <yakui.zhao@intel.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: Subject: ACPI: Check whether XSDT exists before dump ACPI tables
Date: Tue, 20 Nov 2007 12:59:07 -0500 [thread overview]
Message-ID: <200711201259.08109.lenb@kernel.org> (raw)
In-Reply-To: <1195547608.4009.17.camel@yakui_zhao.sh.intel.com>
This patch is included in the latest release:
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/pmtools-20071116.tar.gz
thanks,
-Len
On Tuesday 20 November 2007 03:33, Zhao Yakui wrote:
> Subject: ACPI: Check whether XSDT exists before dump ACPI tables
> From: Zhao Yakui <yakui.zhao@intel.com>
>
> The acpidump tool of 20070714 version has some problems on some
> machines.First it will first search XSDT table to
> dump ACPI tables. If XSDT exists it will continue search RSDT and
> only dump ACPI info that doesn't be dumped through XSDT.
> But if XSDT doesn't exist it will report that ACPI tables
> can't be found and exit.
>
> So it is necessary to first check whether XSDT table exists.
> If XSDT exists(Not check the integrity of XSDT), it will be used to dump
> ACPI tables. Otherwise RSDT table will be used.
>
>
> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> ---
> acpidump/acpidump.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> Index: pmtools-20070714/acpidump/acpidump.c
> ===================================================================
> --- pmtools-20070714.orig/acpidump/acpidump.c
> +++ pmtools-20070714/acpidump/acpidump.c
> @@ -521,8 +521,11 @@ int main(int argc, char **argv)
> if (connect) {
> lseek(fd, sizeof(struct acpi_rsdp_descriptor), SEEK_SET);
> }
> - if (!acpi_dump_XSDT(fd, &rsdpx))
> - goto not_found;
> + if (rsdpx.revision > 1 && rsdpx.xsdt_physical_address) {
> + /* ACPIDUMP uses xsdt table */
> + if (!acpi_dump_XSDT(fd, &rsdpx))
> + goto not_found;
> + }
> if (!acpi_dump_RSDT(fd, &rsdpx))
> goto not_found;
> if (connect) {
>
prev parent reply other threads:[~2007-11-20 17:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-20 8:33 Subject: ACPI: Check whether XSDT exists before dump ACPI tables Zhao Yakui
2007-11-20 17:59 ` Len Brown [this message]
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=200711201259.08109.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=yakui.zhao@intel.com \
/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.