mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Mock <kd6pag@qsl.net>
To: linux-kernel@vger.kernel.org
Subject: Re: swsusp in test8 fails with intel-agp and i830
Date: Mon, 20 Oct 2003 01:10:19 -0700	[thread overview]
Message-ID: <E1ABV7L-0001Os-00@penngrove.fdns.net> (raw)

I took a naive look at 'intel-agp.c' to see if i could learn anything.  Not 
much luck.  I think it has a better chance of winning if 'intel-agp' and 
friends aren't compiled as modules, but even then, i'm rather skeptical...

   Pavel - I looked in intel_agp and placed printk+mdelay all over
   agp_intel_resume(struct pci_dev *pdev), but something strange happened: I saw
   those print outs during _suspend_ and not during resume - does that make any
   sense?
							-- Aviram Jenik

I also tried putting in prink's at agp_intel_suspend(), agp_intel_resume(),
and a couple of other places.  ...suspend() was called, and ...resume() did 
appear to be called during the power down sequence [even if the DRM code is
not loaded], and after as well, i think, albeit the timing isn't completely 
clear to me from 'kern.log'.  (Similarly, e100 reported 'Link is Up' during 
the power-down sequence, and also happened after it was powered back up.)

So it looks like it's trying at least, and the problem may be elsewhere.
For example, if 'i810fb' wins with software suspend, then 'intel-agp' may 
not be the issue here, as it is worth noting that the i810 frame buffer
code ('drivers/video/i810/i810_main.c'), which uses it, makes some effort 
to make sure things are suspended and resumed properly.

   drivers/char/drm/i830_drv driver is apparently using DMA _and_ has no
   suspend/resume support. That looks dangerous to me, perhaps you'll
   need to implement those, too.
							-- Pavel Machek

I wasn't able to find anything that looked like suspend/resume support in
'drivers/char/drm/*', and i'm starting to wonder if DRI in general has any
chance of working with software suspend.  After all, i think the X server 
reaches in and hacks the hardware, so i don't understand how the DRM code 
can manage to restore that state after being powered down, 'cause i don't 
think it has any way of remembering what the user level code has been doing.  
No dbout, someone else has a MUCH better understanding of this than i do! 
*-sigh-*

I did go back to 2.4.21 to try out the older i830 frame buffer code (which
was formerly called 'intelfb'). It indeed seemed to work, but alas, for my 
machine, like 'vesafb', it seemed to be stuck with whatever frame buffer 
configuration 'arch/i386/boot/video.S' set up.  So again, the best i could
do seems to be 1024x768x8 (as it seemed to look like maybe the BIOS was 
rejecting anything larger than that in memory size).

				-- JM

             reply	other threads:[~2003-10-20  8:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-20  8:10 John Mock [this message]
2003-10-20 12:20 ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2003-10-18 22:18 John Mock
2003-10-18 23:06 ` Aviram Jenik
2003-10-15 21:47 Suspend to disk very unstable Aviram Jenik
2003-10-16 20:21 ` Pavel Machek
2003-10-18 15:17   ` swsusp in test8 fails with intel-agp and i830 Aviram Jenik
2003-10-18 18:05     ` 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=E1ABV7L-0001Os-00@penngrove.fdns.net \
    --to=kd6pag@qsl.net \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®