]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: introduce intel_memory_region
authorMatthew Auld <matthew.auld@intel.com>
Tue, 8 Oct 2019 16:01:14 +0000 (17:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Oct 2019 19:49:55 +0000 (20:49 +0100)
commit531442f9462461759e2ed7095d71b316b9e629bd
treed27f4ef38adf7279ea044f070a632e7c6284ab97
parent47714fd3665d2bf83e1c172c0e4550676a214a2d
drm/i915: introduce intel_memory_region

Support memory regions, as defined by a given (start, end), and allow
creating GEM objects which are backed by said region. The immediate goal
here is to have something to represent our device memory, but later on
we also want to represent every memory domain with a region, so stolen,
shmem, and of course device. At some point we are probably going to want
use a common struct here, such that we are better aligned with say TTM.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191008160116.18379-2-matthew.auld@intel.com
13 files changed:
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gem/i915_gem_object_types.h
drivers/gpu/drm/i915/gem/i915_gem_region.c [new file with mode: 0644]
drivers/gpu/drm/i915/gem/i915_gem_region.h [new file with mode: 0644]
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_memory_region.c [new file with mode: 0644]
drivers/gpu/drm/i915/intel_memory_region.h [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
drivers/gpu/drm/i915/selftests/intel_memory_region.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_gem_device.c
drivers/gpu/drm/i915/selftests/mock_region.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_region.h [new file with mode: 0644]