]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/selftests: Drop struct_mutex around lowlevel pggtt allocation
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Jul 2018 13:53:31 +0000 (14:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Jul 2018 21:09:22 +0000 (22:09 +0100)
commit1f6f00238abf2bfa46f4d2c44cfc7512566f3685
tree1e6cb80e9554453e2d22b0218b7b1f1136f178f7
parent38b7fb0b2ad1f2ba83bf9a8535cedb198a448ea4
drm/i915/selftests: Drop struct_mutex around lowlevel pggtt allocation

For a ppgtt that we are constructing, there is no struct_mutex
dependence so skip it. In the process, also ping the scheduler
frequently to try and avoid the NMI watchdog.

v2: gen6 requires struct_mutex to clean up (currently)

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=107094
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180703135331.12265-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c