mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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
This commit is contained in:
committed by
Dan Willemsen
parent
a52a50d407
commit
f05c269c23
@@ -795,7 +795,7 @@ int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
|
||||
/* map backing store to gpu virtual space */
|
||||
vaddr = gk20a_gmmu_map(ch->vm, &gr->compbit_store.sgt,
|
||||
g->gr.compbit_store.size, 0,
|
||||
gk20a_mem_flag_none);
|
||||
gk20a_mem_flag_read_only);
|
||||
|
||||
if (!vaddr) {
|
||||
gk20a_warn(&cde_ctx->pdev->dev, "cde: cannot map compression bit backing store");
|
||||
|
||||
Reference in New Issue
Block a user