drm/nouveau/gk20a: stop setting DMA_ATTR_NON_CONSISTENT
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Aug 2020 13:30:40 +0000 (15:30 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Sep 2020 04:20:41 +0000 (06:20 +0200)
DMA_ATTR_NON_CONSISTENT is a no-op except on PA-RISC and a few MIPS
configs, so don't set it in this ARM specific driver part.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c

index 985f2990ab0dda4c8f7d0cbc6610f95d13286fb5..13d4d7ac0697b474db64450c42e097b1cfaec91d 100644 (file)
@@ -594,8 +594,7 @@ gk20a_instmem_new(struct nvkm_device *device, int index,
 
                nvkm_info(&imem->base.subdev, "using IOMMU\n");
        } else {
-               imem->attrs = DMA_ATTR_NON_CONSISTENT |
-                             DMA_ATTR_WEAK_ORDERING |
+               imem->attrs = DMA_ATTR_WEAK_ORDERING |
                              DMA_ATTR_WRITE_COMBINE;
 
                nvkm_info(&imem->base.subdev, "using DMA API\n");