mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: use coherent aperture for coherent buffers
Use sysmem_coherent aperture if the buffer mappings are requested to be IO coherent. Use sysmem_noncoherent aperture otherwise. This is implemented by adding a new coherent field to the GMMU attrs struct. Jira GPUT19X-17 Bug 1651331 Bug 200283998 Change-Id: I5cfb71b5913d4db50ebf10331b19f5a4216456bf Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master/r/1514438 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8bdb74786c
commit
d479a781c6
@@ -24,12 +24,6 @@
|
||||
#ifndef _UAPI__LINUX_NVGPU_T18X_IOCTL_H_
|
||||
#define _UAPI__LINUX_NVGPU_T18X_IOCTL_H_
|
||||
|
||||
/*
|
||||
* this flag is used in struct nvgpu_as_map_buffer_ex_args
|
||||
* to specify IO coherence
|
||||
*/
|
||||
#define NVGPU_AS_MAP_BUFFER_FLAGS_IO_COHERENT (1 << 4)
|
||||
|
||||
/*
|
||||
* this flag is used in struct nvgpu_alloc_gpfifo_args
|
||||
* to enable re-playable faults for that channel
|
||||
|
||||
@@ -1744,6 +1744,7 @@ struct nvgpu_as_map_buffer_args {
|
||||
__u32 flags; /* in/out */
|
||||
#define NVGPU_AS_MAP_BUFFER_FLAGS_FIXED_OFFSET (1 << 0)
|
||||
#define NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE (1 << 2)
|
||||
#define NVGPU_AS_MAP_BUFFER_FLAGS_IO_COHERENT (1 << 4)
|
||||
#define NVGPU_AS_MAP_BUFFER_FLAGS_UNMAPPED_PTE (1 << 5)
|
||||
#define NVGPU_AS_MAP_BUFFER_FLAGS_MAPPABLE_COMPBITS (1 << 6)
|
||||
__u32 reserved; /* in */
|
||||
|
||||
Reference in New Issue
Block a user