]> Git Repo - linux.git/commit
drm/i915: introduce intel_memory_region
authorMatthew Auld <[email protected]>
Tue, 8 Oct 2019 16:01:14 +0000 (17:01 +0100)
committerChris Wilson <[email protected]>
Tue, 8 Oct 2019 19:49:55 +0000 (20:49 +0100)
commit232a6ebae419193f5b8da4fa869ae5089ab105c2
treed27f4ef38adf7279ea044f070a632e7c6284ab97
parentd99f7b079c2a49b2278fe80192fbca083db87d18
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 <[email protected]>
Signed-off-by: Abdiel Janulgue <[email protected]>
Signed-off-by: Niranjana Vishwanathapura <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
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]
This page took 0.06139 seconds and 4 git commands to generate.