diff options
author | David Gilhooley <dgilhooley@nvidia.com> | 2017-11-13 00:38:58 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-14 14:15:58 -0500 |
commit | b22c5911dd2d6f1c4bc218f020228ec23e7e0802 (patch) | |
tree | df6dca2f0eb4bb1745c44cc9358383e023f3a5a3 /drivers/gpu/nvgpu/include | |
parent | 90aeab9dee07a63e4bac6d92646dfd80e65d2edd (diff) |
gpu: nvgpu: Pass DMA allocation flags correctly
There are flags that need to be passed to both dma_alloc
and sg_alloc together. Update nvgpu_dma_alloc_flags_sys to always
pass flags.
Bug 1930032
Change-Id: I10c4c07d7b518d9ab6c48dd7a0758c68750d02a6
Signed-off-by: David Gilhooley <dgilhooley@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1596848
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/linux/dma.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/linux/dma.h b/drivers/gpu/nvgpu/include/nvgpu/linux/dma.h index 3960e654..342b278e 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/linux/dma.h +++ b/drivers/gpu/nvgpu/include/nvgpu/linux/dma.h | |||
@@ -21,9 +21,13 @@ | |||
21 | * Functions used internally for building the backing SGTs for nvgpu_mems. | 21 | * Functions used internally for building the backing SGTs for nvgpu_mems. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | int nvgpu_get_sgtable(struct gk20a *g, struct sg_table **sgt, | 24 | |
25 | int nvgpu_get_sgtable_attrs(struct gk20a *g, struct sg_table **sgt, | ||
25 | void *cpuva, u64 iova, | 26 | void *cpuva, u64 iova, |
26 | size_t size); | 27 | size_t size, unsigned long flags); |
28 | |||
29 | int nvgpu_get_sgtable(struct gk20a *g, struct sg_table **sgt, | ||
30 | void *cpuva, u64 iova, size_t size); | ||
27 | 31 | ||
28 | int nvgpu_get_sgtable_from_pages(struct gk20a *g, struct sg_table **sgt, | 32 | int nvgpu_get_sgtable_from_pages(struct gk20a *g, struct sg_table **sgt, |
29 | struct page **pages, u64 iova, | 33 | struct page **pages, u64 iova, |