OSDN Git Service

drm/msm: Make the value of RB_CNTL (almost) generic
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 20 Oct 2017 17:07:00 +0000 (11:07 -0600)
committerRob Clark <robdclark@gmail.com>
Sat, 28 Oct 2017 15:01:38 +0000 (11:01 -0400)
commit4d87fc32dfd20ad0d4ffd5204f6e5d41d281e128
treec18ece98db22a9aecfd7825aa29b453b59d453f3
parent4c7085a5d581a547232086b4ac0f553024eb9cec
drm/msm: Make the value of RB_CNTL (almost) generic

We use a global ringbuffer size and block size for all targets and
at least for 5XX preemption we need to know the value the RB_CNTL
in several locations so it makes sense to calculate it once and use
it everywhere.

The only monkey wrench is that we need to disable the RPTR shadow
for A430 targets but that only needs to be done once and doesn't
affect A5XX so we can or in the value at init time.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gpu.h