drm/i915/selftests: Replace mock_file hackery with drm's true fake
As drm now exports a method to create an anonymous struct file around a drm_device for internal use, make use of it to avoid our horrible hacks. Danial suggested that the mock_file_put() wrapper was suitable for drm-core, along with the mock_drm_getfile() [and that the vestigal mock_drm_file() in this patch should perhaps be the drm interface itself]. However, the eventual goal is to remove the mock_drm_file() and use the struct file and fput() directly, in this patch we take a simple transition in that direction. Signed-off-by:Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by:
Matthew Auld <matthew.auld@intel.com> Reviewed-by:
Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20191107180601.30815-3-chris@chris-wilson.co.uk
Showing
- drivers/gpu/drm/i915/Kconfig.debug 2 additions, 0 deletionsdrivers/gpu/drm/i915/Kconfig.debug
- drivers/gpu/drm/i915/gem/selftests/huge_pages.c 1 addition, 1 deletiondrivers/gpu/drm/i915/gem/selftests/huge_pages.c
- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c 6 additions, 6 deletionsdrivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
- drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c 2 additions, 2 deletionsdrivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c
- drivers/gpu/drm/i915/gt/selftest_context.c 2 additions, 2 deletionsdrivers/gpu/drm/i915/gt/selftest_context.c
- drivers/gpu/drm/i915/gt/selftest_hangcheck.c 4 additions, 4 deletionsdrivers/gpu/drm/i915/gt/selftest_hangcheck.c
- drivers/gpu/drm/i915/gt/selftest_workarounds.c 1 addition, 1 deletiondrivers/gpu/drm/i915/gt/selftest_workarounds.c
- drivers/gpu/drm/i915/selftests/i915_gem.c 2 additions, 2 deletionsdrivers/gpu/drm/i915/selftests/i915_gem.c
- drivers/gpu/drm/i915/selftests/i915_gem_evict.c 1 addition, 1 deletiondrivers/gpu/drm/i915/selftests/i915_gem_evict.c
- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c 2 additions, 2 deletionsdrivers/gpu/drm/i915/selftests/i915_gem_gtt.c
- drivers/gpu/drm/i915/selftests/i915_request.c 1 addition, 1 deletiondrivers/gpu/drm/i915/selftests/i915_request.c
- drivers/gpu/drm/i915/selftests/intel_memory_region.c 1 addition, 1 deletiondrivers/gpu/drm/i915/selftests/intel_memory_region.c
- drivers/gpu/drm/i915/selftests/mock_drm.c 7 additions, 42 deletionsdrivers/gpu/drm/i915/selftests/mock_drm.c
- drivers/gpu/drm/i915/selftests/mock_drm.h 7 additions, 1 deletiondrivers/gpu/drm/i915/selftests/mock_drm.h
Loading
Please register or sign in to comment