summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorScott D Phillips <[email protected]>2018-03-07 09:18:37 -0800
committerJason Ekstrand <[email protected]>2018-05-31 16:51:46 -0700
commitaaea46242d651a1b03f7292ac89a68f8a9086692 (patch)
treeee334a68d3d6fe24a065ad05cfa7190787aa47a3 /scripts
parent6e4672f881bbc73c56b0d81dfea93d09f8d39eec (diff)
anv: Add vma_heap allocators in anv_device
These will be used to assign virtual addresses to soft pinned buffers in a later patch. Two allocators are added for separate 'low' and 'high' virtual memory areas. Another alternative would have been to add a double-sided allocator, which wasn't done here just because it didn't appear to give any code complexity advantages. v2 (Scott Phillips): - rename has_exec_softpin to use_softpin (Jason) - Only remove bottom one page and top 4 GiB from virt (Jason) - refer to comment in anv_allocator about state address + size overflowing 48 bits (Jason) - Mention hi/lo allocators vs double-sided allocator in commit message (Chris) - assign state pool memory ranges statically (Jason) v3 (Jason Ekstrand): - Use (LOW|HIGH)_HEAP_(MIN|MAX)_ADDRESS rather than (1 << 31) for determining which heap to use in anv_vma_free - Only return de-canonicalized addresses to the heap Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions