]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: prefer the create_user helper
authorMatthew Auld <matthew.auld@intel.com>
Thu, 29 Jul 2021 09:47:31 +0000 (10:47 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 30 Jul 2021 09:23:44 +0000 (10:23 +0100)
commitc272d62c1cac84dcf859a521eb1d7507fdaecd8f
tree7d2460dd8dc2a20a9feb9b4cab52d73f0e06594b
parentc8dbeb8773d0af4b0e448097d959cd2888775ffa
drm/i915/selftests: prefer the create_user helper

No need to hand roll the set_placements stuff, now that we have a helper
for this.

v2: add back the -ENODEV checking since it's possible for stolen to be
probed, and yet still be non-functional

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20210729094731.1953091-1-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c