LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: "Matheus Izvekov" <mizvekov@gmail.com>
Cc: "Arjan van de Ven" <arjan@infradead.org>,
	"Luming Yu" <luming.yu@gmail.com>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: BUG: linux 2.6.19 unable to enable acpi
Date: Wed, 17 Jan 2007 04:08:54 -0500	[thread overview]
Message-ID: <200701170408.54220.lenb@kernel.org> (raw)
In-Reply-To: <305c16960701162342u69526f5dn208c6531f6b9fc8e@mail.gmail.com>

The code that enables ACPI mode hasn't really changed since before 2.6.12 -- 
unless udelay() has changed beneath us...
So if you are going to test an old version of Linux, you should start before then.

Perhaps you can try this debug patch on top of 2.6.19 and send along the dmesg?
(also, please include CONFIG_ACPI_DEBUG=y)

thanks,
-Len



diff --git a/drivers/acpi/hardware/hwacpi.c b/drivers/acpi/hardware/hwacpi.c
index de50fab..c782da3 100644
--- a/drivers/acpi/hardware/hwacpi.c
+++ b/drivers/acpi/hardware/hwacpi.c
@@ -119,6 +119,9 @@ acpi_status acpi_hw_set_mode(u32 mode)
 	 * we make sure both the numbers are zero to determine these
 	 * transitions are not supported.
 	 */
+printk("ACPI: FADT.acpi_enable %d\n", acpi_gbl_FADT->acpi_enable);
+printk("ACPI: FADT.acpi_disable %d\n", acpi_gbl_FADT->acpi_disable);
+
 	if (!acpi_gbl_FADT->acpi_enable && !acpi_gbl_FADT->acpi_disable) {
 		ACPI_ERROR((AE_INFO,
 			    "No ACPI mode transition supported in this system (enable/disable both zero)"));
@@ -130,6 +133,9 @@ acpi_status acpi_hw_set_mode(u32 mode)
 
 		/* BIOS should have disabled ALL fixed and GP events */
 
+printk("ACPI: smi_cmd 0x%x, acpi_enable 0x%x\n",
+	acpi_gbl_FADT->smi_cmd, (u32) acpi_gbl_FADT->acpi_enable);
+
 		status = acpi_os_write_port(acpi_gbl_FADT->smi_cmd,
 					    (u32) acpi_gbl_FADT->acpi_enable,
 					    8);
@@ -164,7 +170,7 @@ acpi_status acpi_hw_set_mode(u32 mode)
 	 * Some hardware takes a LONG time to switch modes. Give them 3 sec to
 	 * do so, but allow faster systems to proceed more quickly.
 	 */
-	retry = 3000;
+	retry = 3000 * 100;
 	while (retry) {
 		if (acpi_hw_get_mode() == mode) {
 			ACPI_DEBUG_PRINT((ACPI_DB_INFO,
@@ -175,6 +181,7 @@ acpi_status acpi_hw_set_mode(u32 mode)
 		acpi_os_stall(1000);
 		retry--;
 	}
+printk("ACPI: retry %d\n");
 
 	ACPI_ERROR((AE_INFO, "Hardware did not change modes"));
 	return_ACPI_STATUS(AE_NO_HARDWARE_RESPONSE);


  reply	other threads:[~2007-01-17  9:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17  4:01 Matheus Izvekov
2007-01-17  4:14 ` Arjan van de Ven
2007-01-17  4:25   ` Matheus Izvekov
2007-01-17  6:26     ` Luming Yu
2007-01-17  7:35       ` Matheus Izvekov
2007-01-17  7:42         ` Matheus Izvekov
2007-01-17  9:08           ` Len Brown [this message]
2007-01-17 21:10             ` Matheus Izvekov
2007-01-19  8:36               ` Len Brown
2007-01-19 18:03                 ` Matheus Izvekov
2007-01-19 23:10                   ` Matheus Izvekov
2007-01-17 10:34           ` Sunil Naidu
2007-01-17 19:44             ` Matheus Izvekov
     [not found]             ` <200701190338.33147.lenb@kernel.org>
2007-01-20  2:59               ` Sunil Naidu

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=200701170408.54220.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luming.yu@gmail.com \
    --cc=mizvekov@gmail.com \
    --subject='Re: BUG: linux 2.6.19 unable to enable acpi' \
    /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

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).