From: Lin Ming <ming.m.lin@intel.com>
To: Len Brown <lenb@kernel.org>
Cc: Yinghai Lu <yinghai.lu@oracle.com>,
"Moore, Robert" <robert.moore@intel.com>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>
Subject: Re: acpi/test panic
Date: Wed, 29 Sep 2010 16:55:47 +0800 [thread overview]
Message-ID: <1285750547.12984.18.camel@minggr.sh.intel.com> (raw)
In-Reply-To: <1285730626.5741.0.camel@minggr.sh.intel.com>
On Wed, 2010-09-29 at 11:23 +0800, Lin Ming wrote:
> On Tue, 2010-09-28 at 08:46 +0800, Len Brown wrote:
> > > Len,
> > > Please merge above code into then commit "ACPICA: Revert "Revert "Enable
> > > multi-byte EC transfers".
> >
> > done.
> > but i've backed out the acpica branch entirely
> > because it doesn't boot on my t61
> > starting with at this patch:
> >
> > ACPICA/ACPI: Add new host interfaces for _OSI support
>
> I'll test t61 and get back to you.
Hi, Len
I found the root cause that t61 hangs.
T61 hangs at below code path:
start_kernel ->
setup_arch ->
acpi_boot_table_init ->
acpi_blacklisted ->
dmi_enable_osi_linux ->
dmi_enable_osi_linux ->
acpi_dmi_osi_linux -> (T61 hits the DMI table)
set_osi_linux ->
acpi_install_interface
acpi_install_interface needs to acquire a mutex, and the call to it
hangs because ACPICA subsystem has not yet initialized at above call
path.
Below patch fix it.
acpi_osi_setup only saves the OSI string(it does not call
acpi_install_interface/acpi_remove_interface), and a later function
acpi_osi_setup_late will handle the OSI string.
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index af109c7..07516d2 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1000,9 +1000,9 @@ static void __init set_osi_linux(unsigned int enable)
}
if (osi_linux.enable)
- acpi_install_interface("Linux");
+ acpi_osi_setup("Linux");
else
- acpi_remove_interface("Linux");
+ acpi_osi_setup("!Linux");
return;
}
--
Lin Ming
>
> Lin Ming
>
> >
> > thanks,
> > -Len Brown, Intel Open Source Technology Center
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2010-09-29 8:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-26 22:30 acpi/test panic Yinghai Lu
2010-09-27 0:19 ` Lin Ming
2010-09-27 1:26 ` Lin Ming
2010-09-27 3:35 ` Yinghai Lu
2010-09-27 5:05 ` Lin Ming
2010-09-28 0:46 ` Len Brown
2010-09-29 3:23 ` Lin Ming
2010-09-29 8:55 ` Lin Ming [this message]
2010-10-01 5:57 ` Len Brown
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=1285750547.12984.18.camel@minggr.sh.intel.com \
--to=ming.m.lin@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=robert.moore@intel.com \
--cc=yinghai.lu@oracle.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