diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2020-09-03 20:03:11 -0600 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-09-04 12:14:07 -0700 |
commit | 604234f33658cdd72f686be405a99646b397d0b3 (patch) | |
tree | c1c28be8e8d62aeee20d869dec3a5651dcc18669 /drivers/gpu/drm/msm/msm_ringbuffer.c | |
parent | 34221545d2069dc947131f42392fd4cebabe1b39 (diff) | |
download | lwn-604234f33658cdd72f686be405a99646b397d0b3.tar.gz lwn-604234f33658cdd72f686be405a99646b397d0b3.zip |
drm/msm: Enable expanded apriv support for a650
a650 supports expanded apriv support that allows us to map critical buffers
(ringbuffer and memstore) as as privileged to protect them from corruption.
Cc: stable@vger.kernel.org
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_ringbuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/msm_ringbuffer.c b/drivers/gpu/drm/msm/msm_ringbuffer.c index 39ecb5a18431..935bf9b1d941 100644 --- a/drivers/gpu/drm/msm/msm_ringbuffer.c +++ b/drivers/gpu/drm/msm/msm_ringbuffer.c @@ -27,8 +27,8 @@ struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int id, ring->id = id; ring->start = msm_gem_kernel_new(gpu->dev, MSM_GPU_RINGBUFFER_SZ, - MSM_BO_WC | MSM_BO_GPU_READONLY, gpu->aspace, &ring->bo, - &ring->iova); + check_apriv(gpu, MSM_BO_WC | MSM_BO_GPU_READONLY), + gpu->aspace, &ring->bo, &ring->iova); if (IS_ERR(ring->start)) { ret = PTR_ERR(ring->start); |