From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 1 04:16:27 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 765E2106564A; Mon, 1 Dec 2008 04:16:27 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id EBA578FC12; Mon, 1 Dec 2008 04:16:26 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id mB14GOja054545; Mon, 1 Dec 2008 15:16:24 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 1 Dec 2008 15:16:24 +1100 (EST) From: Ian Smith To: Alexander Motin In-Reply-To: <49334110.4010308@FreeBSD.org> Message-ID: <20081201150743.V34249@sola.nimnet.asn.au> References: <1224616985.00027652.1224606603@10.7.7.3> <1224728582.00028075.1224715806@10.7.7.3> <4932F34C.1040804@FreeBSD.org> <49334110.4010308@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: peter@freebsd.org, freebsd-acpi@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: Semi-working patch for amd64 suspend/resume X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 04:16:27 -0000 On Mon, 1 Dec 2008, Alexander Motin wrote: > Alexander Motin wrote: > > As result, I have found, that if I am inserting: > > qqq: > > jmp qqq > > lines before line 98 of acpi_switch.S: > > movl $MSR_MTRRdefType, %ecx > > movl WAKEUP_CTX(mtrr), %eax > > wrmsr > > system hangs, but if I insert it just after them - system reboots. > > > > With just commenting this three lines I was able to get successful > > suspend/resume with UP amd64 kernel!!! > > > > Here is problems I still have now: > > - SMP kernel resume is not working, system reboots while doing > > acpi_wakeup_cpus(); > > - SATA controller does not resumes correctly, it dies for some reason, > > reporting timeouts on any request; > > This one is not a problem anymore. Seems to be fixed. Progress! > > - text mode video does not restores on resume, while Xorg graphic one > > does. hw.acpi.reset_video=1 does not help, it just hanging resume process. Longshot: hw.syscons.sc_no_suspend_vtswitch=1 fixes similar symptoms on two (older, i386 and UP) laptops here. Some folks have reported needing to have VESA loaded to get text mode video back up. Maybe worth a try? cheers, Ian