public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Benjamin Herrenschmidt
	<benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
Cc: Emmanuel Thome <Emmanuel.Thome+acpi-/zGXu1G9BXs@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Dell D600: teaching radeonfb how to wake up...
Date: Tue, 25 Nov 2003 13:04:43 +0100	[thread overview]
Message-ID: <20031125120443.GA297@elf.ucw.cz> (raw)
In-Reply-To: <1069725771.876.296.camel-ZSGxbZoyBwc@public.gmane.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/

  parent reply	other threads:[~2003-11-25 12:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-19 18:01 Dell D600: teaching radeonfb how to wake up Emmanuel Thomé
     [not found] ` <20031119180119.GB22307-xkTd+U360DcAs8EywTwl9A@public.gmane.org>
2003-11-19 19:43   ` Karol Kozimor
     [not found]     ` <20031119194303.GA16571-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-11-19 19:51       ` Emmanuel Thome
     [not found]         ` <20031119205129.A19364-SAjW485I7Qt98t58zOhiHA@public.gmane.org>
2003-11-19 20:08           ` Karol Kozimor
2003-11-20 11:44           ` Ducrot Bruno
2003-11-20 11:13   ` Pavel Machek
     [not found]     ` <1069370504.705.32.camel@gaston>
     [not found]       ` <1069370504.705.32.camel-ZSGxbZoyBwc@public.gmane.org>
2003-11-20 23:47         ` Pavel Machek
     [not found]           ` <20031120234708.GA431-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-11-21  0:24             ` Benjamin Herrenschmidt
     [not found]               ` <1069374272.723.44.camel-ZSGxbZoyBwc@public.gmane.org>
2003-11-21 12:32                 ` Karol Kozimor
     [not found]                   ` <20031121123239.GB9973-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-11-21 13:01                     ` Charl P. Botha
2003-11-24  1:30                     ` Benjamin Herrenschmidt
2003-11-21 14:50             ` Emmanuel Thome
     [not found]               ` <20031121155010.C19564-SAjW485I7Qt98t58zOhiHA@public.gmane.org>
2003-11-24  1:29                 ` Benjamin Herrenschmidt
     [not found]                   ` <1069637387.723.112.camel-ZSGxbZoyBwc@public.gmane.org>
2003-11-24 17:36                     ` Pavel Machek
     [not found]                       ` <20031124173603.GA298-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-11-25  2:02                         ` Benjamin Herrenschmidt
     [not found]                           ` <1069725771.876.296.camel-ZSGxbZoyBwc@public.gmane.org>
2003-11-25 12:04                             ` Pavel Machek [this message]
     [not found]                               ` <20031125120443.GA297-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-11-26 13:24                                 ` Ducrot Bruno
     [not found]                                   ` <20031126132419.GL7374-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-26 22:34                                     ` Pavel Machek
     [not found]                                       ` <20031126223436.GD207-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-11-26 23:27                                         ` Benjamin Herrenschmidt
2003-11-27 10:47                                         ` Ducrot Bruno
     [not found]                                           ` <20031127104722.GM7374-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-11-28  0:10                                             ` Benjamin Herrenschmidt
     [not found] ` <yzo1xs3ijgr.fsf@localhost.localdomain>
     [not found]   ` <yzo1xs3ijgr.fsf-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2003-11-21 14:35     ` Emmanuel Thomé
2003-11-22 16:31     ` Emmanuel Thome
     [not found]       ` <20031122163147.GA26528-xkTd+U360DcAs8EywTwl9A@public.gmane.org>
2003-11-24 17:39         ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031125120443.GA297@elf.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=Emmanuel.Thome+acpi-/zGXu1G9BXs@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox