From 3e5c123862c87e22311c21558178f287f85ecb5d Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 8 May 2014 09:09:49 +0300 Subject: 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 Reviewed-on: http://git-master/r/406771 --- drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.c') 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) INIT_DELAYED_WORK(&pmu->elpg_enable, pmu_elpg_enable_allow); INIT_WORK(&pmu->pg_init, gk20a_init_pmu_setup_hw2_workqueue); - gk20a_init_pmu_vm(mm); - dma_set_attr(DMA_ATTR_READ_ONLY, &attrs); pmu->ucode.cpuva = dma_alloc_attrs(d, GK20A_PMU_UCODE_SIZE_MAX, &iova, -- cgit v1.2.2