All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 03/11] drm/i915: initialization/teardown for the aliasing ppgtt
Date: Tue, 29 Nov 2011 10:50:56 -0800	[thread overview]
Message-ID: <20111129105056.224a6bbf@bwidawsk.net> (raw)
In-Reply-To: <1322512539-3923-4-git-send-email-daniel.vetter@ffwll.ch>

On Mon, 28 Nov 2011 21:35:30 +0100
Daniel Vetter <daniel.vetter@ffwll.ch> wrote:

> This just adds the setup and teardown code for the ppgtt PDE and the
> last-level pagetables, which are fixed for the entire lifetime, at
> least for the moment.
> 
> v2: Kill the stray debug printk noted by and improve the pte
> definitions as suggested by Chris Wilson.
> 
> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
>  drivers/gpu/drm/i915/i915_dma.c     |   14 +++-
>  drivers/gpu/drm/i915/i915_drv.h     |   18 +++++
>  drivers/gpu/drm/i915/i915_gem_gtt.c |  133 +++++++++++++++++++++++++++++++++++
>  drivers/gpu/drm/i915/i915_reg.h     |   18 +++++
>  4 files changed, 181 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
> index fd617fb..9d9a92c 100644
> --- a/drivers/gpu/drm/i915/i915_dma.c
> +++ b/drivers/gpu/drm/i915/i915_dma.c
> @@ -1199,13 +1199,21 @@ static int i915_load_gem_init(struct drm_device *dev)
>  	 * at the last page of the aperture.  One page should be enough to
>  	 * keep any prefetching inside of the aperture.
>  	 */
> -	i915_gem_do_init(dev, 0, mappable_size, gtt_size - PAGE_SIZE);
> +	i915_gem_do_init(dev, 0, mappable_size, gtt_size - PAGE_SIZE - 512*PAGE_SIZE);
> +
> +	if (HAS_ALIASING_PPGTT(dev)) {
> +		ret = i915_gem_init_aliasing_ppgtt(dev);
> +		if (ret)
> +			return ret;
> +	}

Not sure if you fixed this based on our IRC conversation. The size
belongs in the HAS_ALIASING block. Also, I'd prefer NUM_PDEs or
something similar. Finally, if you put the PDEs at the top, couldn't we
get rid of the scratch page?

Ben

  reply	other threads:[~2011-11-29 18:51 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28 20:35 [PATCH 00/11] aliasing ppgtt support v2 Daniel Vetter
2011-11-28 20:35 ` [PATCH 01/11] agp/intel-gtt: export the scratch page dma address Daniel Vetter
2011-11-29 23:52   ` Ben Widawsky
2011-11-28 20:35 ` [PATCH 02/11] agp/intel-gtt: export the gtt pagetable iomapping Daniel Vetter
2011-11-29 23:53   ` Ben Widawsky
2011-11-28 20:35 ` [PATCH 03/11] drm/i915: initialization/teardown for the aliasing ppgtt Daniel Vetter
2011-11-29 18:50   ` Ben Widawsky [this message]
2011-11-29 19:06     ` Daniel Vetter
2011-11-29 19:09       ` [PATCH] " Daniel Vetter
2011-11-29 19:54         ` Daniel Vetter
2011-11-29 20:55           ` Daniel Vetter
2011-11-29 23:29   ` [PATCH 03/11] " Ben Widawsky
2011-11-30  8:07     ` Daniel Vetter
2011-11-29 23:41   ` Ben Widawsky
2011-11-30  8:09     ` Daniel Vetter
2011-11-30 17:35       ` Ben Widawsky
2011-11-29 23:49   ` Ben Widawsky
2011-11-30  9:55     ` Daniel Vetter
2011-11-28 20:35 ` [PATCH 04/11] drm/i915: ppgtt binding/unbinding support Daniel Vetter
2011-11-29 23:46   ` Ben Widawsky
2011-11-28 20:35 ` [PATCH 05/11] drm/i915: ppgtt register definitions Daniel Vetter
2011-11-29 23:57   ` Ben Widawsky
2011-11-30  7:57     ` Daniel Vetter
2011-11-28 20:35 ` [PATCH 06/11] drm/i915: ppgtt debugfs info Daniel Vetter
2011-11-30  0:02   ` Ben Widawsky
2011-11-28 20:35 ` [PATCH 07/11] drm/i915: per-ring fault reg Daniel Vetter
2011-11-30  0:13   ` Eugeni Dodonov
2011-11-30  9:41     ` Daniel Vetter
2011-11-29  9:42 ` [PATCH 00/11] aliasing ppgtt support v2 Chris Wilson
2011-11-30  0:11 ` Eugeni Dodonov

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=20111129105056.224a6bbf@bwidawsk.net \
    --to=ben@bwidawsk.net \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.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.