All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Thierry, Michel" <michel.thierry@intel.com>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 08/15] drm/i915: Fix up checks for aliasing ppgtt
Date: Fri, 8 Aug 2014 14:00:33 +0000	[thread overview]
Message-ID: <40F8A24546556F4F886C42CCE2ED59E51B2C10FA@IRSMSX103.ger.corp.intel.com> (raw)
In-Reply-To: <20140808134919.GS8727@phenom.ffwll.local>


[-- Attachment #1.1: Type: text/plain, Size: 2762 bytes --]



> -----Original Message-----
> From: Daniel Vetter [mailto:daniel.vetter@ffwll.ch] On Behalf Of Daniel
> Vetter
> Sent: Friday, August 08, 2014 2:49 PM
> To: Thierry, Michel
> Cc: Daniel Vetter; Intel Graphics Development
> Subject: Re: [Intel-gfx] [PATCH 08/15] drm/i915: Fix up checks for
aliasing
> ppgtt
> 
> On Fri, Aug 08, 2014 at 01:03:53PM +0000, Thierry, Michel wrote:
> >
> > > -----Original Message-----
> > > From: Intel-gfx [mailto:intel-gfx-bounces@lists.freedesktop.org] On
> Behalf
> > > Of Daniel Vetter
> > > Sent: Wednesday, August 06, 2014 2:05 PM
> > > To: Intel Graphics Development
> > > Cc: Daniel Vetter
> > > Subject: [Intel-gfx] [PATCH 08/15] drm/i915: Fix up checks for
aliasing
> > ppgtt
> > >
> > > A subsequent patch will no longer initialize the aliasing ppgtt if we
> > > have full ppgtt enabled, since we simply don't need that any more.
> > >
> > > Unfortunately a few places check for the aliasing ppgtt instead of
> > > checking for ppgtt in general. Fix them up.
> > >
> > > One special case are the gtt offset and size macros, which have some
> > > code to remap the aliasing ppgtt to the global gtt. The aliasing ppgtt
> > > is _not_ a logical address space, so passing that in as the vm is
> > > plain and simple a bug. So just WARN about it and carry on - we have a
> > > gracefully fall-through anyway if we can't find the vma.
> > >
> > > Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> > > ---
> > >  drivers/gpu/drm/i915/i915_cmd_parser.c  | 4 +---
> > >  drivers/gpu/drm/i915/i915_dma.c         | 2 +-
> > >  drivers/gpu/drm/i915/i915_gem.c         | 8 ++------
> > >  drivers/gpu/drm/i915/intel_ringbuffer.c | 4 +---
> > >  4 files changed, 5 insertions(+), 13 deletions(-)
> > >
> > > --
> > > 1.9.3
> > >
> > Sorry, I spotted another instance in gen8_ppgtt_info (debugfs). It is
more
> > gen8_ppgtt_info's fault, so I'm sending a follow up patch for it.
> > Unless you want to combine them...
> > Reviewed-by: Michel Thierry <michel.thierry@intel.com>
> 
> Actually I spotted that one and decided that I can't break things worse
> than it is - the aliasing ppgtt for full ppgtt is completely unused
> (except for these checks), so dumping it doesn't add value.
> 
> To check: Does your r-b apply here still even without any fixup for gen8
> ppgtt_info?
> -Daniel
Yes, the r-b still applies. 
And you're also right about gen8_ppgtt_info, it wouldn't print anything
useful in its current state.
-Michel
> 
> > > _______________________________________________
> > > Intel-gfx mailing list
> > > Intel-gfx@lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 
> 
> 
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> +41 (0) 79 365 57 48 - http://blog.ffwll.ch

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6656 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2014-08-08 14:01 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-06 13:04 [PATCH 01/15] drm/i915: vma/ppgtt lifetime rules Daniel Vetter
2014-08-06 13:04 ` [PATCH 02/15] drm/i915: Some cleanups for the ppgtt lifetime handling Daniel Vetter
2014-08-08 13:00   ` Thierry, Michel
2014-08-06 13:04 ` [PATCH 03/15] drm/i915: Move i915_gem_chipset_flush to where it belongs Daniel Vetter
2014-08-12  8:45   ` Thierry, Michel
2014-08-06 13:04 ` [PATCH 04/15] drm/i915: Track file_priv, not ctx in the ppgtt structure Daniel Vetter
2014-08-06 13:04 ` [PATCH 05/15] drm/i915: Only refcount ppgtt if it actually is one Daniel Vetter
2014-08-08 13:02   ` Thierry, Michel
2014-08-06 13:04 ` [PATCH 06/15] drm/i915: Add proper prefix to obj_to_ggtt Daniel Vetter
2014-08-06 13:04 ` [PATCH 07/15] drm/i915: Allow i915_gem_setup_global_gtt to fail Daniel Vetter
2014-08-12  8:48   ` Thierry, Michel
2014-08-06 13:04 ` [PATCH 08/15] drm/i915: Fix up checks for aliasing ppgtt Daniel Vetter
2014-08-08 13:03   ` Thierry, Michel
2014-08-08 13:49     ` Daniel Vetter
2014-08-08 14:00       ` Thierry, Michel [this message]
2014-08-06 13:04 ` [PATCH 09/15] drm/i915: Initialize the aliasing ppgtt as part of global gtt Daniel Vetter
2014-08-06 18:19   ` [PATCH 1/2] drm/i915: Rework ppgtt init to no require an aliasing ppgtt Daniel Vetter
2014-08-06 18:19     ` [PATCH 2/2] drm/i915: Initialize the aliasing ppgtt as part of global gtt Daniel Vetter
2014-08-08 13:04       ` Thierry, Michel
2014-08-06 19:55     ` [PATCH 1/2] drm/i915: Rework ppgtt init to no require an aliasing ppgtt Daniel Vetter
2014-08-12  8:58     ` Thierry, Michel
2014-08-06 13:04 ` [PATCH 10/15] drm/i915: Only track real ppgtt for a context Daniel Vetter
2014-08-06 13:04 ` [PATCH 11/15] drm/i915: Drop create_vm argument to i915_gem_create_context Daniel Vetter
2014-08-08 13:06   ` Thierry, Michel
2014-08-06 13:04 ` [PATCH 12/15] drm/i915: Extract common cleanup into i915_ppgtt_release Daniel Vetter
2014-08-08 13:07   ` Thierry, Michel
2014-08-06 13:04 ` [PATCH 13/15] drm/i915: Extract commmon global gtt cleanup code Daniel Vetter
2014-08-08 13:08   ` Thierry, Michel
2014-08-06 13:04 ` [PATCH 14/15] drm/i915: Cleanup aliasging ppgtt alongside the global gtt Daniel Vetter
2014-08-08 13:09   ` Thierry, Michel
2014-08-12 14:05     ` Daniel Vetter
2014-08-06 13:04 ` [PATCH 15/15] drm/i915: don't touch console_lock for I915_FBDEV=n Daniel Vetter

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=40F8A24546556F4F886C42CCE2ED59E51B2C10FA@IRSMSX103.ger.corp.intel.com \
    --to=michel.thierry@intel.com \
    --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.