diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2018-09-26 15:36:52 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-09-27 15:21:36 +0200 |
commit | fc18afcf5fb2d8776414076d81d907d8be82b362 (patch) | |
tree | 1811827715386353452ef6ab73460a77250aedca /lib/assoc_array.c | |
parent | 2724b2d54cdad7de12e53e7ff2666822bafeae2a (diff) |
drm/vmwgfx: Use a validation context allocator for relocations and validations
A common trait of these objects are that they are allocated during the
command validation phase and freed after command submission. Furthermore
they are accessed by a single thread only. So provide a simple unprotected
stack-like allocator from which these objects can be allocated. Their
memory is freed with the validation context when the command submission
is done.
Note that the mm subsystem maintains a per-cpu cache of single pages to
make single page allocation and freeing efficient.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions