drm/msm: Split the a5xx preemption record
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 4 Sep 2020 02:03:10 +0000 (20:03 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:42 +0000 (13:55 +0200)
commitc657e400e7353ef387fdd611a6bcff2f92d67409
tree836f659ad034009f84e0343426f76c8d4e061411
parent8e6a2ad4658bbde7648b4ec3daf46db2dd7dfa8b
drm/msm: Split the a5xx preemption record

commit 34221545d2069dc947131f42392fd4cebabe1b39 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/msm/adreno/a5xx_gpu.h
drivers/gpu/drm/msm/adreno/a5xx_preempt.c