From owner-freebsd-amd64@FreeBSD.ORG Mon Dec 1 17:19:36 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C85331065672; Mon, 1 Dec 2008 17:19:36 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 98B0A8FC0A; Mon, 1 Dec 2008 17:19:35 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 228495667; Mon, 01 Dec 2008 19:19:34 +0200 Message-ID: <49341CA4.8060801@FreeBSD.org> Date: Mon, 01 Dec 2008 19:19:32 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.17 (X11/20081029) MIME-Version: 1.0 To: Ian Smith References: <1224616985.00027652.1224606603@10.7.7.3> <1224728582.00028075.1224715806@10.7.7.3> <4932F34C.1040804@FreeBSD.org> <49334110.4010308@FreeBSD.org> <20081201150743.V34249@sola.nimnet.asn.au> In-Reply-To: <20081201150743.V34249@sola.nimnet.asn.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: peter@freebsd.org, freebsd-acpi@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: Semi-working patch for amd64 suspend/resume X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 17:19:36 -0000 Ian Smith wrote: > 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? vtswitch does not help and vesa generally does not working under amd64. -- Alexander Motin