projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef08fd
)
drm/i915/selftests: Use full release for local ppgtt allocation
author
Chris Wilson
<
[email protected]
>
Thu, 5 Jul 2018 06:56:52 +0000
(07:56 +0100)
committer
Chris Wilson
<
[email protected]
>
Thu, 5 Jul 2018 10:19:23 +0000
(11:19 +0100)
We can now use the full release mechanism (i915_ppgtt_put) for our local
ppgtt allocation in igt_ppgtt_alloc.
Signed-off-by: Chris Wilson <
[email protected]
>
Reviewed-by: Tvrtko Ursulin <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
index 4bfb0537f9be7e66016885e763ccaa0a98fb84fb..e108fe4e0fd94e5490014413dcffbd521b3dd36a 100644
(file)
--- a/
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
+++ b/
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
@@
-202,9
+202,8
@@
static int igt_ppgtt_alloc(void *arg)
err_ppgtt_cleanup:
mutex_lock(&dev_priv->drm.struct_mutex);
-
ppgtt->vm.cleanup(&ppgtt->vm
);
+
i915_ppgtt_put(ppgtt
);
mutex_unlock(&dev_priv->drm.struct_mutex);
- kfree(ppgtt);
return err;
}