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/gm20b | |
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/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c index fafe8734..8622f7b4 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <nvgpu/acr/nvgpu_acr.h> | 25 | #include <nvgpu/acr/nvgpu_acr.h> |
26 | #include <nvgpu/firmware.h> | 26 | #include <nvgpu/firmware.h> |
27 | 27 | ||
28 | #include <nvgpu/linux/dma.h> | ||
29 | |||
28 | #include "gk20a/gk20a.h" | 30 | #include "gk20a/gk20a.h" |
29 | #include "gk20a/pmu_gk20a.h" | 31 | #include "gk20a/pmu_gk20a.h" |
30 | #include "mm_gm20b.h" | 32 | #include "mm_gm20b.h" |
@@ -456,7 +458,7 @@ int prepare_ucode_blob(struct gk20a *g) | |||
456 | gm20b_dbg_pmu("prepare ucode blob return 0\n"); | 458 | gm20b_dbg_pmu("prepare ucode blob return 0\n"); |
457 | free_acr_resources(g, plsfm); | 459 | free_acr_resources(g, plsfm); |
458 | free_sgt: | 460 | free_sgt: |
459 | gk20a_free_sgtable(g, &sgt); | 461 | nvgpu_free_sgtable(g, &sgt); |
460 | return err; | 462 | return err; |
461 | } | 463 | } |
462 | 464 | ||