From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: Dell D600: teaching radeonfb how to wake up... Date: Tue, 25 Nov 2003 13:04:43 +0100 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20031125120443.GA297@elf.ucw.cz> References: <20031119180119.GB22307@tate.loria.fr> <20031120111315.GB432@openzaurus.ucw.cz> <1069370504.705.32.camel@gaston> <20031120234708.GA431@elf.ucw.cz> <20031121155010.C19564@loria2.loria.fr> <1069637387.723.112.camel@gaston> <20031124173603.GA298@elf.ucw.cz> <1069725771.876.296.camel@gaston> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1069725771.876.296.camel-ZSGxbZoyBwc@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Benjamin Herrenschmidt Cc: Emmanuel Thome , acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi! > > > In the meantime, if we can (not sure about it) call back into the BIOS > > > when waking up (Andi seemed to imply we are in real mode when getting > > > out of sleep), we may just use int10 to hard re-POST video cards at this > > > point. We must also make sure we do that for the AGP bridge if > > > possible. > > > > Look at arch/i386/kernel/acpi/wakeup.S code. It attempts to do > > real-mode reinitialization (if you pass right acpi_sleep= paramater), > > but it only works for some people. > > > > If it is possible to improve that real-mode code to work more people, > > feel free to send patches. > > > > [I now have another machine -- arima notebook -- where none of current > > methods works. I'll need to look at it closely.] > > Well, I did a quick look only, I'm a bit dumb with x86 assembly, but > it looks you are only trying to call VESA for setting a mode, not > doing a full POST of the card Yes, that's what I'm optionaly doing, but I'm also (optionally) doing: testl $1, video_flags - wakeup_code jz 1f lcall $0xc000,$3 movw %cs, %ax movw %ax, %ds # Bios might have played with that movw %ax, %ss 1: ...that should be POST(?) Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/