]> 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)
commit26c946fa1dfd51dfe6b79a4e60b0cb6f3c7646f3
tree710b4789222236fbcb3897b4c3dc50c796b92f7f
parentba9a0cf4ca3f80c4b9e477885fc74ff6c3bcb113
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