freedreno: make cmdstream bo's read-only to GPU
authorRob Clark <robdclark@gmail.com>
Wed, 9 Jan 2019 18:03:43 +0000 (13:03 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 10 Jan 2019 19:21:39 +0000 (14:21 -0500)
commit04aff7e42b88fdd251617436a589ea0be2f44093
tree5f3f877600e8515a212b7fb7a4b19ce1fa5ff464
parent286de96af86b4a70de71dfc763aebc039669400d
freedreno: make cmdstream bo's read-only to GPU

If nothing else, this will make problems with cmdstream getting blit
over with pixels easier to track down (ie. faults when it first happens
rather than strange failures later from corrupted cmdstream when a
stateobj is later reused).

(NOTE this somewhat depends on the kernel supporting the flag, and the
iommu implementation.  But the worst case is just that the cmdstream
ends up writeable as before.)

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/drm/msm_bo.c
src/freedreno/drm/msm_ringbuffer_sp.c