diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-08-18 05:00:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-01 12:10:54 -0400 |
commit | 9ebd051779827a05d62fbba7ffa65cf401c256b3 (patch) | |
tree | 393ca0feab2fb2790005d44c079ec7257df9cb2e /drivers/gpu/nvgpu/pci.c | |
parent | 50fec50bffea22dc6c19c86da6ecb604c940c424 (diff) |
gpu: nvgpu: track allocator and user for each mem
Store allocator pointer for each mem_desc
This pointer should be used while freeing the mem
instead of assuming a common allocator
Add flag user_mem to mem_desc which will be set
only in case of User vidmem allocations
We will delay free of mem in worker only if this
flag is set on mem. Otherwise, we will free it
immediately
This is needed so that all kernel allocations
can work with both sysmem and vidmem
Jira DNVGPU-84
Change-Id: Ib9a9209b164bc56b7880448f86bd6d42b324cc86
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1203099
(cherry picked from commit 8f0b0122f36a0b6f1932fa9a98d7eb03b1f623d1)
Reviewed-on: http://git-master/r/1210953
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pci.c')
0 files changed, 0 insertions, 0 deletions