gpu: nvgpu: move CE app logic under CONFIG_NVGPU_DGPU

CE app functionality from nvgpu is non-safe for igpu. CE engines init
/reset/cg related functionality is required in safety. Hence move the
CE app logic under CONFIG_NVGPU_DGPU flag and update the sources
accordingly.

JIRA NVGPU-3814

Change-Id: I37aa00b1184baccd5fe569ec315be60ac42dac9b
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2168956
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Sagar Kamble
2019-08-06 10:07:21 +05:30
committed by mobile promotions
parent 6e2e4d0658
commit 2f95efd8d1
12 changed files with 682 additions and 647 deletions

View File

@@ -469,7 +469,7 @@ int gk20a_pm_finalize_poweron(struct device *dev)
if (err)
goto done;
#ifdef CONFIG_NVGPU_CE
#ifdef CONFIG_NVGPU_DGPU
nvgpu_init_mm_ce_context(g);
#endif