summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/acr_gv11b.h
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-12-01 15:15:36 -0500
committerAlexander Van Brunt <avanbrunt@nvidia.com>2017-12-06 16:04:44 -0500
commit7d65ec92d8eea59ccb02baf63848e21a76b6f304 (patch)
treeb79d289a6ff1e0ffdbea1e0035b0b11bd9f964c5 /drivers/gpu/nvgpu/gv11b/acr_gv11b.h
parent5791b47d81b9135e7944aedd681424b0e1ab6717 (diff)
gpu: nvgpu: gv11b: init alloc_blob_space fn ptr
Use NVGPU_DMA_FORCE_CONTIGUOUS for non-wpr blob alloc. CPU writes some data to non WPR blob (sysmem). ACR binary executing from PMU, first copies that data to DMEM and then copies that data into WPR. Without NVGPU_DMA_FORCE_CONTIGUOUS, secure boot fails due to ACR writing wrong bootloader data to PMU DMEM. Bug 200355756 Change-Id: I18982caff62b2e7cbe64ea98c1bb935496cfe91c Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1610491 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/acr_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/acr_gv11b.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/acr_gv11b.h b/drivers/gpu/nvgpu/gv11b/acr_gv11b.h
index 5fbe45e2..004853be 100644
--- a/drivers/gpu/nvgpu/gv11b/acr_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/acr_gv11b.h
@@ -28,4 +28,6 @@ int gv11b_bootstrap_hs_flcn(struct gk20a *g);
28int gv11b_init_pmu_setup_hw1(struct gk20a *g, 28int gv11b_init_pmu_setup_hw1(struct gk20a *g,
29 void *desc, u32 bl_sz); 29 void *desc, u32 bl_sz);
30void gv11b_setup_apertures(struct gk20a *g); 30void gv11b_setup_apertures(struct gk20a *g);
31int gv11b_alloc_blob_space(struct gk20a *g, size_t size,
32 struct nvgpu_mem *mem);
31#endif /*__PMU_GP106_H_*/ 33#endif /*__PMU_GP106_H_*/