diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-07-05 06:11:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-07 10:05:38 -0400 |
commit | d479a781c68ab20ff27ae6d1a6eb6e15eb51fb88 (patch) | |
tree | 1a7fb1327e5ad9dc04ecb013095a53b053b2e88b /include/uapi/linux/nvgpu.h | |
parent | 8bdb74786cd58746a6d9c361f8383fdfb43c6c98 (diff) |
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>
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 22687eb5..6c113764 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -1744,6 +1744,7 @@ struct nvgpu_as_map_buffer_args { | |||
1744 | __u32 flags; /* in/out */ | 1744 | __u32 flags; /* in/out */ |
1745 | #define NVGPU_AS_MAP_BUFFER_FLAGS_FIXED_OFFSET (1 << 0) | 1745 | #define NVGPU_AS_MAP_BUFFER_FLAGS_FIXED_OFFSET (1 << 0) |
1746 | #define NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE (1 << 2) | 1746 | #define NVGPU_AS_MAP_BUFFER_FLAGS_CACHEABLE (1 << 2) |
1747 | #define NVGPU_AS_MAP_BUFFER_FLAGS_IO_COHERENT (1 << 4) | ||
1747 | #define NVGPU_AS_MAP_BUFFER_FLAGS_UNMAPPED_PTE (1 << 5) | 1748 | #define NVGPU_AS_MAP_BUFFER_FLAGS_UNMAPPED_PTE (1 << 5) |
1748 | #define NVGPU_AS_MAP_BUFFER_FLAGS_MAPPABLE_COMPBITS (1 << 6) | 1749 | #define NVGPU_AS_MAP_BUFFER_FLAGS_MAPPABLE_COMPBITS (1 << 6) |
1749 | __u32 reserved; /* in */ | 1750 | __u32 reserved; /* in */ |