aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/pvr/servicesint.h
diff options
context:
space:
mode:
authorAlistair Strachan <alistair.strachan@imgtec.com>2012-05-10 12:24:17 +0100
committerAndroid Partner Code Review <android-gerrit-partner@google.com>2012-05-14 12:32:56 -0700
commit4501c035d5e654c9243b714f421a19c4bd84e0fe (patch)
tree12f88347ec69f4e697ba6c002496e206149ebb1d /drivers/gpu/pvr/servicesint.h
parent00a60d164498aa993ffc53913e4e0d0b245ca8b0 (diff)
downloadkernel_samsung_crespo-4501c035d5e654c9243b714f421a19c4bd84e0fe.zip
kernel_samsung_crespo-4501c035d5e654c9243b714f421a19c4bd84e0fe.tar.gz
kernel_samsung_crespo-4501c035d5e654c9243b714f421a19c4bd84e0fe.tar.bz2
gpu: pvr: Update to DDK 1.8@904153
- Fix http://b/6446135 "eglHibernateProcessIMG slows down.." Release the bridge mutex in various places while waiting on the hardware. Permits multiple userspace processes/threads entering the driver simulataneously in some controlled cases. - Fix http://b/6096575 "some gralloc operations are very slow" Add a shrinkable pool for uncached memory allocations. Change-Id: I5a2554b351e10b3b35aaccc0ae943a78c1af673c
Diffstat (limited to 'drivers/gpu/pvr/servicesint.h')
-rw-r--r--drivers/gpu/pvr/servicesint.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/pvr/servicesint.h b/drivers/gpu/pvr/servicesint.h
index 9a5a845..afe2bcf 100644
--- a/drivers/gpu/pvr/servicesint.h
+++ b/drivers/gpu/pvr/servicesint.h
@@ -33,6 +33,7 @@ extern "C" {
#include "services.h"
#include "sysinfo.h"
+#include "sysconfig.h"
#define HWREC_DEFAULT_TIMEOUT (500)
@@ -47,6 +48,10 @@ extern "C" {
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
+#define MAX_CLEANUP_TIME_US (MAX_HW_TIME_US * 4)
+#define MAX_CLEANUP_TRYS 100
+#define MAX_CLEANUP_TIME_WAIT_US (MAX_CLEANUP_TIME_US/MAX_CLEANUP_TRYS)
+
typedef enum _PVRSRV_MEMTYPE_
{
PVRSRV_MEMTYPE_UNKNOWN = 0,