From: Pavel Machek <pavel@suse.cz>
To: Keith Packard <keithp@keithp.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, airlied@linux.ie,
Keith Packard <keith@keithp.com>
Subject: Re: [intel-agp] Rewrite GTT on resume
Date: Sun, 8 Jun 2008 09:13:03 +0200 [thread overview]
Message-ID: <20080608071302.GA4739@ucw.cz> (raw)
In-Reply-To: <1212787027.8384.31.camel@koto.keithp.com>
Hi!
> From 26b58f13ecbe95a7eaca7434aeb885def057b835 Mon Sep 17 00:00:00 2001
> From: Keith Packard <keithp@keithp.com>
> Date: Tue, 3 Jun 2008 20:34:54 -0700
> Subject: [PATCH] [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. The list is protected by a spinlock.
Is this needed in case of iommu enabled, agp disabled, too?
> diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
> index eeea50a..7f1a96e 100644
> --- a/drivers/char/agp/intel-agp.c
> +++ b/drivers/char/agp/intel-agp.c
> @@ -2176,6 +2176,7 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev)
> static int agp_intel_resume(struct pci_dev *pdev)
> {
> struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
> + int ret_val;
>
> pci_restore_state(pdev);
>
> @@ -2203,6 +2204,10 @@ static int agp_intel_resume(struct pci_dev *pdev)
> else if (bridge->driver == &intel_i965_driver)
> intel_i915_configure();
>
> + ret_val = agp_rebind_memory();
> + if (ret_val != 0)
> + return ret_val;
> +
> return 0;
> }
> #endif
Should this move early (sysdev?) because other drivers may depend on
iommu working?
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2008-06-08 7:13 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
2008-06-06 21:17 ` Keith Packard
2008-06-08 7:13 ` Pavel Machek [this message]
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=20080608071302.GA4739@ucw.cz \
--to=pavel@suse.cz \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=keith@keithp.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox