drm/msm/gpu: make ringbuffer readonly
authorRob Clark <robdclark@chromium.org>
Mon, 17 Aug 2020 16:23:09 +0000 (09:23 -0700)
committerRob Clark <robdclark@chromium.org>
Mon, 17 Aug 2020 19:25:22 +0000 (12:25 -0700)
commit352c83fb39cae3eff95a8e1ed23006291abb6196
tree8885052b5566bbe12064036371fed713cd0ba917
parentf228af11dfa1d1616bc67f3a4119ab77c36181f1
drm/msm/gpu: make ringbuffer readonly

The GPU has no business writing into the ringbuffer, let's make it
readonly to the GPU.

Fixes: 7198e6b03155 ("drm/msm: add a3xx gpu support")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_ringbuffer.c