Merge "msm: kgsl: Add property to determine commands timeout"

This commit is contained in:
Linux Build Service Account 2017-11-05 22:33:06 -08:00 committed by Gerrit - the friendly Code Review server
commit 513fd626d6
2 changed files with 21 additions and 0 deletions

View file

@ -1922,6 +1922,26 @@ static int adreno_getproperty(struct kgsl_device *device,
status = 0;
}
break;
case KGSL_PROP_IB_TIMEOUT:
{
unsigned int ib_timeout = adreno_drawobj_timeout;
if (ib_timeout == 0)
return -EINVAL;
if (sizebytes != sizeof(unsigned int)) {
status = -EINVAL;
break;
}
if (copy_to_user(value, &ib_timeout,
sizeof(unsigned int))) {
status = -EFAULT;
break;
}
status = 0;
}
break;
default:
status = -EINVAL;

View file

@ -321,6 +321,7 @@ enum kgsl_timestamp_type {
#define KGSL_PROP_DEVICE_BITNESS 0x18
#define KGSL_PROP_DEVICE_QDSS_STM 0x19
#define KGSL_PROP_DEVICE_QTIMER 0x20
#define KGSL_PROP_IB_TIMEOUT 0x21
struct kgsl_shadowprop {
unsigned long gpuaddr;