Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755486AbYGMSnU (ORCPT ); Sun, 13 Jul 2008 14:43:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753986AbYGMSnI (ORCPT ); Sun, 13 Jul 2008 14:43:08 -0400 Received: from one.firstfloor.org ([213.235.205.2]:58701 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753790AbYGMSnH (ORCPT ); Sun, 13 Jul 2008 14:43:07 -0400 Message-ID: <487A4CB7.1080001@firstfloor.org> Date: Sun, 13 Jul 2008 20:43:03 +0200 From: Andi Kleen User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Andy Lutomirski CC: Matthew Garrett , Ingo Molnar , "Rafael J. Wysocki" , "H. Peter Anvin" , public-kernel-testers-u79uwXL29TY76Z2rM5mHXA@lo.gmane.org, ACPI Devel Maling List , LKML , pm list , Pavel Machek , hpa@zytor.com Subject: Re: [RFT] x86 acpi: normalize segment descriptor register on resume References: <200807010148.02135.rjw@sisk.pl> <200807122253.32382.rjw@sisk.pl> <48793A0E.3050803@myrealbox.com> <200807130133.12324.rjw@sisk.pl> <20080713091524.GA29907@elte.hu> <20080713120253.GA27582@srcf.ucam.org> <487A2431.2050103@myrealbox.com> In-Reply-To: <487A2431.2050103@myrealbox.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1785 Lines: 45 Andy Lutomirski wrote: > Matthew Garrett wrote: >> On Sun, Jul 13, 2008 at 11:15:24AM +0200, Ingo Molnar wrote: >> >>> we still need to find the HAL quirk and disable it, right? >> >> Not without understanding what the cause is. If the video BIOS calls >> are generically broken, then we have a problem. >> > > The HAL quirk is the very first one here: > > http://gitweb.freedesktop.org/?p=hal-info.git;a=blob;f=fdi/information/10freedesktop/20-video-quirk-pm-lenovo.fdi > > > I removed it from the HAL config and suspending w/ the hardware button > works fine now with -rc9-wl and on Ubuntu's stock .24 kernel. Hmm, but the change was not supposed to break the s3 bios. Something fishy is going on. It sounds like the s3 bios relies on some earlier segment register setup. If true this means the segment register reset would need to be moved later after S3 bios ran. Saving/restoring is unfortunately not possible because we cannot save/restore the hidden state loaded from the GDT earlier. This is unfortunately a little tricky with the new C wakeup code. > I'll file the obvious bug report against HAL, but it might annoy users > if new kernel + old HAL = broken system, It's the bad side effect of HAL effectively being an out of tree kernel driver (that just by chance happens to run in user space). Really all these s3 quirks at least should be in the kernel. We can't really do much about that now, but longer term it might be useful to invent some mechanism to tell HAL to disable specific quirks from the kernel. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/