diff options
author | Chris Wilson | 2017-02-13 18:15:20 +0100 |
---|---|---|
committer | Chris Wilson | 2017-02-13 21:45:34 +0100 |
commit | 44653988ef7c70bf7c55a5e642e22ce5446fb6b1 (patch) | |
tree | 53c1039f61000e0549159bf297d85908dcb10a8c /drivers/gpu/drm/i915/i915_gem.c | |
parent | drm/i915: Mock infrastructure for request emission (diff) | |
download | kernel-qcow2-linux-44653988ef7c70bf7c55a5e642e22ce5446fb6b1.tar.gz kernel-qcow2-linux-44653988ef7c70bf7c55a5e642e22ce5446fb6b1.tar.xz kernel-qcow2-linux-44653988ef7c70bf7c55a5e642e22ce5446fb6b1.zip |
drm/i915: Create a fake object for testing huge allocations
We would like to be able to exercise huge allocations even on memory
constrained devices. To do this we create an object that allocates only
a few pages and remaps them across its whole range - each page is reused
multiple times. We can therefore pretend we are rendering into a much
larger object.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-9-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index db240a8f6b82..59e10b364ad0 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -5024,4 +5024,5 @@ i915_gem_object_get_dma_address(struct drm_i915_gem_object *obj, #if IS_ENABLED(CONFIG_DRM_I915_SELFTEST) #include "selftests/scatterlist.c" #include "selftests/mock_gem_device.c" +#include "selftests/huge_gem_object.c" #endif |