From: Andrew Morton <akpm@linux-foundation.org>
To: Keith Packard <keithp@keithp.com>
Cc: linux-kernel@vger.kernel.org, airlied@linux.ie, keithp@keithp.com
Subject: Re: [intel-agp] Rewrite GTT on resume
Date: Fri, 6 Jun 2008 13:50:15 -0700 [thread overview]
Message-ID: <20080606135015.3f42820d.akpm@linux-foundation.org> (raw)
In-Reply-To: <1212550880.4677.5.camel@koto.keithp.com>
On Tue, 03 Jun 2008 20:41:20 -0700
Keith Packard <keithp@keithp.com> wrote:
> On my Intel chipset (965GM), the GTT is entirely erased across
> suspend/resume. This patch simply re-plays the current mapping at resume
> time to restore the table.
>
> I noticed this once I started relying on persistent GTT mappings across
> VT switch in our GEM work -- the old X server and DRM code carefully
> unbind all memory from the GTT on VT switch, but GEM does not bother.
>
> I placed the list management and rewrite code in the generic layer on
> the assumption that it will be needed on other hardware, but I did not
> add the rewrite call to anything other than the Intel resume function.
>
>
> commit 1233057731935fb5e9fd115d3d2985802ab636c8
> Author: Keith Packard <keithp@keithp.com>
> Date: Tue Jun 3 20:34:54 2008 -0700
>
> [INTEL-AGP] Re-write GATT on resume
>
> Keep a list of current GATT mappings. At resume time, rewrite them into the
> GATT. This is needed on Intel (at least) as the entire GATT is cleared
> across suspend/resume.
Please send a signed-off-by:?
> diff --git a/drivers/char/agp/agp.h b/drivers/char/agp/agp.h
> index c69f795..253f56f 100644
> --- a/drivers/char/agp/agp.h
> +++ b/drivers/char/agp/agp.h
> @@ -148,6 +148,8 @@ struct agp_bridge_data {
> char minor_version;
> struct list_head list;
> u32 apbase_config;
> + /* list of agp_memory mapped to the aperture */
> + struct list_head mapped_list;
> };
Is it safe to use this without locking?
next prev parent reply other threads:[~2008-06-06 20:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-04 3:41 [intel-agp] Rewrite GTT on resume Keith Packard
2008-06-06 20:50 ` Andrew Morton [this message]
2008-06-06 21:17 ` Keith Packard
2008-06-08 7:13 ` Pavel Machek
2008-06-09 3:02 ` Keith Packard
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=20080606135015.3f42820d.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=airlied@linux.ie \
--cc=keithp@keithp.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.