summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-12-19 01:57:00 -0700
committerLinux Build Service Account <lnxbuild@localhost>2016-12-19 01:57:00 -0700
commit2011e141ad12fe3dac082d724e339323814978e3 (patch)
tree33afe4d672e31712e4d087dc5c5fd5d27581f976 /include/uapi/linux
parente76a02113d5ef846908b87740d147c8622812938 (diff)
parent2d28ff09533427b3fc0b9651eff8c1d936f2cfb4 (diff)
Promotion of kernel.lnx.4.4-161219.
CRs Change ID Subject -------------------------------------------------------------------------------------------------------------- 1101906 Idc51070e2bb36d1a757d2714d2875a99901321a7 clk: qcom: add common clock framework support for MDSS P 1098508 Ib0a2361f854ae01d0d8090cdd48cfa96308daf93 msm: kgsl: Add Bind objects to dispatcher draw queue 1099255 Ib32d40351179a687eca38228c4503e4a9a88c28d ARM: dts: msm: Move boot_rom_ahb_clk to proxy voted for 1095243 I18f549102e626dc788e8fa56d6bb1ea28efe4f88 soc: qcom: pil: Initialize variable to avoid invalid acc 1101152 I9f2cb058a7e59b573fc64662ee7b5bff49b18ea7 soc: qcom: pil-q6v5: Update the reset sequence for qdspv 1101152 Id5b8aaae0783893290e95626b394841a7d3808a3 ARM: dts: msm: Remove write of acc register for MSMFalco Change-Id: If07ab3394784f1dcb31098e5d4737265f136883f CRs-Fixed: 1099255, 1101906, 1098508, 1101152, 1095243
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/msm_kgsl.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_kgsl.h b/include/uapi/linux/msm_kgsl.h
index aac11dbe5984..71fdf6d6e9e5 100644
--- a/include/uapi/linux/msm_kgsl.h
+++ b/include/uapi/linux/msm_kgsl.h
@@ -50,6 +50,7 @@
#define KGSL_CONTEXT_IFH_NOP 0x00010000
#define KGSL_CONTEXT_SECURE 0x00020000
#define KGSL_CONTEXT_NO_SNAPSHOT 0x00040000
+#define KGSL_CONTEXT_SPARSE 0x00080000
#define KGSL_CONTEXT_PREEMPT_STYLE_MASK 0x0E000000
#define KGSL_CONTEXT_PREEMPT_STYLE_SHIFT 25
@@ -89,6 +90,7 @@
#define KGSL_CMDBATCH_END_OF_FRAME KGSL_CONTEXT_END_OF_FRAME /* 0x100 */
#define KGSL_CMDBATCH_SYNC KGSL_CONTEXT_SYNC /* 0x400 */
#define KGSL_CMDBATCH_PWR_CONSTRAINT KGSL_CONTEXT_PWR_CONSTRAINT /* 0x800 */
+#define KGSL_CMDBATCH_SPARSE 0x1000 /* 0x1000 */
/*
* Reserve bits [16:19] and bits [28:31] for possible bits shared between
@@ -1556,4 +1558,34 @@ struct kgsl_sparse_bind {
#define IOCTL_KGSL_SPARSE_BIND \
_IOW(KGSL_IOC_TYPE, 0x54, struct kgsl_sparse_bind)
+/**
+ * struct kgsl_gpu_sparse_command - Argument for
+ * IOCTL_KGSL_GPU_SPARSE_COMMAND
+ * @flags: Current flags for the object
+ * @sparselist: List of kgsl_sparse_binding_object to bind/unbind
+ * @synclist: List of kgsl_command_syncpoints
+ * @sparsesize: Size of kgsl_sparse_binding_object
+ * @numsparse: Number of elements in list
+ * @sync_size: Size of kgsl_command_syncpoint structure
+ * @numsyncs: Number of kgsl_command_syncpoints in syncpoint list
+ * @context_id: Context ID submitting the kgsl_gpu_command
+ * @timestamp: Timestamp for the submitted commands
+ * @id: Virtual ID to bind/unbind
+ */
+struct kgsl_gpu_sparse_command {
+ uint64_t flags;
+ uint64_t __user sparselist;
+ uint64_t __user synclist;
+ unsigned int sparsesize;
+ unsigned int numsparse;
+ unsigned int syncsize;
+ unsigned int numsyncs;
+ unsigned int context_id;
+ unsigned int timestamp;
+ unsigned int id;
+};
+
+#define IOCTL_KGSL_GPU_SPARSE_COMMAND \
+ _IOWR(KGSL_IOC_TYPE, 0x55, struct kgsl_gpu_sparse_command)
+
#endif /* _UAPI_MSM_KGSL_H */