From bef2159086a3db04a53cdb28f163c3158f0a8b57 Mon Sep 17 00:00:00 2001 From: Jussi Rasanen Date: Wed, 5 Aug 2015 15:59:32 +0300 Subject: gpu: nvgpu: Add support for CDE scatter buffers Add support for CDE scatter buffers. When the bus addresses for surfaces are not contiguous as seen by the GPU (e.g., when SMMU is bypassed), CDE swizzling needs additional per-page information. This information is populated in a scatter buffer when required. Bug 1604102 Change-Id: I3384e2cfb5d5f628ed0f21375bdac8e36b77ae4f Signed-off-by: Jussi Rasanen Reviewed-on: http://git-master/r/789436 Reviewed-on: http://git-master/r/791243 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- include/uapi/linux/nvgpu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/uapi/linux/nvgpu.h') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index c4edd305..138d7971 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -223,7 +223,9 @@ struct nvgpu_gpu_prepare_compressible_read_args { __s32 fd; } fence; /* in/out */ __u32 zbc_color; /* out */ - __u32 reserved[5]; /* must be zero */ + __u32 reserved; /* must be zero */ + __u64 scatterbuffer_offset; /* in, within handle */ + __u32 reserved2[2]; /* must be zero */ }; struct nvgpu_gpu_mark_compressible_write_args { -- cgit v1.2.2