gpu: nvgpu: dGpu VDK support

Set acr sw_init to NULL, not supported in
dGpu VDK.
Set NVGPU_GR_USE_DMA_FOR_FW_BOOTSTRAP to
false.

JIRA NVGPU-1564

Change-Id: Ic1dbbefc1fb5cff0a74737b54271287a08bef5d8
Signed-off-by: Vinod G <vinodg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1966356
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Vinod G
2018-12-05 13:37:04 -08:00
committed by mobile promotions
parent 794f6837d6
commit f9490bd065

View File

@@ -1070,7 +1070,6 @@ int tu104_init_hal(struct gk20a *g)
gops->get_litter_value = tu104_ops.get_litter_value;
gops->semaphore_wakeup = gk20a_channel_semaphore_wakeup;
__nvgpu_set_enabled(g, NVGPU_GR_USE_DMA_FOR_FW_BOOTSTRAP, true);
__nvgpu_set_enabled(g, NVGPU_SEC_PRIVSECURITY, true);
__nvgpu_set_enabled(g, NVGPU_SEC_SECUREGPCCS, true);
__nvgpu_set_enabled(g, NVGPU_PMU_FECS_BOOTSTRAP_DONE, false);
@@ -1094,10 +1093,17 @@ int tu104_init_hal(struct gk20a *g)
gops->ltc.init_comptags = NULL;
gops->fb.init_cbc = NULL;
/* Disable acr init */
gops->acr.acr_sw_init = NULL;
/* Disable pmu pstate, as there is no pmu support */
__nvgpu_set_enabled(g, NVGPU_PMU_PSTATE, false);
__nvgpu_set_enabled(g, NVGPU_GR_USE_DMA_FOR_FW_BOOTSTRAP,
false);
} else {
__nvgpu_set_enabled(g, NVGPU_PMU_PSTATE, true);
__nvgpu_set_enabled(g, NVGPU_GR_USE_DMA_FOR_FW_BOOTSTRAP, true);
}
g->pmu_lsf_pmu_wpr_init_done = 0;