diff options
author | skadamati <skadamati@nvidia.com> | 2017-05-23 06:25:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-26 06:34:42 -0400 |
commit | e21e6e947b334cd16cc92c41953bf3c0153b1508 (patch) | |
tree | a9222039f465548e0f69730c8c3bf24ad6223116 /drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |
parent | 2e338c77eac4edffb94c8c9480dbd72712c7696f (diff) |
gpu: nvgpu: Fix build failure by missing headers
Move the platform_gk20a.h include out of the ifdef CONFIG_DEBUG_FS
in the CDE code since dev_from_gk20a() is used regardless of
whether debugfs is enabled.
Also modify some of the CE ops to take a struct gk20a instead of a
struct device. This avoids any requirement for including
linux/device.h or platform_gk20a.h.
Bug 200310575
Change-Id: Ifef963cd0f66d05094a698200386cc6140920eac
Signed-off-by: skadamati <skadamati@nvidia.com>
Reviewed-on: http://git-master/r/1487830
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 72f9eeab..17fa0c17 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -502,7 +502,7 @@ static int gk20a_vidmem_clear_all(struct gk20a *g) | |||
502 | if (mm->vidmem.ce_ctx_id == (u32)~0) | 502 | if (mm->vidmem.ce_ctx_id == (u32)~0) |
503 | return -EINVAL; | 503 | return -EINVAL; |
504 | 504 | ||
505 | err = gk20a_ce_execute_ops(g->dev, | 505 | err = gk20a_ce_execute_ops(g, |
506 | mm->vidmem.ce_ctx_id, | 506 | mm->vidmem.ce_ctx_id, |
507 | 0, | 507 | 0, |
508 | mm->vidmem.base, | 508 | mm->vidmem.base, |
@@ -521,7 +521,7 @@ static int gk20a_vidmem_clear_all(struct gk20a *g) | |||
521 | 521 | ||
522 | region2_base = mm->vidmem.bootstrap_base + mm->vidmem.bootstrap_size; | 522 | region2_base = mm->vidmem.bootstrap_base + mm->vidmem.bootstrap_size; |
523 | 523 | ||
524 | err = gk20a_ce_execute_ops(g->dev, | 524 | err = gk20a_ce_execute_ops(g, |
525 | mm->vidmem.ce_ctx_id, | 525 | mm->vidmem.ce_ctx_id, |
526 | 0, | 526 | 0, |
527 | region2_base, | 527 | region2_base, |
@@ -765,7 +765,7 @@ void gk20a_init_mm_ce_context(struct gk20a *g) | |||
765 | #if defined(CONFIG_GK20A_VIDMEM) | 765 | #if defined(CONFIG_GK20A_VIDMEM) |
766 | if (g->mm.vidmem.size && (g->mm.vidmem.ce_ctx_id == (u32)~0)) { | 766 | if (g->mm.vidmem.size && (g->mm.vidmem.ce_ctx_id == (u32)~0)) { |
767 | g->mm.vidmem.ce_ctx_id = | 767 | g->mm.vidmem.ce_ctx_id = |
768 | gk20a_ce_create_context_with_cb(g->dev, | 768 | gk20a_ce_create_context_with_cb(g, |
769 | gk20a_fifo_get_fast_ce_runlist_id(g), | 769 | gk20a_fifo_get_fast_ce_runlist_id(g), |
770 | -1, | 770 | -1, |
771 | -1, | 771 | -1, |
@@ -1683,7 +1683,7 @@ static int gk20a_gmmu_clear_vidmem_mem(struct gk20a *g, struct nvgpu_mem *mem) | |||
1683 | if (gk20a_last_fence) | 1683 | if (gk20a_last_fence) |
1684 | gk20a_fence_put(gk20a_last_fence); | 1684 | gk20a_fence_put(gk20a_last_fence); |
1685 | 1685 | ||
1686 | err = gk20a_ce_execute_ops(g->dev, | 1686 | err = gk20a_ce_execute_ops(g, |
1687 | g->mm.vidmem.ce_ctx_id, | 1687 | g->mm.vidmem.ce_ctx_id, |
1688 | 0, | 1688 | 0, |
1689 | chunk->base, | 1689 | chunk->base, |