]> 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)
commit133caa360b38ce8eee6c543c1fa74be586b7a886
tree7d2460dd8dc2a20a9feb9b4cab52d73f0e06594b
parent3a35186ef1d6addf97ad3b16d2e9ae3f58007250
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