From b86a5d16329995497625a6c4013a4293739b9d06 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 29 Jan 2018 12:48:52 -0800 Subject: gpu: nvgpu: Remove the use of READ_ONLY for DMA API READ_ONLY flag for dma API is a Tegra specific API. We use it only to prevent accidental writes to non-secure ACR bootloader. Its use is marginal, so remove the flag. JIRA NVGPU-4 Change-Id: I887dc04aee8f7ace40220294851b210375dfde98 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1648174 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gm20b/acr_gm20b.c') diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c index c57fba45..cffe7199 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c @@ -1348,8 +1348,7 @@ int pmu_exec_gen_bl(struct gk20a *g, void *desc, u8 b_wait_for_halt) /*TODO in code verify that enable PMU is done, scrubbing etc is done*/ /*TODO in code verify that gmmu vm init is done*/ - err = nvgpu_dma_alloc_flags_sys(g, - NVGPU_DMA_READ_ONLY, bl_sz, &acr->hsbl_ucode); + err = nvgpu_dma_alloc_sys(g, bl_sz, &acr->hsbl_ucode); if (err) { nvgpu_err(g, "failed to allocate memory"); goto err_done; -- cgit v1.2.2