[Intel-gfx] [PATCH] drm/i915/selftests: Yet another forgotten mock_i915->mm initialiser

Chris Wilson chris at chris-wilson.co.uk
Fri Nov 10 23:22:58 UTC 2017


Quoting Matthew Auld (2017-11-10 23:18:41)
> On 10 November 2017 at 22:58, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > diff --git a/drivers/gpu/drm/i915/selftests/mock_gem_device.c b/drivers/gpu/drm/i915/selftests/mock_gem_device.c
> > index d2bf2729c331..2df47239e8a0 100644
> > --- a/drivers/gpu/drm/i915/selftests/mock_gem_device.c
> > +++ b/drivers/gpu/drm/i915/selftests/mock_gem_device.c
> > @@ -179,9 +179,8 @@ struct drm_i915_private *mock_gem_device(void)
> >                 I915_GTT_PAGE_SIZE_64K |
> >                 I915_GTT_PAGE_SIZE_2M;
> >
> > -       spin_lock_init(&i915->mm.object_stat_lock);
> I think we still need this, no?

Sounds useful. Apparently we init that over in i915_drv.c.
-Chris


More information about the Intel-gfx mailing list