diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-04-24 03:14:24 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-26 12:14:31 -0400 |
commit | cacd455dfdcb8864e296268a230cc490759a3f9e (patch) | |
tree | 17411912d7faab2c778923833d4207fc4a2affbf /drivers/gpu/nvgpu/boardobj/boardobjgrp.c | |
parent | 71af78d2c22c6519b1ae2cbe3826f05e178d86f6 (diff) |
gpu: nvgpu: use correct flags for secure allocs
The gfp_t argument for dma_alloc_attrs() cannot take DMA_MEMORY_NOMAP -
it's interpreted as __GFP_RECLAIMABLE which has the same integer value.
Use GFP_KERNEL for the flag argument and set DMA_ATTR_NO_KERNEL_MAPPING
for dma attrs which the code was trying to do with the flag that is
meant for the coherent allocation API.
Bug 200299572
Change-Id: Ie4d988fbeeb954f6f7ccd4f9fb438968d76f0c6c
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1468315
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/boardobj/boardobjgrp.c')
0 files changed, 0 insertions, 0 deletions