Displaying 2 results from an estimated 2 matches for "drm_nouveau_as_free".
2015 Jul 07
5
CUDA fixed VA allocations and sparse mappings
...that look roughly
like this:
#define NOUVEAU_AS_ALLOC_FLAGS_FIXED_OFFSET 0x1
struct drm_nouveau_as_alloc {
uint64_t pages; /* in, pages */
uint32_t page_size; /* in, bytes */
uint32_t flags; /* in */
uint64_t offset; /* in/out, byte address */
};
struct drm_nouveau_as_free {
uint64_t offset; /* in, byte address */
};
These ioctls just call into the allocator to allocate a range of addresses,
resulting in a struct nvkm_vma that tracks that allocation (or releases the
struct nvkm_vma back into the virtual address pool in the case of the free
ioctl). If NOU...
2015 Jul 07
2
CUDA fixed VA allocations and sparse mappings
...> > struct drm_nouveau_as_alloc {
> > uint64_t pages; /* in, pages */
> > uint32_t page_size; /* in, bytes */
> > uint32_t flags; /* in */
> > uint64_t offset; /* in/out, byte address */
> > };
> >
> > struct drm_nouveau_as_free {
> > uint64_t offset; /* in, byte address */
> > };
> >
> > These ioctls just call into the allocator to allocate a range of addresses,
> > resulting in a struct nvkm_vma that tracks that allocation (or releases the
> > struct nvkm_vma back into the v...