]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/nouveau: introduce nv_device_is_cpu_coherent()
authorAlexandre Courbot <acourbot@nvidia.com>
Mon, 27 Oct 2014 09:49:16 +0000 (18:49 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:43:59 +0000 (15:43 +1000)
commitc5d7ddf70a8445f711f5ab9ab92bd4f59f993262
treeeb8202e6d766ab0e7879e4b4ee031ea46edb6cbd
parent5be5a15a43642de7e10d17da0c172ea2d28d22c4
drm/nouveau: introduce nv_device_is_cpu_coherent()

Add a function allowing us to know whether a device is CPU-coherent,
i.e. accesses performed by the CPU on GPU-mapped buffers will
be immediately visible on the GPU side and vice-versa.

For now, a device is considered to be coherent if it uses the PCI bus on
a non-ARM architecture.

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