]> 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)
commit6d0e4f077c895549bc02b2b3db2d66aae6e865a3
tree7d2460dd8dc2a20a9feb9b4cab52d73f0e06594b
parent6266992cf1052432bcb592dd6f22f9be7960ddb0
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