diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-04-10 16:51:43 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-25 17:26:00 -0400 |
commit | 126c735d3015f515bde9f26d10b4e34d6e194e36 (patch) | |
tree | e3c034e2b854d71b356e2701382d40dce70e1a6d /drivers/gpu/nvgpu/tegra/linux | |
parent | 6a14d980cfdce5609c0eb7b20e2da3d98fbbccb8 (diff) |
gpu: nvgpu: Move and rename gk20a_sgtable*
Move and rename the functions that build sgtables for nvgpu_mems into
the Linux specific DMA code.
One place outside of the Linux code do include the Linux DMA header.
That will be fixed in a subsequent patch.
JIRA NVGPU-12
JIRA NVGPU-30
Change-Id: Ie43c752b8f998f122af70f7c7eb727af0b0d98df
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1464078
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/tegra/linux')
-rw-r--r-- | drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c index 852dcdf2..c2f0321a 100644 --- a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | |||
@@ -51,6 +51,8 @@ | |||
51 | #include <nvgpu/kmem.h> | 51 | #include <nvgpu/kmem.h> |
52 | #include <nvgpu/bug.h> | 52 | #include <nvgpu/bug.h> |
53 | 53 | ||
54 | #include <nvgpu/linux/dma.h> | ||
55 | |||
54 | #include "gk20a/gk20a.h" | 56 | #include "gk20a/gk20a.h" |
55 | #include "gk20a/hal_gk20a.h" | 57 | #include "gk20a/hal_gk20a.h" |
56 | #include "gk20a/platform_gk20a.h" | 58 | #include "gk20a/platform_gk20a.h" |
@@ -143,7 +145,7 @@ static void gk20a_tegra_secure_destroy(struct gk20a *g, | |||
143 | dma_free_attrs(&tegra_vpr_dev, desc->mem.size, | 145 | dma_free_attrs(&tegra_vpr_dev, desc->mem.size, |
144 | (void *)(uintptr_t)pa, | 146 | (void *)(uintptr_t)pa, |
145 | pa, __DMA_ATTR(attrs)); | 147 | pa, __DMA_ATTR(attrs)); |
146 | gk20a_free_sgtable(g, &desc->mem.priv.sgt); | 148 | nvgpu_free_sgtable(g, &desc->mem.priv.sgt); |
147 | desc->mem.priv.sgt = NULL; | 149 | desc->mem.priv.sgt = NULL; |
148 | } | 150 | } |
149 | } | 151 | } |