[Intel-gfx] [PATCH 6/7] drm/i915: Rename i915_hw_ppgtt to i915_ppgtt

Chris Wilson chris at chris-wilson.co.uk
Fri Jun 7 11:15:55 UTC 2019


Quoting Matthew Auld (2019-06-07 12:02:45)
> On Mon, 3 Jun 2019 at 18:49, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> >
> > Keeping the _hw_ in there does not help to distinguish it from its
> > brethren i915_ggtt, so drop it.
> >
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > ---
> >  drivers/gpu/drm/i915/gem/i915_gem_context.c   |  8 +-
> >  .../gpu/drm/i915/gem/selftests/huge_pages.c   | 12 +--
> >  .../gpu/drm/i915/gem/selftests/mock_context.c |  2 +-
> >  drivers/gpu/drm/i915/gt/intel_lrc.c           |  4 +-
> >  drivers/gpu/drm/i915/gt/intel_ringbuffer.c    |  5 +-
> >  drivers/gpu/drm/i915/gvt/scheduler.c          |  6 +-
> >  drivers/gpu/drm/i915/i915_drv.h               |  2 +-
> >  drivers/gpu/drm/i915/i915_gem_gtt.c           | 78 +++++++++----------
> >  drivers/gpu/drm/i915/i915_gem_gtt.h           | 28 +++----
> >  drivers/gpu/drm/i915/selftests/i915_gem_gtt.c |  6 +-
> >  drivers/gpu/drm/i915/selftests/mock_gtt.c     |  7 +-
> >  drivers/gpu/drm/i915/selftests/mock_gtt.h     |  4 +-
> >  12 files changed, 78 insertions(+), 84 deletions(-)
> >
> 
> [snip]
> 
> >
> > -struct i915_hw_ppgtt *
> > -mock_ppgtt(struct drm_i915_private *i915,
> > -          const char *name)
> > +struct i915_ppgtt *mock_ppgtt(struct drm_i915_private *i915, const char *name)
> >  {
> > -       struct i915_hw_ppgtt *ppgtt;
> > +       struct i915_ppgtt *ppgtt;
> >
> >         ppgtt = kzalloc(sizeof(*ppgtt), GFP_KERNEL);
> >         if (!ppgtt)
> >                 return NULL;
> >
> > -       ppgtt->vm.i915 = i915;
> 
> Hmm?

Ah hah! Thanks,
-Chris


More information about the Intel-gfx mailing list