summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-09-22 13:07:53 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-26 14:09:57 -0400
commit93eea1d72934b28db4707e5aa7ab4dab65d89551 (patch)
treedce26388540b15745ff57ee28c22d058f3602d27 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parentf0fe1c2f0247cc4e2d786e879cb0c951ccb2181e (diff)
gpu: nvgpu: Move CE cleanup
Move the CE cleanup to before the FIFO cleanup. Since the CE closes a channel during its cleanup the FIFO needs to be initialized since the FIFO code maintains the vmalloc()'ed channels. Bug 1816516 Change-Id: Ia7a97059a12a0c2b52368ffe411e597f803e8e6e Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1225613 (cherry picked from commit 707bd2a6d4672c6a7b7a8b2e581ea3a606ed971d) Reviewed-on: http://git-master/r/1240106 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index b2cca072..1a9bee5f 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -376,6 +376,11 @@ struct mm_gk20a {
376#ifdef CONFIG_ARCH_TEGRA_18x_SOC 376#ifdef CONFIG_ARCH_TEGRA_18x_SOC
377 struct mem_desc bar2_desc; 377 struct mem_desc bar2_desc;
378#endif 378#endif
379 /*
380 * Separate function to cleanup the CE since it requires a channel to
381 * be closed which must happen before fifo cleanup.
382 */
383 void (*remove_ce_support)(struct mm_gk20a *mm);
379 void (*remove_support)(struct mm_gk20a *mm); 384 void (*remove_support)(struct mm_gk20a *mm);
380 bool sw_ready; 385 bool sw_ready;
381 int physical_bits; 386 int physical_bits;