OSDN Git Service

msm: kgsl: Don't read CP_RB_RPTR register without clock
authorHareesh Gundu <hareeshg@codeaurora.org>
Fri, 3 Jun 2016 09:36:51 +0000 (15:06 +0530)
committerCarter Cooper <ccooper@codeaurora.org>
Wed, 3 Aug 2016 16:34:05 +0000 (10:34 -0600)
commit51cd5b571fc01ad0f89405bb7f06b57ef734c648
treef57b775397aaac029db8dd7f80699ea3906e7467
parent7996822bbce7a8fe70eeca22baa52eb4eaeeabbe
msm: kgsl: Don't read CP_RB_RPTR register without clock

For A3xx we get GPU read pointer from the CP_RB_RPTR
register instead of rptr scratch memory address. In
retire_cmdbatch() and _retier_maraker() GPU clock will
be off, so avoid reading CP_RB_RPTR register. Also hold
device mutex in sendcmd() to access GPU registers.

CRs-Fixed: 1024730
Change-Id: Ifa5e9d3f892301685cb48a227ce4967d895499b1
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
drivers/gpu/msm/adreno_dispatch.c