msm: kgsl: Control power savings features from userspace
Sometimes, the userspace driver has a need to disable some of the
power savings features in the kernel for a brief period. Add a
property to control nap and DCVS from the user space driver via
KGSL_IOCTL_SETPROPERTY.
Change-Id: Ic0dedbad5dbc2f027b0c3316e29f620b8ea127fd
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
diff --git a/include/linux/msm_kgsl.h b/include/linux/msm_kgsl.h
index ed9b98a..244b957 100644
--- a/include/linux/msm_kgsl.h
+++ b/include/linux/msm_kgsl.h
@@ -2,7 +2,7 @@
#define _MSM_KGSL_H
#define KGSL_VERSION_MAJOR 3
-#define KGSL_VERSION_MINOR 10
+#define KGSL_VERSION_MINOR 11
/*context flags */
#define KGSL_CONTEXT_SAVE_GMEM 0x00000001
@@ -125,7 +125,8 @@
KGSL_PROP_MMU_ENABLE = 0x00000006,
KGSL_PROP_INTERRUPT_WAITS = 0x00000007,
KGSL_PROP_VERSION = 0x00000008,
- KGSL_PROP_GPU_RESET_STAT = 0x00000009
+ KGSL_PROP_GPU_RESET_STAT = 0x00000009,
+ KGSL_PROP_PWRCTRL = 0x0000000E,
};
struct kgsl_shadowprop {