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)
commit34221545d2069dc947131f42392fd4cebabe1b39
tree710b4789222236fbcb3897b4c3dc50c796b92f7f
parent5e0c22d4a9ddae4e784a3e171b9d3d452b37aeb2
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