Skip to contentSkip to conversation

S1 on toshiba S3000-X11

PATCH Éric Brunet 2 participants 2 messages Oct 10, 2002 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

I just wanted to say that the acpi patch 20021002 seems to work fine on my laptop (toshiba S3000-X11) with a 2.4.20-pre10 kernel, except that I need to apply the following patch (originally by Bruno Ducrot) to have S1 working:

==================================================================================================

drivers/acpi/hardware/hwsleep.c renamed from drivers/acpi/hardware/hwsleep.c.orig +3 -0
@@ -309,6 +309,9 @@
 
        } while (!in_value);
 
+       /* Restore BM arbitration */
+       acpi_set_register(ACPI_BITREG_ARB_DISABLE, 0, ACPI_MTX_DO_NOT_LOCK);
+
        return_ACPI_STATUS (AE_OK);
 }
 

===================================================================================================

Regards,

Éric Brunet

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 20 lines · Éric Brunet

Hi,

I just wanted to say that the acpi patch 20021002 seems to work fine on my laptop (toshiba S3000-X11) with a 2.4.20-pre10 kernel, except that I need to apply the following patch (originally by Bruno Ducrot) to have S1 working:

==================================================================================================

drivers/acpi/hardware/hwsleep.c renamed from drivers/acpi/hardware/hwsleep.c.orig +3 -0
@@ -309,6 +309,9 @@
 
        } while (!in_value);
 
+       /* Restore BM arbitration */
+       acpi_set_register(ACPI_BITREG_ARB_DISABLE, 0, ACPI_MTX_DO_NOT_LOCK);
+
        return_ACPI_STATUS (AE_OK);
 }
 
Quoted 1 line

===================================================================================================

I already submmited the attached patch.

Wait and see..

Signature · 3 lines
Ducrot Bruno
http://www.poupinou.org        Page profaissionelle
http://toto.tu-me-saoules.com  Haume page
drivers/acpi/hardware/hwsleep.c +2 -3
diff -ur linux-2.4.20-pre8.orig/drivers/acpi/hardware/hwsleep.c linux-2.4.20-pre8/drivers/acpi/hardware/hwsleep.c
@@ -335,6 +335,8 @@
 
 	ACPI_FUNCTION_TRACE ("Acpi_leave_sleep_state");
 
+	/* Enable BM arbitration */
+	status = acpi_set_register (ACPI_BITREG_ARB_DISABLE, 0, ACPI_MTX_LOCK);
 
 	/* Ensure Enter_sleep_state_prep -> Enter_sleep_state ordering */
 
@@ -366,9 +368,6 @@
 	if (ACPI_FAILURE (status)) {
 		return_ACPI_STATUS (status);
 	}
-
-	/* Disable BM arbitration */
-	status = acpi_set_register (ACPI_BITREG_ARB_DISABLE, 0, ACPI_MTX_LOCK);
 
 	return_ACPI_STATUS (status);
 }