From 7d65ec92d8eea59ccb02baf63848e21a76b6f304 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Fri, 1 Dec 2017 12:15:36 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1610491 Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gv11b/acr_gv11b.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gv11b/acr_gv11b.h') 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); int gv11b_init_pmu_setup_hw1(struct gk20a *g, void *desc, u32 bl_sz); void gv11b_setup_apertures(struct gk20a *g); +int gv11b_alloc_blob_space(struct gk20a *g, size_t size, + struct nvgpu_mem *mem); #endif /*__PMU_GP106_H_*/ -- cgit v1.2.2