mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
drm/i915/selftests: Prepare coherency tests for obj->mm.lock removal.
Straightforward conversion, just convert a bunch of calls to unlocked versions. 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-44-maarten.lankhorst@linux.intel.com
This commit is contained in:
parent
86f2f8dfbf
commit
5521458d1c
|
|
@ -160,7 +160,7 @@ static int wc_set(struct context *ctx, unsigned long offset, u32 v)
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
map = i915_gem_object_pin_map(ctx->obj, I915_MAP_WC);
|
||||
map = i915_gem_object_pin_map_unlocked(ctx->obj, I915_MAP_WC);
|
||||
if (IS_ERR(map))
|
||||
return PTR_ERR(map);
|
||||
|
||||
|
|
@ -183,7 +183,7 @@ static int wc_get(struct context *ctx, unsigned long offset, u32 *v)
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
map = i915_gem_object_pin_map(ctx->obj, I915_MAP_WC);
|
||||
map = i915_gem_object_pin_map_unlocked(ctx->obj, I915_MAP_WC);
|
||||
if (IS_ERR(map))
|
||||
return PTR_ERR(map);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user