summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
diff options
context:
space:
mode:
authorLauri Peltonen <lpeltonen@nvidia.com>2014-08-21 20:54:56 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:05 -0400
commitf05c269c23d1da5ef041d3d0a07e0c91c1627930 (patch)
treea67cdf3b7b9d771fe318fe76c259e97149201740 /drivers/gpu/nvgpu/gk20a/cde_gk20a.c
parenta52a50d407d6ac4b6f64c8b71e93d6cbd028e5f7 (diff)
gpu: nvgpu: cde: Map backing store as read-only
The cde shader will only read data from the global compbit backing store. Map it as read-only to enforce this. Change-Id: If5be44b8daedd5e7fdee650a6e76befa7bdecfd6 Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com> Reviewed-on: http://git-master/r/486679
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/cde_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
index 57707f54..24e2a778 100644
--- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
@@ -795,7 +795,7 @@ int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
795 /* map backing store to gpu virtual space */ 795 /* map backing store to gpu virtual space */
796 vaddr = gk20a_gmmu_map(ch->vm, &gr->compbit_store.sgt, 796 vaddr = gk20a_gmmu_map(ch->vm, &gr->compbit_store.sgt,
797 g->gr.compbit_store.size, 0, 797 g->gr.compbit_store.size, 0,
798 gk20a_mem_flag_none); 798 gk20a_mem_flag_read_only);
799 799
800 if (!vaddr) { 800 if (!vaddr) {
801 gk20a_warn(&cde_ctx->pdev->dev, "cde: cannot map compression bit backing store"); 801 gk20a_warn(&cde_ctx->pdev->dev, "cde: cannot map compression bit backing store");