From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264081AbTDWPUV (ORCPT ); Wed, 23 Apr 2003 11:20:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264082AbTDWPUV (ORCPT ); Wed, 23 Apr 2003 11:20:21 -0400 Received: from smtp-out1.iol.cz ([194.228.2.86]:21166 "EHLO smtp-out1.iol.cz") by vger.kernel.org with ESMTP id S264081AbTDWPUU (ORCPT ); Wed, 23 Apr 2003 11:20:20 -0400 Date: Wed, 23 Apr 2003 17:29:28 +0200 From: Pavel Machek To: "Grover, Andrew" Cc: Benjamin Herrenschmidt , Patrick Mochel , linux-kernel mailing list Subject: Re: Subtle semantic issue with sleep callbacks in drivers Message-ID: <20030423152927.GB3035@elf.ucw.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.3i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > - On non-PPC machines, the slot will eventually go to D3, but > > the APM BIOS or ACPI will be able to re-POST the card > > properly on wakeup, so the driver only needs to restore the > > current display mode, at least I guess so since I don't know > > much about x86's. Similar will happen once I have an OF > > emulator ready on PPC to re-POST some cards, thus changing > > the previous example into this one. In this case, the driver > > can put the chip to D3 and can _accept_ the sleep request > > because it's explicitely told by the system (how ?) that the > > card will be re-POSTED prior to the > > resume() callback. > > Topic drift... > > After asking around internally, it sounds like we should not be doing a > video re-POST on wakeup. Windows only used to in order to workaround > buggy video drivers, according to what I've heard. We really should not be doing that, but we... kind of have to. Thats why acpi_sleep=s3_bios exists. I really don't know how to work around it. Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?]