[Intel-gfx] [RFC 03/13] drm/i915/svm: Runtime (RT) allocator support

Chris Wilson chris at chris-wilson.co.uk
Mon Nov 25 09:59:37 UTC 2019


Quoting Niranjana Vishwanathapura (2019-11-22 20:57:24)
> Shared Virtual Memory (SVM) runtime allocator support allows
> binding a shared virtual address to a buffer object (BO) in the
> device page table through an ioctl call.

The ioctl though is not svm specific, it is to do with "bulk residency"
and can be used to reduce execbuf traffic to provide virtual address
layout controls to e.g. Vulkan clients.

I915_VM_BIND {
	uint32_t vm_id;
	int32_t fd; /* or -1 for anon, or buf depending on flags */
	uint64_t flags;
	uint64_t offset; /* offset info fd [page aligned] */
	uint64_t length; /* page aligned */
	uint64_t iova; /* page aligned */
	uint64_t extensions;
}; /* where page aligned is actually more I915_GTT_PAGE_ALIGNMENT */

as I recall. I also recall it being part of a future command stream
interface to reduce ioctls, but that is another story.
-Chris


More information about the Intel-gfx mailing list