mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-21 10:05:00 +08:00
cf3e3e86d7
Use the ttm handlers for servicing page faults, and vm_access. We do our own validation of read-only access, otherwise use the ttm handlers as much as possible. Because the ttm handlers expect the vma_node at vma->base, we slightly need to massage the mmap handlers to look at vma_node->driver_private to fetch the bo, if it's NULL, we assume i915's normal mmap_offset uapi is used. This is the easiest way to achieve compatibility without changing ttm's semantics. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210610070152.572423-5-thomas.hellstrom@linux.intel.com |
||
---|---|---|
.. | ||
i915_active.c | ||
i915_gem_evict.c | ||
i915_gem_gtt.c | ||
i915_gem.c | ||
i915_live_selftests.h | ||
i915_mock_selftests.h | ||
i915_perf_selftests.h | ||
i915_perf.c | ||
i915_random.c | ||
i915_random.h | ||
i915_request.c | ||
i915_selftest.c | ||
i915_sw_fence.c | ||
i915_syncmap.c | ||
i915_vma.c | ||
igt_atomic.c | ||
igt_atomic.h | ||
igt_flush_test.c | ||
igt_flush_test.h | ||
igt_live_test.c | ||
igt_live_test.h | ||
igt_mmap.c | ||
igt_mmap.h | ||
igt_reset.c | ||
igt_reset.h | ||
igt_spinner.c | ||
igt_spinner.h | ||
intel_memory_region.c | ||
intel_uncore.c | ||
lib_sw_fence.c | ||
lib_sw_fence.h | ||
librapl.c | ||
librapl.h | ||
mock_drm.h | ||
mock_gem_device.c | ||
mock_gem_device.h | ||
mock_gtt.c | ||
mock_gtt.h | ||
mock_region.c | ||
mock_region.h | ||
mock_request.c | ||
mock_request.h | ||
mock_uncore.c | ||
mock_uncore.h | ||
scatterlist.c |