]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
drm/i915: disable shrinker lock stealing for create_mmap_offset
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Dec 2012 14:11:16 +0000 (15:11 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Dec 2012 13:57:35 +0000 (14:57 +0100)
commitda494d7ca5e0a1afca3480826b5060e15c951e80
tree57444658015505cb7cb8596d0e3e8d607cc076e7
parent677feac291c1ea7f0b84c6e499e858d440b96c7b
drm/i915: disable shrinker lock stealing for create_mmap_offset

The mmap offset structure is not part of the drm/i915 code, but
provided by gem helpers. To avoid leaky abstractions (by either
depending upon implementation details of said helper wrt to
preallocations, or reimplementing it in our code and so fuzzing
around in internal details of that helpr) simply disable
the shrinker lock stealing accross calls into the helper functions.

This should fix igt/gem_tiled_swapping.

v2: Fix cleanup path confusion bemoaned by Chris Wilson.

Reported-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c