public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Luca <kronos-0Y2hHv2PMqFeoWH0uzbU5w@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: Benjamin Herrenschmidt
	<benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
Subject: Re: [giri@lmc.cs.sunysb.edu: Resume from suspend-to-ram]
Date: Sat, 21 Feb 2004 18:40:49 +0100	[thread overview]
Message-ID: <20040221174049.GA4526@dreamland.darkstar.lan> (raw)
In-Reply-To: <1077336792.17072.30.camel-ZSGxbZoyBwc@public.gmane.org>

Il Sat, Feb 21, 2004 at 03:13:12PM +1100, Benjamin Herrenschmidt ha scritto: 
> On Sat, 2004-02-21 at 15:16, Giridhar Pemmasani wrote:
> > Actually there was another patch that I missed. 
> > 
> > I also had to patch radeon driver in XFree86 to softboot/POST. This
> > patch is from
> > http://mrohne.home.cern.ch/mrohne/P2120/P2120_Linux_S3.html (actually
> > there is no patch there, but I didn't want to post his email address
> > here, but if you need to contact him, go to the top of this link). 
> 
> Ahhhh ... that explains it.. yes, we need to re-POST the card.
> 
> I'm afraid in the kernel, that will be a problem, unless we can
> do that from real mode some way... my knowledge of x86 isn't good
> enough. One thing is sure, we can't rely on the PCI ROM of the
> card having a valid useable BIOS image, it's usually hidden
> somewhere with the main BIOS, so either we use the RAM image
> at c0000 or we ask the main BIOS to re-post the card.

Giridhar  look into  your BIOS  for something  like "Run  VGABIOS if  S3
Resume" (I have  it under "Power Management") and set  it to "Yes". With
this option  the firmware  will re-init the  card BIOS  before returning
control to  Linux. If you  don't see  it then it's  a big  problem... we
can't go in real mode once Linux  is running. It may be possible to hack
up something in wakeup.S, before restoring processor state.

Without this option I have a hard lockup (no ping, no sysrq, nothing) on
resume. With it framebuffer is restored fine.

>From syslog:
PM: Preparing system for suspend
Stopping tasks: =============|
[...]
radeonfb: suspending to state: 2...
PM: Entering state.
 hwsleep-0265 [17] acpi_enter_sleep_state: Entering sleep state [S3]
PM: Finishing up.
hStart = 1048, hEnd = 1184, hTotal = 1344
vStart = 771, vEnd = 777, vTotal = 806
h_total_disp = 0x7f00a7    hsync_strt_wid = 0x910422
v_total_disp = 0x2ff0325           vsync_strt_wid = 0x860302
pixclock = 15384
freq = 6500
post div = 0x2
fb_div = 0x74
ppll_div_3 = 0x20074
lvds_gen_cntl: 08000008
radeonfb: resumed !

Very nice :)

Luca
-- 
Home: http://kronoz.cjb.net
Windows NT crashed.
I'm the Blue Screen of Death.
No one hears your screams.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

  parent reply	other threads:[~2004-02-21 17:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040220235512.GA27779@dreamland.darkstar.lan>
     [not found] ` <20040220235512.GA27779-sTXFmx6KbOnUXq0IF5SVAZ4oGUkBHcCu@public.gmane.org>
2004-02-20 23:57   ` [giri@lmc.cs.sunysb.edu: Resume from suspend-to-ram] Benjamin Herrenschmidt
     [not found]     ` <1077321457.9623.27.camel-ZSGxbZoyBwc@public.gmane.org>
2004-02-21  4:16       ` Giridhar Pemmasani
     [not found]         ` <20040221041647.2F8307831D-Yo/1PYb2HdawRS80dfYGFoIJIQD0bWaD@public.gmane.org>
2004-02-21  4:13           ` Benjamin Herrenschmidt
     [not found]             ` <1077336792.17072.30.camel-ZSGxbZoyBwc@public.gmane.org>
2004-02-21 17:40               ` Luca [this message]
2004-02-22  0:49                 ` Giridhar Pemmasani

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=20040221174049.GA4526@dreamland.darkstar.lan \
    --to=kronos-0y2hhv2pmqfeowh0uzbu5w@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