From: Andres Salomon <dilinger@queued.net>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Len Brown <lenb@kernel.org>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
Huang Ying <ying.huang@intel.com>,
Jesse Barnes <jbarnes@virtuousgeek.org>
Subject: Re: [PATCH] ACPI: don't attempt to use hest_tab unless !acpi_pci_disabled
Date: Sat, 15 Jan 2011 19:24:22 -0800 [thread overview]
Message-ID: <20110115192422.706af049@queued.net> (raw)
In-Reply-To: <201101152148.43791.rjw@sisk.pl>
On Sat, 15 Jan 2011 21:48:43 +0100
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> On Saturday, January 15, 2011, Andres Salomon wrote:
> > On Sat, 15 Jan 2011 21:38:10 +0100
> > "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> >
> > > On Saturday, January 15, 2011, Andres Salomon wrote:
> > > > On Sat, 15 Jan 2011 14:01:18 +0100
> > > > "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> > > >
> > > > > On Saturday, January 15, 2011, Andres Salomon wrote:
> > > > > > On Fri, 14 Jan 2011 23:24:27 -0500 (EST)
> > > > > > Len Brown <lenb@kernel.org> wrote:
> > > > > >
> > > > > > [...]
> > > > > > > > This patch causes apei_hest_parse to check both
> > > > > > > > hest_disabled and acpi_pci_disabled before continuing.
> > > > > > > > With it, the XO-1 boots properly.
> > > > > > >
> > > > > > > The X0-1 has no ACPI support, and thus you are running
> > > > > > > with acpi_disabled=1, yes?
> > > > > >
> > > > > > The XO-1 has no ACPI support, but ACPI support is enabled
> > > > > > in the kernel (as the XO-1.5 does have ACPI support, and
> > > > > > the same kernel is used between both) and I'm not passing
> > > > > > any arguments to the kernel regarding it. The kernel's ACPI
> > > > > > code detects that it's not there and disables it (the
> > > > > > kernel message that's seen is "ACPI: Interpreter disabled.")
> > > > > >
> > > > > > This is what sets apci_pci_disabled to 1; I'm not doing it
> > > > > > manually.
> > > > >
> > > > > Hmm. Does the appended patch help instead?
> > > >
> > > > Nope. acpi_hest_init returns immediately if acpi_disabled, and
> > > > thus never sets hest_disable. You either need to set
> > > > hest_disable, or ensure apei_hest_parse checks more than just
> > > > hest_disable.
> > >
> > > OK, so the new one below should help, right?
> >
> > Yes, that looks better
>
> OK
>
> > (though you probably just want to use 'goto err;' instead).
>
> Indeed.
>
> > I can test it later today.
>
> Cool, thanks. Please try the version below with the 'goto'.
>
> Rafael
Yep, just tested it out; it works fine.
>
> ---
> drivers/acpi/apei/hest.c | 6 +++---
> drivers/acpi/pci_root.c | 4 ++--
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> Index: linux-2.6/drivers/acpi/pci_root.c
> ===================================================================
> --- linux-2.6.orig/drivers/acpi/pci_root.c
> +++ linux-2.6/drivers/acpi/pci_root.c
> @@ -631,11 +631,11 @@ static int acpi_pci_root_remove(struct a
>
> static int __init acpi_pci_root_init(void)
> {
> + acpi_hest_init();
> +
> if (acpi_pci_disabled)
> return 0;
>
> - acpi_hest_init();
> -
> pci_acpi_crs_quirks();
> if (acpi_bus_register_driver(&acpi_pci_root_driver) < 0)
> return -ENODEV;
> Index: linux-2.6/drivers/acpi/apei/hest.c
> ===================================================================
> --- linux-2.6.orig/drivers/acpi/apei/hest.c
> +++ linux-2.6/drivers/acpi/apei/hest.c
> @@ -201,14 +201,14 @@ void __init acpi_hest_init(void)
> int rc = -ENODEV;
> unsigned int ghes_count = 0;
>
> - if (acpi_disabled)
> - return;
> -
> if (hest_disable) {
> pr_info(HEST_PFX "Table parsing disabled.\n");
> return;
> }
>
> + if (acpi_disabled)
> + goto err;
> +
> status = acpi_get_table(ACPI_SIG_HEST, 0,
> (struct acpi_table_header
> **)&hest_tab); if (status == AE_NOT_FOUND) {
next prev parent reply other threads:[~2011-01-16 3:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20110114181620.188e7a62@queued.net>
2011-01-15 4:24 ` [PATCH] ACPI: don't attempt to use hest_tab unless !acpi_pci_disabled Len Brown
2011-01-15 7:54 ` Andres Salomon
2011-01-15 13:01 ` Rafael J. Wysocki
2011-01-15 20:32 ` Andres Salomon
2011-01-15 20:38 ` Rafael J. Wysocki
2011-01-15 20:42 ` Andres Salomon
2011-01-15 20:48 ` Rafael J. Wysocki
2011-01-16 3:24 ` Andres Salomon [this message]
2011-01-16 19:28 ` Rafael J. Wysocki
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=20110115192422.706af049@queued.net \
--to=dilinger@queued.net \
--cc=jbarnes@virtuousgeek.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=ying.huang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox