* [PATCH] Resume a K8T800 Mainboard from S3
@ 2006-06-15 14:45 karsten wiese
2006-06-18 17:47 ` Matthew Garrett
0 siblings, 1 reply; 2+ messages in thread
From: karsten wiese @ 2006-06-15 14:45 UTC (permalink / raw)
To: len.brown; +Cc: linux-acpi
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 737575855-resume_K8T800.patch --]
[-- Type: text/x-diff; name="resume_K8T800.patch", Size: 955 bytes --]
Resume an AMD64@K8T800 Mainboard from S3
Make an AMD64@K8T800 Mainboard (MS-6702) resume succesfully
reseting "Abnormal Power-OFF" Bit.
BIOS here doesn't vector back to OS if not done.
Signed-off-by: <annabellesgarden@yahoo.de>
diff -upr rc6-mm2/drivers/acpi/sleep/main.c rc6-mm2-kw/drivers/acpi/sleep/main.c
--- rc6-mm2/drivers/acpi/sleep/main.c 2006-06-10 13:12:46.000000000 +0200
+++ rc6-mm2-kw/drivers/acpi/sleep/main.c 2006-06-15 16:21:55.000000000 +0200
@@ -91,6 +91,15 @@ static int acpi_pm_enter(suspend_state_t
break;
case PM_SUSPEND_MEM:
+ if (acpi_state == ACPI_STATE_S3)
+ /* Make an AMD64@K8T800 Mainboard (MS-6702) resume succesfully
+ reseting "Abnormal Power-OFF" Bit.
+ BIOS doesn't vector back to OS if not done.
+ FIXME: Better move this to PCI-Quirks ?
+ */
+ acpi_hw_register_write(ACPI_MTX_DO_NOT_LOCK,
+ ACPI_REGISTER_PM1_STATUS,
+ (u16)0x800);
do_suspend_lowlevel();
break;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Resume a K8T800 Mainboard from S3
2006-06-15 14:45 [PATCH] Resume a K8T800 Mainboard from S3 karsten wiese
@ 2006-06-18 17:47 ` Matthew Garrett
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Garrett @ 2006-06-18 17:47 UTC (permalink / raw)
To: karsten wiese; +Cc: len.brown, linux-acpi
(patch that clears the abnormal power-off status on a VIA chipset)
This works for fixing suspend on the ECS G320 (which has a different
southbridge) as well. A quick scan of what datasheets I can get my hands
on suggest that the same register is used for the purpose on all VIA
southbridges, so a more generic quirk might be helpful.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-18 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15 14:45 [PATCH] Resume a K8T800 Mainboard from S3 karsten wiese
2006-06-18 17:47 ` Matthew Garrett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox