Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a943eac9 authored by Sunil Khatri's avatar Sunil Khatri Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Add property to determine commands timeout



Add the property to determine the current command timeout
value which is used by the clients via KGSL IOCTL.

Change-Id: Ifd6b373d211ebd78dc3a8032ede073258487d689
Signed-off-by: default avatarSunil Khatri <sunilkh@codeaurora.org>
parent 31c9729a
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -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;