Skip to content

Commit

Permalink
msm: kgsl: Update pagetable on context destruction for A20x
Browse files Browse the repository at this point in the history
Ensure that pagetable is updated during context destruction. This
resolves stability issues during Camera launch/exit scenarios. Applies
only to A20x GPUs. This change is already done for Z180 device.

Change-Id: I955c7220aa8234009f5bca0a273093e47147279d
Signed-off-by: Rammohan Basavaraju <rammoh@codeaurora.org>
  • Loading branch information
Rammohan Basavaraju authored and KonstaT committed Nov 6, 2012
1 parent 8a63d98 commit 894da50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/msm/adreno_drawctxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ void adreno_drawctxt_destroy(struct kgsl_device *device,

adreno_idle(device, KGSL_TIMEOUT_DEFAULT);

if (adreno_is_a20x(adreno_dev))
kgsl_setstate(device, KGSL_MMUFLAGS_PTUPDATE);

kgsl_sharedmem_free(&drawctxt->gpustate);
kgsl_sharedmem_free(&drawctxt->context_gmem_shadow.gmemshadow);

Expand Down

0 comments on commit 894da50

Please sign in to comment.