]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4daef8134f119d8a9c9810d8bff08825a8abd1c
treec18ece98db22a9aecfd7825aa29b453b59d453f3
parent1680666f515bbfe41edd2534476e565b02b452b5
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