diff options
author | 2021-03-23 16:50:40 +0100 | |
---|---|---|
committer | 2021-03-24 17:43:48 +0100 | |
commit | d3ad29567d4e0b0002fd2b6fa598b9f4d88a5856 (patch) | |
tree | 42b63ab06d6699298b394fe5d3cef4fc356d9b14 | |
parent | drm/i915/selftests: Prepare igt_gem_utils for obj->mm.lock removal (diff) | |
download | wireguard-linux-d3ad29567d4e0b0002fd2b6fa598b9f4d88a5856.tar.xz wireguard-linux-d3ad29567d4e0b0002fd2b6fa598b9f4d88a5856.zip |
drm/i915/selftests: Prepare context selftest for obj->mm.lock removal
Only needs to convert a single call to the unlocked version.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210323155059.628690-52-maarten.lankhorst@linux.intel.com
-rw-r--r-- | drivers/gpu/drm/i915/gt/selftest_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_context.c b/drivers/gpu/drm/i915/gt/selftest_context.c index db738d400168..d1f19fd04769 100644 --- a/drivers/gpu/drm/i915/gt/selftest_context.c +++ b/drivers/gpu/drm/i915/gt/selftest_context.c @@ -88,8 +88,8 @@ static int __live_context_size(struct intel_engine_cs *engine) if (err) goto err; - vaddr = i915_gem_object_pin_map(ce->state->obj, - i915_coherent_map_type(engine->i915)); + vaddr = i915_gem_object_pin_map_unlocked(ce->state->obj, + i915_coherent_map_type(engine->i915)); if (IS_ERR(vaddr)) { err = PTR_ERR(vaddr); intel_context_unpin(ce); |