]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bus: remove cpu_coherent flag
authorAlexandre Courbot <gnurou@gmail.com>
Wed, 13 Jul 2016 06:29:36 +0000 (15:29 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jul 2016 01:55:18 +0000 (11:55 +1000)
commit744f253e691b79eb60ba13b718d083df65db8d7c
tree697209142ca1e3a150f6064c59826c77d67af701
parent73b3b6b6e99ed188873363de293972484d1f8eb1
drm/nouveau/bus: remove cpu_coherent flag

This flag's only remaining function is to ignore the uncached flag for
BOs on coherent architectures.

However the reason for allocating an object uncache on a non-coherent
architecture (namely because the cost of doing explicit flushes/
invalidations is higher than the benefit of caching the data because
accesses are few and far between) should also apply on architectures for
which coherency is maintained implicitly. Thus allocate coherent objects
as uncached on all architectures.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/device.h
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c