Merge "msm: kgsl: Add property to determine commands timeout"
This commit is contained in:
commit
513fd626d6
2 changed files with 21 additions and 0 deletions
|
@ -1922,6 +1922,26 @@ static int adreno_getproperty(struct kgsl_device *device,
|
||||||
status = 0;
|
status = 0;
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
status = -EINVAL;
|
status = -EINVAL;
|
||||||
|
|
|
@ -321,6 +321,7 @@ enum kgsl_timestamp_type {
|
||||||
#define KGSL_PROP_DEVICE_BITNESS 0x18
|
#define KGSL_PROP_DEVICE_BITNESS 0x18
|
||||||
#define KGSL_PROP_DEVICE_QDSS_STM 0x19
|
#define KGSL_PROP_DEVICE_QDSS_STM 0x19
|
||||||
#define KGSL_PROP_DEVICE_QTIMER 0x20
|
#define KGSL_PROP_DEVICE_QTIMER 0x20
|
||||||
|
#define KGSL_PROP_IB_TIMEOUT 0x21
|
||||||
|
|
||||||
struct kgsl_shadowprop {
|
struct kgsl_shadowprop {
|
||||||
unsigned long gpuaddr;
|
unsigned long gpuaddr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue