summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-05-08 02:09:49 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:49 -0400
commit3e5c123862c87e22311c21558178f287f85ecb5d (patch)
treee0bef0d98cf00237fce691e9f2b4cab2901a879b /drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
parentdf1852752a3ba9365ae6dca2795af4d43267896d (diff)
gpu: nvgpu: Always initialize system vm
PMU, FECS and GPCCS use the same address space. We used to initialize the address space only if PMU is enabled. Create the system address space always. FECS and GPCCS used to have slower bit bang and faster DMA method for loading ucode. Slower method is needed when FECS and GPCCS do not have an address space. Remove the slower method as not anymore needed. Change-Id: I155619741ecc36aa6bf13a9c1ccb03c7c1330f0a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/406771
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pmu_gk20a.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
index c12496bb..ac01302e 100644
--- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
@@ -1588,8 +1588,6 @@ int gk20a_init_pmu_setup_sw(struct gk20a *g)
1588 INIT_DELAYED_WORK(&pmu->elpg_enable, pmu_elpg_enable_allow); 1588 INIT_DELAYED_WORK(&pmu->elpg_enable, pmu_elpg_enable_allow);
1589 INIT_WORK(&pmu->pg_init, gk20a_init_pmu_setup_hw2_workqueue); 1589 INIT_WORK(&pmu->pg_init, gk20a_init_pmu_setup_hw2_workqueue);
1590 1590
1591 gk20a_init_pmu_vm(mm);
1592
1593 dma_set_attr(DMA_ATTR_READ_ONLY, &attrs); 1591 dma_set_attr(DMA_ATTR_READ_ONLY, &attrs);
1594 pmu->ucode.cpuva = dma_alloc_attrs(d, GK20A_PMU_UCODE_SIZE_MAX, 1592 pmu->ucode.cpuva = dma_alloc_attrs(d, GK20A_PMU_UCODE_SIZE_MAX,
1595 &iova, 1593 &iova,