]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Split the a5xx preemption record
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 4 Sep 2020 02:03:10 +0000 (20:03 -0600)
committerRob Clark <robdclark@chromium.org>
Fri, 4 Sep 2020 19:12:56 +0000 (12:12 -0700)
commit8cfb555543543d847c05e51564b17e5b791f9bc5
tree710b4789222236fbcb3897b4c3dc50c796b92f7f
parentdaf8e3416580dd5170204fd597b346a6d73e9aa3
drm/msm: Split the a5xx preemption record

The main a5xx preemption record can be marked as privileged to
protect it from user access but the counters storage needs to be
remain unprivileged. Split the buffers and mark the critical memory
as privileged.

Cc: stable@vger.kernel.org
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a5xx_gpu.h
drivers/gpu/drm/msm/adreno/a5xx_preempt.c