drm/nouveau/instmem/gk20a: add write barrier when releasing DMA object
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 3 Mar 2016 07:38:12 +0000 (16:38 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:13:34 +0000 (10:13 +1000)
commite02d586da6405f8d401a90f5d19b90c3d7e2810b
treed80f3a467335d5722c8af6f17bd812e5f4d15f9a
parent1733a2ad36741b1812cf8b3f3037c28d0af53f50
drm/nouveau/instmem/gk20a: add write barrier when releasing DMA object

When using the DMA-API for instmem, we may obtain a write-combined
mapping. For such cases, add a write barrier in
gk20a_instobj_release_dma() to make sure that all writes have reached
memory at this time.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c