Re: [PATCH] PCI PM: Restore standard config registers of all devices early (was: Re: EeePC resume failure - timers)

Jesse Barnes
2009-01-20T17:45:36Z

On Monday, January 19, 2009 8:56 pm Linus Torvalds wrote:
> On Mon, 19 Jan 2009, Jesse Barnes wrote:
> > Is i915 loaded? Hopefully you can suspend/resume in text mode using its
> > suspend/resume code w/o using the s3_bios stuff?
>
> You're right, that works fine. So text-mode suspends and (immediately)
> resumes without any issues, multiple times. But X doesn't. The second
> resume will just hang when X re-initializes (sometimes I see the cursor,
> so I know X actually started up)

Getting register dumps before and after resume (and also preferably before and
after X VT switches) might help us figure out what's going on (sounds like
the driver's VT enter routine is broken somehow)... The xf86-video-intel
repo at git://git.freedesktop.org/git/xorg/driver/xf86-video-intel has a tool
called "intel_reg_dumper" in src/reg_dumper that you can use to capture the
dumps. If you're having trouble building it just check out an old version
like 2.5.1; current git needs a very new libdrm to build.

--
Jesse Barnes, Intel Open Source Technology Center