diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-01-29 15:48:52 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-15 15:30:33 -0500 |
commit | b86a5d16329995497625a6c4013a4293739b9d06 (patch) | |
tree | fb4902e34ced20c7ddfafd9c31f88033cc9fd88e /drivers/gpu/nvgpu/gm20b | |
parent | ec00a6c2db2b6e163c2bb1245584a2d009fa1252 (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1648174
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
1348 | /*TODO in code verify that enable PMU is done, | 1348 | /*TODO in code verify that enable PMU is done, |
1349 | scrubbing etc is done*/ | 1349 | scrubbing etc is done*/ |
1350 | /*TODO in code verify that gmmu vm init is done*/ | 1350 | /*TODO in code verify that gmmu vm init is done*/ |
1351 | err = nvgpu_dma_alloc_flags_sys(g, | 1351 | err = nvgpu_dma_alloc_sys(g, bl_sz, &acr->hsbl_ucode); |
1352 | NVGPU_DMA_READ_ONLY, bl_sz, &acr->hsbl_ucode); | ||
1353 | if (err) { | 1352 | if (err) { |
1354 | nvgpu_err(g, "failed to allocate memory"); | 1353 | nvgpu_err(g, "failed to allocate memory"); |
1355 | goto err_done; | 1354 | goto err_done; |