Re: [RFC][AGPGART]intel-agp: save whole config space insuspend/resume

From: Dave Jones
Date: Mon Jun 11 2007 - 22:23:38 EST

On Tue, Jun 12, 2007 at 09:54:59AM +0800, Wang Zhenyu wrote:

> It looks that config space save/restore for intel-agp still has problem
> that might affect some chip models. Andreas Mohr's work on his i815 suspend/resume
> support showed that we need to save extra bits in config space on this old chip type.
> His patch is in -mm tree,
> And recently James Bottomley also reported that save/restore whole 256 bytes config
> space for gfx device can fix his s3 issue on Fujitsu P7120 i915.
> So here's my suggested patch for save whole 256 bytes config space for intel-agp,
> which could fix these issues. I tested it on my 965GM, that s3 works fine with X.

I'd feel much safer if we only did this on chipsets where we know we
have to do it. Doing this for *every* Intel chipset ever made _will_
bite us. There are some early chipsets (440BX era iirc) that would just
hang the box when you tried to read from various write-only registers.

But even on the chipsets where we _do_ need to save/restore something in
the upper part of the config space, surely it'd be a lot safer
to just save/restore what we need to rather than risk all sorts
of mayhem by writing to bits that may trigger hardware events.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at